Class: PlatformosCheck::YamlCheck
- Extended by:
- ChecksTracking
- Defined in:
- lib/platformos_check/yaml_check.rb
Direct Known Subclasses
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
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(, markup: nil, line_number: nil, app_file: nil, &block) offenses << Offense.new(check: self, message:, markup:, line_number:, app_file:, correction: block) end |