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
- Exclude checks
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
- Exclude checks
-' interpreted as argument prefix
(Using Ruby 2.1 parser; configure using
TargetRubyVersionparameter, under
AllCops`) Open
test -f $RPM_SOURCE_DIR/git-%{version}/GIT-VERSION-GEN || ( cd $RPM_SOURCE_DIR && git clone https://github.com/git/git.git )
- Exclude checks
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
- Exclude checks
unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Summary: OpenSSL for Mu on RHEL6-compatible systems
- Exclude checks
unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Name: mussl
- Exclude checks
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
- Exclude checks
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}
- Exclude checks
unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
URL: https://git-scm.com/
- Exclude checks
unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Source: https://github.com/git/git.git
- Exclude checks
unknown regexp options: gthb
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Source: https://github.com/git/git.git
- Exclude checks
unexpected token tGVAR
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
rm -rf $RPM_BUILD_ROOT%{prefix}/git-%{version}
- Exclude checks
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'
- Read upRead up
- Exclude checks
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
#
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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
- Exclude checks
Use meaningful heredoc delimiters. Open
EOH
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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)