mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
* Enabled frozen string literals * Update rubocop config * Prefer string interpolation in simple cases Co-Authored-By: Dylan Thacker-Smith <dylan.smith@shopify.com>
95 lines
2.6 KiB
YAML
95 lines
2.6 KiB
YAML
# This configuration was generated by
|
|
# `rubocop --auto-gen-config`
|
|
# on 2019-09-11 06:34:25 +1000 using RuboCop version 0.74.0.
|
|
# 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: 2
|
|
Lint/AmbiguousOperator:
|
|
Exclude:
|
|
- 'test/unit/condition_unit_test.rb'
|
|
|
|
# Offense count: 21
|
|
# Configuration parameters: AllowSafeAssignment.
|
|
Lint/AssignmentInCondition:
|
|
Exclude:
|
|
- 'lib/liquid/block_body.rb'
|
|
- 'lib/liquid/lexer.rb'
|
|
- 'lib/liquid/standardfilters.rb'
|
|
- 'lib/liquid/tags/for.rb'
|
|
- 'lib/liquid/tags/if.rb'
|
|
- 'lib/liquid/tags/raw.rb'
|
|
- 'lib/liquid/variable.rb'
|
|
- 'performance/profile.rb'
|
|
- 'test/test_helper.rb'
|
|
- 'test/unit/tokenizer_unit_test.rb'
|
|
|
|
# Offense count: 2
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: EnforcedStyle.
|
|
# SupportedStyles: runtime_error, standard_error
|
|
Lint/InheritException:
|
|
Exclude:
|
|
- 'lib/liquid/interrupts.rb'
|
|
|
|
# Offense count: 2
|
|
Lint/UselessAssignment:
|
|
Exclude:
|
|
- 'performance/shopify/database.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: CheckForMethodsWithNoSideEffects.
|
|
Lint/Void:
|
|
Exclude:
|
|
- 'lib/liquid/parse_context.rb'
|
|
|
|
# Offense count: 98
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
# URISchemes: http, https
|
|
Metrics/LineLength:
|
|
Max: 294
|
|
|
|
# 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/include.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: 5
|
|
Style/ClassVars:
|
|
Exclude:
|
|
- 'lib/liquid/condition.rb'
|
|
- 'lib/liquid/strainer.rb'
|
|
- 'lib/liquid/template.rb'
|
|
|
|
# Offense count: 1
|
|
# Configuration parameters: AllowCoercion.
|
|
Style/DateTime:
|
|
Exclude:
|
|
- 'test/unit/context_unit_test.rb'
|
|
|
|
# Offense count: 9
|
|
# Cop supports --auto-correct.
|
|
# Configuration parameters: AllowAsExpressionSeparator.
|
|
Style/Semicolon:
|
|
Exclude:
|
|
- 'test/integration/error_handling_test.rb'
|
|
- 'test/integration/template_test.rb'
|
|
- 'test/unit/context_unit_test.rb'
|