Class: ThemeCheck::LiquidCheck
Direct Known Subclasses
ConvertIncludeToRender, DeprecatedFilter, LiquidTag, MatchingSchemaTranslations, MissingEnableComment, MissingRequiredTemplateFiles, MissingTemplate, NestedSnippet, ParserBlockingJavaScript, RequiredDirectories, RequiredLayoutThemeObject, SpaceInsideBraces, SyntaxError, TemplateLength, TranslationKeyExists, UndefinedObject, UnknownFilter, UnusedAssign, UnusedSnippet, ValidSchema
Constant Summary
Constants inherited from Check
Check::CATEGORIES, Check::SEVERITIES
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods included from ChecksTracking
Methods included from ParsingHelpers
Methods inherited from Check
all, can_disable, #can_disable?, category, #category, #code_name, doc, #doc, #ignore!, #ignored?, #severity, severity, #to_s, #unignore!
Methods included from JsonHelpers
Instance Method Details
#add_offense(message, node: nil, template: node&.template, markup: nil, line_number: nil, &block) ⇒ Object
9 10 11 |
# File 'lib/theme_check/liquid_check.rb', line 9 def add_offense(, node: nil, template: node&.template, markup: nil, line_number: nil, &block) offenses << Offense.new(check: self, message: , template: template, node: node, markup: markup, line_number: line_number, correction: block) end |