Showing 10 of 10 total issues
required_ruby_version
(2.2, declared in bitaculous-animatify.gemspec) and TargetRubyVersion
(2.1, declared in .rubocop.yml) should be equal. Open
Open
spec.required_ruby_version = '~> 2.2'
- 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
Script file bundler.rake doesn't have execute permission. Open
Open
#!/usr/bin/env rake
- Exclude checks
Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency bourbon
should appear before sprockets
. Open
Open
spec.add_runtime_dependency 'bourbon', '~> 4.2', '>= 4.3.4'
- Read upRead up
- Exclude checks
Dependencies in the gemspec should be alphabetically sorted.
Example:
# bad
spec.add_dependency 'rubocop'
spec.add_dependency 'rspec'
# good
spec.add_dependency 'rspec'
spec.add_dependency 'rubocop'
# good
spec.add_dependency 'rubocop'
spec.add_dependency 'rspec'
# bad
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rspec'
# good
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop'
# good
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rspec'
# bad
spec.add_runtime_dependency 'rubocop'
spec.add_runtime_dependency 'rspec'
# good
spec.add_runtime_dependency 'rspec'
spec.add_runtime_dependency 'rubocop'
# good
spec.add_runtime_dependency 'rubocop'
spec.add_runtime_dependency 'rspec'
# good only if TreatCommentsAsGroupSeparators is true
# For code quality
spec.add_dependency 'rubocop'
# For tests
spec.add_dependency 'rspec'
Script file rubocop.rake doesn't have execute permission. Open
Open
#!/usr/bin/env rake
- Exclude checks
Script file Rakefile doesn't have execute permission. Open
Open
#!/usr/bin/env rake
- Exclude checks
Script file Gemfile doesn't have execute permission. Open
Open
#!/usr/bin/env bundle
- Exclude checks
Script file Guardfile doesn't have execute permission. Open
Open
#!/usr/bin/env guard
- Exclude checks
Script file bitaculous-animatify.gemspec doesn't have execute permission. Open
Open
#!/usr/bin/env gem build
- Exclude checks
Script file rspec.rake doesn't have execute permission. Open
Open
#!/usr/bin/env rake
- Exclude checks
Freeze mutable objects assigned to constants. Open
Open
VERSION = '2.3.2'
- Read upRead up
- Exclude checks
This cop checks whether some constant value isn't a mutable literal (e.g. array or hash).
Example:
# bad
CONST = [1, 2, 3]
# good
CONST = [1, 2, 3].freeze