bitaculous/animatify

View on GitHub

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

  spec.required_ruby_version     = '~> 2.2'
Severity: Minor
Found in bitaculous-animatify.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

Script file bundler.rake doesn't have execute permission.
Open

#!/usr/bin/env rake
Severity: Minor
Found in tasks/bundler.rake by rubocop

Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency bourbon should appear before sprockets.
Open

  spec.add_runtime_dependency 'bourbon',   '~> 4.2',    '>= 4.3.4'
Severity: Minor
Found in bitaculous-animatify.gemspec by rubocop

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

#!/usr/bin/env rake
Severity: Minor
Found in tasks/rubocop.rake by rubocop

Script file Rakefile doesn't have execute permission.
Open

#!/usr/bin/env rake
Severity: Minor
Found in Rakefile by rubocop

Script file Gemfile doesn't have execute permission.
Open

#!/usr/bin/env bundle
Severity: Minor
Found in Gemfile by rubocop

Script file Guardfile doesn't have execute permission.
Open

#!/usr/bin/env guard
Severity: Minor
Found in Guardfile by rubocop

Script file bitaculous-animatify.gemspec doesn't have execute permission.
Open

#!/usr/bin/env gem build
Severity: Minor
Found in bitaculous-animatify.gemspec by rubocop

Script file rspec.rake doesn't have execute permission.
Open

#!/usr/bin/env rake
Severity: Minor
Found in tasks/rspec.rake by rubocop

Freeze mutable objects assigned to constants.
Open

    VERSION = '2.3.2'
Severity: Minor
Found in lib/bitaculous/animatify/version.rb by rubocop

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