mirror of
https://github.com/Shopify/liquid.git
synced 2026-01-26 12:14:58 +00:00
190 lines
6.2 KiB
YAML
190 lines
6.2 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2022-05-18 19:25:47 UTC using RuboCop version 1.29.1.
|
|
# The point is for the user to remove these configuration records
|
|
# one by one as the offenses are removed from the code base.
|
|
# Note that changes in the inspected code, or installation of new
|
|
# versions of RuboCop, may require this file to be generated again.
|
|
|
|
# Offense count: 1
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
# Include: **/*.gemspec
|
|
Gemspec/OrderedDependencies:
|
|
Exclude:
|
|
- 'liquid.gemspec'
|
|
|
|
# Offense count: 6
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
Layout/ClosingHeredocIndentation:
|
|
Exclude:
|
|
- 'test/integration/tags/for_tag_test.rb'
|
|
|
|
# Offense count: 34
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
Layout/EmptyLineAfterGuardClause:
|
|
Exclude:
|
|
- 'lib/liquid/block.rb'
|
|
- 'lib/liquid/block_body.rb'
|
|
- 'lib/liquid/context.rb'
|
|
- 'lib/liquid/drop.rb'
|
|
- 'lib/liquid/lexer.rb'
|
|
- 'lib/liquid/parser.rb'
|
|
- 'lib/liquid/profiler/hooks.rb'
|
|
- 'lib/liquid/standardfilters.rb'
|
|
- 'lib/liquid/tags/for.rb'
|
|
- 'lib/liquid/tags/if.rb'
|
|
- 'lib/liquid/utils.rb'
|
|
- 'lib/liquid/variable.rb'
|
|
- 'lib/liquid/variable_lookup.rb'
|
|
- 'performance/shopify/money_filter.rb'
|
|
- 'performance/shopify/paginate.rb'
|
|
|
|
# Offense count: 8
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
|
|
# AllowedMethods: alias_method, public, protected, private
|
|
Layout/EmptyLinesAroundAttributeAccessor:
|
|
Exclude:
|
|
- 'lib/liquid/template.rb'
|
|
- 'test/integration/filter_test.rb'
|
|
- 'test/integration/tags/include_tag_test.rb'
|
|
- 'test/unit/strainer_template_unit_test.rb'
|
|
|
|
# Offense count: 17
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/LineEndStringConcatenationIndentation:
|
|
Exclude:
|
|
- 'test/integration/tags/for_tag_test.rb'
|
|
- 'test/integration/tags/increment_tag_test.rb'
|
|
|
|
# Offense count: 1
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
# SupportedStyles: aligned, indented
|
|
Layout/MultilineOperationIndentation:
|
|
Exclude:
|
|
- 'lib/liquid/expression.rb'
|
|
|
|
# Offense count: 9
|
|
Lint/MissingSuper:
|
|
Exclude:
|
|
- 'lib/liquid/forloop_drop.rb'
|
|
- 'lib/liquid/tablerowloop_drop.rb'
|
|
- 'test/integration/assign_test.rb'
|
|
- 'test/integration/context_test.rb'
|
|
- 'test/integration/filter_test.rb'
|
|
- 'test/integration/standard_filter_test.rb'
|
|
- 'test/integration/tags/for_tag_test.rb'
|
|
- 'test/integration/tags/table_row_test.rb'
|
|
|
|
# Offense count: 44
|
|
Naming/ConstantName:
|
|
Exclude:
|
|
- 'lib/liquid.rb'
|
|
- 'lib/liquid/block_body.rb'
|
|
- 'lib/liquid/tags/assign.rb'
|
|
- 'lib/liquid/tags/capture.rb'
|
|
- 'lib/liquid/tags/case.rb'
|
|
- 'lib/liquid/tags/cycle.rb'
|
|
- 'lib/liquid/tags/for.rb'
|
|
- 'lib/liquid/tags/if.rb'
|
|
- 'lib/liquid/tags/raw.rb'
|
|
- 'lib/liquid/tags/table_row.rb'
|
|
- 'lib/liquid/variable.rb'
|
|
- 'performance/shopify/comment_form.rb'
|
|
- 'performance/shopify/paginate.rb'
|
|
- 'test/integration/tags/include_tag_test.rb'
|
|
|
|
# Offense count: 9
|
|
# Configuration parameters: CheckIdentifiers, CheckConstants, CheckVariables, CheckStrings, CheckSymbols, CheckComments, CheckFilepaths, FlaggedTerms.
|
|
Naming/InclusiveLanguage:
|
|
Exclude:
|
|
- 'lib/liquid/drop.rb'
|
|
- 'lib/liquid/parse_context.rb'
|
|
- 'test/integration/drop_test.rb'
|
|
- 'test/integration/tags/if_else_tag_test.rb'
|
|
|
|
# Offense count: 2
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'lib/liquid/condition.rb'
|
|
|
|
# Offense count: 3
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
Style/ExplicitBlockArgument:
|
|
Exclude:
|
|
- 'test/integration/context_test.rb'
|
|
- 'test/integration/tag/disableable_test.rb'
|
|
- 'test/integration/tags/for_tag_test.rb'
|
|
|
|
# Offense count: 2982
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiterals:
|
|
Enabled: false
|
|
|
|
# Offense count: 20
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
Style/StringLiteralsInInterpolation:
|
|
Exclude:
|
|
- 'lib/liquid/condition.rb'
|
|
- 'lib/liquid/strainer_template.rb'
|
|
- 'lib/liquid/tag/disableable.rb'
|
|
- 'performance/shopify/shop_filter.rb'
|
|
- 'performance/shopify/tag_filter.rb'
|
|
|
|
# Offense count: 6
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInArrayLiteral:
|
|
Exclude:
|
|
- 'example/server/example_servlet.rb'
|
|
- 'lib/liquid/condition.rb'
|
|
- 'test/integration/context_test.rb'
|
|
- 'test/integration/standard_filter_test.rb'
|
|
- 'test/unit/parse_tree_visitor_test.rb'
|
|
|
|
# Offense count: 1
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyleForMultiline.
|
|
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
Style/TrailingCommaInHashLiteral:
|
|
Exclude:
|
|
- 'lib/liquid/expression.rb'
|
|
|
|
# Offense count: 19
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
|
# SupportedStyles: percent, brackets
|
|
Style/WordArray:
|
|
Exclude:
|
|
- 'lib/liquid/tags/if.rb'
|
|
- 'liquid.gemspec'
|
|
- 'test/integration/assign_test.rb'
|
|
- 'test/integration/context_test.rb'
|
|
- 'test/integration/drop_test.rb'
|
|
- 'test/integration/standard_filter_test.rb'
|
|
|
|
# Offense count: 117
|
|
# This cop supports safe auto-correction (--auto-correct).
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, AllowCopDirectives, AllowedPatterns.
|
|
# URISchemes: http, https
|
|
Layout/LineLength:
|
|
Max: 260
|
|
|
|
Naming/PredicatePrefix:
|
|
Enabled: false
|
|
|
|
# Offense count: 1
|
|
# This is intentional - early return from begin/rescue in assignment context
|
|
Lint/NoReturnInBeginEndBlocks:
|
|
Exclude:
|
|
- 'lib/liquid/standardfilters.rb'
|