Showing 24 of 24 total issues
Extra empty line detected at begin
body beginning. Open
Open
################################################################
- Read upRead up
- Exclude checks
This cops checks if empty lines exist around the bodies of begin-end blocks.
Example:
# good
begin
# ...
end
# bad
begin
# ...
end
Extra empty line detected at begin
body end. Open
Open
end
- Read upRead up
- Exclude checks
This cops checks if empty lines exist around the bodies of begin-end blocks.
Example:
# good
begin
# ...
end
# bad
begin
# ...
end
Gem rubocop
requirements already given on line 17 of the Gemfile. Open
Open
gem "rubocop"
- Read upRead up
- Exclude checks
A Gem's requirements should be listed only once in a Gemfile.
Example:
# bad
gem 'rubocop'
gem 'rubocop'
# bad
group :development do
gem 'rubocop'
end
group :test do
gem 'rubocop'
end
# good
group :development, :test do
gem 'rubocop'
end
# good
gem 'rubocop', groups: [:development, :test]
Extra empty line detected before the rescue
. Open
Open
rescue # Ignore if awscli had any issues
- Read upRead up
- Exclude checks
This cops checks if empty lines exist around the bodies of begin
sections. This cop doesn't check empty lines at begin
body
beginning/end and around method definition body.
Style/EmptyLinesAroundBeginBody
or Style/EmptyLinesAroundMethodBody
can be used for this purpose.
Example:
# good
begin
do_something
rescue
do_something2
else
do_something3
ensure
do_something4
end
# good
def foo
do_something
rescue
do_something2
end
# bad
begin
do_something
rescue
do_something2
else
do_something3
ensure
do_something4
end
# bad
def foo
do_something
rescue
do_something2
end