BIAndrews/ec2tagfacts

View on GitHub

Showing 24 of 24 total issues

Extra empty line detected at begin body beginning.
Open


  ################################################################
Severity: Minor
Found in lib/facter/ec2_tag_facts.rb by rubocop

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


  end
Severity: Minor
Found in lib/facter/ec2_tag_facts.rb by rubocop

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

    gem "rubocop"
Severity: Minor
Found in Gemfile by rubocop

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


  rescue # Ignore if awscli had any issues
Severity: Minor
Found in lib/facter/ec2_tag_facts.rb by rubocop

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
Severity
Category
Status
Source
Language