godmin.gemspec
Block has too many lines. [32/25] Open
Open
Gem::Specification.new do |gem|
gem.name = "godmin"
gem.version = Godmin::VERSION
gem.authors = ["Jens Ljungblad", "Linus Pettersson", "Varvet"]
gem.email = ["info@varvet.se"]
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Line is too long. [170/120] Open
Open
gem.description = "Godmin is an admin framework for Rails 5+. Use it to build dedicated admin sections for your apps, or stand alone admin apps such as internal tools."
- Exclude checks
Space missing to the left of {. Open
Open
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
- Read upRead up
- Exclude checks
Checks that block braces have or don't have a space before the opening brace depending on configuration.
Example:
# bad
foo.map{ |a|
a.bar.to_s
}
# good
foo.map { |a|
a.bar.to_s
}
Prefer $LOAD_PATH
over $:
. Open
Open
$:.push File.expand_path("../lib", __FILE__)
- Exclude checks
Prefer $INPUT_RECORD_SEPARATOR
or $RS
from the stdlib 'English' module (don't forget to require it) over $/
. Open
Open
gem.files = `git ls-files`.split($/)
- Exclude checks