You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2 errors occurred:
An error occurred while Layout/EmptyLinesAroundAccessModifier cop was inspecting /t.rb:1:0.
An error occurred while Style/AccessModifierDeclarations cop was inspecting /t.rb:1:0.
Errors are usually caused by RuboCop bugs.
Steps to reproduce the problem
% docker run --rm -it ruby:2.7.2 /bin/sh -c 'gem i rubocop; echo public > t.rb; rubocop t.rb'
Fetching parallel-1.19.2.gem
Fetching parser-2.7.1.5.gem
Fetching rainbow-3.0.0.gem
Fetching regexp_parser-1.8.1.gem
Fetching rubocop-0.92.0.gem
Fetching rubocop-ast-0.7.1.gem
Fetching ruby-progressbar-1.10.1.gem
Fetching unicode-display_width-1.7.0.gem
Fetching ast-2.4.1.gem
Successfully installed parallel-1.19.2
Successfully installed ast-2.4.1
Successfully installed parser-2.7.1.5
Successfully installed rainbow-3.0.0
Successfully installed regexp_parser-1.8.1
Successfully installed rubocop-ast-0.7.1
Successfully installed ruby-progressbar-1.10.1
Successfully installed unicode-display_width-1.7.0
Successfully installed rubocop-0.92.0
9 gems installed
Inspecting 1 file
An error occurred while Layout/EmptyLinesAroundAccessModifier cop was inspecting /t.rb:1:0.
To see the complete backtrace run rubocop -d.
An error occurred while Style/AccessModifierDeclarations cop was inspecting /t.rb:1:0.
To see the complete backtrace run rubocop -d.
C
Offenses:
.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
public
^
1 file inspected, 1 offense detected, 1 offense auto-correctable
2 errors occurred:
An error occurred while Layout/EmptyLinesAroundAccessModifier cop was inspecting /t.rb:1:0.
An error occurred while Style/AccessModifierDeclarations cop was inspecting /t.rb:1:0.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
https://github.com/rubocop-hq/rubocop/issues
Mention the following information in the issue report:
0.92.0 (using Parser 2.7.1.5, rubocop-ast 0.7.1, running on ruby 2.7.2 x86_64-linux)
The text was updated successfully, but these errors were encountered:
Fixesrubocop#8855.
This PR fixes an error for `Layout/EmptyLinesAroundAccessModifier` and
`Style/AccessModifierDeclarations` when using only access modifier.
Expected behavior
No errors.
Actual behavior
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: