Class: PlatformosCheck::YamlCheck

Inherits:
Check
  • Object
show all
Extended by:
ChecksTracking
Defined in:
lib/platformos_check/yaml_check.rb

Direct Known Subclasses

TranslationFilesMatch, ValidYaml

Constant Summary

Constants inherited from Check

Check::CATEGORIES, Check::SEVERITIES, Check::SEVERITY_VALUES

Instance Attribute Summary

Attributes inherited from Check

#ignored_patterns, #offenses, #options, #platformos_app

Instance Method Summary collapse

Methods included from ChecksTracking

inherited

Methods inherited from Check

#==, all, can_disable, #can_disable?, categories, #categories, category, #code_name, doc, #doc, docs_url, #ignore!, #ignored?, #severity, severity, #severity=, #severity_value, severity_value, single_file, #single_file?, #to_s, #whole_platformos_app?

Methods included from JsonHelpers

#format_json_parse_error, #pretty_json

Instance Method Details

#add_offense(message, markup: nil, line_number: nil, app_file: nil, &block) ⇒ Object



7
8
9
# File 'lib/platformos_check/yaml_check.rb', line 7

def add_offense(message, markup: nil, line_number: nil, app_file: nil, &block)
  offenses << Offense.new(check: self, message:, markup:, line_number:, app_file:, correction: block)
end