.rubocop.yml
AllCops:
NewCops: enable
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/LineLength:
AllowURI: true
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/MissingSuper:
Enabled: false
Metrics/AbcSize:
Max: 18
Metrics/BlockLength:
Exclude:
- spec/omniauth/strategies/oauth2_spec.rb
Metrics/BlockNesting:
Max: 2
Metrics/ClassLength:
Max: 110
Metrics/MethodLength:
CountComments: false
Max: 10
Metrics/ParameterLists:
Max: 4
CountKeywordArgs: true
Naming/FileName:
Exclude:
- lib/omniauth-oauth2.rb
Style/CollectionMethods:
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/ExpandPathArguments:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/StderrPuts:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma