Disable interrupt fix in this round

This commit is contained in:
Mike Angell
2019-09-11 06:35:08 +10:00
parent a5b387cdd4
commit 724d02e9b3
2 changed files with 30 additions and 7 deletions
+26 -3
View File
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-08-31 21:54:20 +1000 using RuboCop version 0.74.0.
# 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
@@ -26,6 +26,14 @@ Lint/AssignmentInCondition:
- '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:
@@ -44,9 +52,24 @@ Lint/Void:
Metrics/LineLength:
Max: 294
# Offense count: 45
# Offense count: 44
Naming/ConstantName:
Enabled: false
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:
+4 -4
View File
@@ -1,6 +1,6 @@
module Liquid
# A block interrupt is any command that breaks processing of a block (ex: a for loop).
class BlockInterrupt
# An interrupt is any command that breaks processing of a block (ex: a for loop).
class Interrupt
attr_reader :message
def initialize(message = nil)
@@ -9,8 +9,8 @@ module Liquid
end
# Interrupt that is thrown whenever a {% break %} is called.
class BreakInterrupt < BlockInterrupt; end
class BreakInterrupt < Interrupt; end
# Interrupt that is thrown whenever a {% continue %} is called.
class ContinueInterrupt < BlockInterrupt; end
class ContinueInterrupt < Interrupt; end
end