hashie/.rubocop.yml

49 lines
926 B
YAML

AllCops:
Include:
- Guardfile
- Rakefile
Exclude:
- .bundle/**/*
- vendor/**/*
inherit_from: .rubocop_todo.yml
# Disabled until we can use the squiggly heredoc (after deprecating Ruby <2.3)
Layout/HeredocIndentation:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Metrics/LineLength:
Exclude:
- 'Guardfile'
Max: 100
Lint/UnifiedInteger:
Exclude:
- 'lib/hashie/extensions/coercion.rb'
- 'spec/hashie/extensions/coercion_spec.rb'
Naming/FileName:
Exclude:
- 'Dangerfile'
- '**/Gemfile'
- '**/Rakefile'
# Disabled because of the very generic nature of Hashie. In the cases where we
# use double negation, there isn't a means that as succinct of doing the type of
# boolean casting that we do.
Style/DoubleNegation:
Enabled: false
Style/HashSyntax:
Enabled: false