cloudamatic/mu

View on GitHub

Showing 2,704 of 2,705 total issues

unexpected token error (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

%build
cd $RPM_BUILD_DIR/sqlite-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

Redundant use of Object#to_s in interpolation.
Open

          MU.log "#{cloud} image for #{platform} was last built #{age.to_s}, refreshing", MU::NOTICE
Severity: Minor
Found in extras/generate-stock-images by rubocop

This cop checks for string conversion in string interpolation, which is redundant.

Example:

# bad

"result is #{something.to_s}"

Example:

# good

"result is #{something}"

Redundant use of Object#to_s in interpolation.
Open

              MU.log "#{cloud} image for #{platform} was last built #{age.to_s}, refreshing", MU::NOTICE
Severity: Minor
Found in extras/generate-stock-images by rubocop

This cop checks for string conversion in string interpolation, which is redundant.

Example:

# bad

"result is #{something.to_s}"

Example:

# good

"result is #{something}"

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

License: https://www.sqlite.org/copyright.html
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

URL: https://sqlite.org/
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

AutoReq: yes
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tIDENTIFIER (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

test -f $RPM_SOURCE_DIR/sqlite.tar.gz?r=branch-%{version} || ( cd $RPM_SOURCE_DIR && curl -O https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=branch-%{version} )
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tRCURLY (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

ln -s %{prefix}/sqlite-%{version} $RPM_BUILD_ROOT%{prefix}/sqlite-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unknown regexp options: www (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

test -f $RPM_SOURCE_DIR/sqlite.tar.gz?r=branch-%{version} || ( cd $RPM_SOURCE_DIR && curl -O https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=branch-%{version} )
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tGVAR (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

tar -xzvf $RPM_SOURCE_DIR/sqlite.tar.gz?r=branch-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

env -i PATH="/bin:/usr/bin" make install
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

Unused block argument - p. If it's necessary, use _ or _p as an argument name to indicate that it won't be used.
Open

platforms.each_pair { |p, r_data|
Severity: Minor
Found in extras/list-stock-amis by rubocop

This cop checks for unused block arguments.

Example:

# bad

do_something do |used, unused|
  puts used
end

do_something do |bar|
  puts :foo
end

define_method(:foo) do |bar|
  puts :baz
end

Example:

#good

do_something do |used, _unused|
  puts used
end

do_something do
  puts :foo
end

define_method(:foo) do |_bar|
  puts :baz
end

%prep: unknown type of percent-literal (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

%prep
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tCONSTANT (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

env -i PATH="/bin:/usr/bin" make install
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

Use each_key instead of keys.each.
Open

  available_clouds.keys.each { |cloud|
Severity: Minor
Found in extras/generate-stock-images by rubocop

This cop checks for uses of each_key and each_value Hash methods.

Note: If you have an array of two-element arrays, you can put parentheses around the block arguments to indicate that you're not working with a hash, and suppress RuboCop offenses.

Example:

# bad
hash.keys.each { |k| p k }
hash.values.each { |v| p v }
hash.each { |k, _v| p k }
hash.each { |_k, v| p v }

# good
hash.each_key { |k| p k }
hash.each_value { |v| p v }

unknown regexp options: www (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

License: https://www.sqlite.org/copyright.html
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

env -i PATH="/bin:/usr/bin" ./configure --prefix=%{prefix}/sqlite-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tRCURLY (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

Release: 1%{dist}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

rm -rf %{prefix}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tIDENTIFIER (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

tar -xzvf $RPM_SOURCE_DIR/sqlite.tar.gz?r=branch-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop
Severity
Category
Status
Source
Language