kapost_deploy.gemspec
Block has too many lines. [30/25] Open
Open
Gem::Specification.new do |spec|
spec.name = KapostDeploy::Identity.name
spec.version = KapostDeploy::Identity.version
spec.platform = Gem::Platform::RUBY
spec.authors = ["Brandon Croft"]
- 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.
Add an empty line after magic comments. Open
Open
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
- Read upRead up
- Exclude checks
Checks for a newline after the final magic comment.
Example:
# good
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end
# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
# Some code
end