cloudamatic/mu

View on GitHub

Showing 2,704 of 2,705 total issues

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

ln -s %{prefix}/openssl-%{version} $RPM_BUILD_ROOT/usr/local/openssl-current
Severity: Minor
Found in extras/openssl_rpm/mussl.spec by rubocop

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

License: https://git-scm.com/about/free-and-open-source
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

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

test -f $RPM_SOURCE_DIR/git-%{version}/GIT-VERSION-GEN || ( cd $RPM_SOURCE_DIR && git clone https://github.com/git/git.git )
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

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

ln -s %{prefix}/Python-%{version} $RPM_BUILD_ROOT/usr/local/python-current
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

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

Summary: OpenSSL for Mu on RHEL6-compatible systems
Severity: Minor
Found in extras/openssl_rpm/mussl.spec by rubocop

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

Name: mussl
Severity: Minor
Found in extras/openssl_rpm/mussl.spec by rubocop

no .<digit> floating literal anymore; put 0 before dot (Using Ruby 2.1 parser; configure using <code>TargetRubyVersion</code> parameter, under <code>AllCops</code>)</digit>
Open

Version: 1.1.1h
Severity: Minor
Found in extras/openssl_rpm/mussl.spec by rubocop

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

ln -s %{prefix}/openssl-%{version} $RPM_BUILD_ROOT%{prefix}/openssl-%{version}
Severity: Minor
Found in extras/openssl_rpm/mussl.spec by rubocop

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

URL: https://git-scm.com/
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

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

Source: https://github.com/git/git.git
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

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

Source: https://github.com/git/git.git
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

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

rm -rf $RPM_BUILD_ROOT%{prefix}/git-%{version}
Severity: Minor
Found in extras/git_rpm/mugit.spec by rubocop

required_ruby_version (2.4, declared in cloud-mu.gemspec) and TargetRubyVersion (2.1, declared in .rubocop.yml) should be equal.
Open

  s.required_ruby_version = '>= 2.4'
Severity: Minor
Found in cloud-mu.gemspec by rubocop

Checks that required_ruby_version of gemspec and TargetRubyVersion of .rubocop.yml are equal. Thereby, RuboCop to perform static analysis working on the version required by gemspec.

Example:

# When `TargetRubyVersion` of .rubocop.yml is `2.3`.

# bad
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.2.0'
end

# bad
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.4.0'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.3.0'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.3'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = ['>= 2.3.0', '< 2.5.0']
end

The name of this source file (yum-update-rule.rb) should use snake_case.
Open

#

This cop makes sure that Ruby source files have snake_case names. Ruby scripts (i.e. source files with a shebang in the first line) are ignored.

Example:

# bad
lib/layoutManager.rb

anything/usingCamelCase

# good
lib/layout_manager.rb

anything/using_snake_case.rake

Use meaningful heredoc delimiters.
Open

    EOH

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

Use meaningful heredoc delimiters.
Open

        EOH

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

unexpected token tIDENTIFIER (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/git_rpm/mugit.spec by rubocop

Use meaningful heredoc delimiters.
Open

        EOH

This cop checks that your heredocs are using meaningful delimiters. By default it disallows END and EO*, and can be configured through blacklisting additional delimiters.

Example:

# good
<<-SQL
  SELECT * FROM foo
SQL

# bad
<<-END
  SELECT * FROM foo
END

# bad
<<-EOS
  SELECT * FROM foo
EOS

File.exists? is deprecated in favor of File.exist?.
Open

              if !File.exists?(virt_dev)

This cop checks for uses of the deprecated class method usages.

Example:

# bad

File.exists?(some_path)

Example:

# good

File.exist?(some_path)

end at 249, 6 is not aligned with if at 243, 14.
Open

      end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the EnforcedStyleAlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example: EnforcedStyleAlignWith: keyword (default)

# bad

variable = if true
    end

# good

variable = if true
           end

Example: EnforcedStyleAlignWith: variable

# bad

variable = if true
    end

# good

variable = if true
end

Example: EnforcedStyleAlignWith: startofline

# bad

variable = if true
    end

# good

puts(if true
end)
Severity
Category
Status
Source
Language