Skip to content
  • Ryuta Kamizono's avatar
    98b93cd0
    Fix rubocop offences for actionpack/lib/action_dispatch/journey/parser.rb · 98b93cd0
    Ryuta Kamizono authored
    Enable rubocop check for the file since #52610 it is no longer automatically generated file.
    
    ```
    Offenses:
    
    actionpack/lib/action_dispatch/journey/parser.rb:1:1: C: [Corrected] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
    actionpack/lib/action_dispatch/journey/parser.rb:25:7: C: [Corrected] Layout/EmptyLinesAroundAccessModifier: Remove a blank line after private.
          private
          ^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:27:7: C: [Corrected] Layout/IndentationWidth: Use 2 (not 0) spaces for indented_internal_methods indentation.
          def advance_token
    
    actionpack/lib/action_dispatch/journey/parser.rb:31:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def do_parse ...
          ^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:35:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_expressions ...
          ^^^^^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:52:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_or(lhs) ...
          ^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:58:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_expression ...
          ^^^^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:68:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_star ...
          ^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:74:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_group ...
          ^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:86:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_terminal ...
          ^^^^^^^^^^^^^^^^^^
    ```
    98b93cd0
    Fix rubocop offences for actionpack/lib/action_dispatch/journey/parser.rb
    Ryuta Kamizono authored
    Enable rubocop check for the file since #52610 it is no longer automatically generated file.
    
    ```
    Offenses:
    
    actionpack/lib/action_dispatch/journey/parser.rb:1:1: C: [Corrected] Style/FrozenStringLiteralComment: Missing frozen string literal comment.
    actionpack/lib/action_dispatch/journey/parser.rb:25:7: C: [Corrected] Layout/EmptyLinesAroundAccessModifier: Remove a blank line after private.
          private
          ^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:27:7: C: [Corrected] Layout/IndentationWidth: Use 2 (not 0) spaces for indented_internal_methods indentation.
          def advance_token
    
    actionpack/lib/action_dispatch/journey/parser.rb:31:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def do_parse ...
          ^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:35:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_expressions ...
          ^^^^^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:52:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_or(lhs) ...
          ^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:58:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_expression ...
          ^^^^^^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:68:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_star ...
          ^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:74:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_group ...
          ^^^^^^^^^^^^^^^
    actionpack/lib/action_dispatch/journey/parser.rb:86:7: C: [Corrected] Layout/IndentationConsistency: Inconsistent indentation detected.
          def parse_terminal ...
          ^^^^^^^^^^^^^^^^^^
    ```
Loading