diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-22 19:38:47 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-22 19:39:44 +0200 |
commit | a9e40a3d80435431f689b8d19005dd77a8f50224 (patch) | |
tree | 48573a1f1ec9c14789c529de3b8fb8badfb20444 /.rubocop.yml | |
parent | 17122df80dc7e85910a9cfa049d2e33ef84288c6 (diff) |
Adding OAuth access scopes, fixing OAuth authorization UI, adding rate limiting
to the API
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 54 |
1 files changed, 50 insertions, 4 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 3a638a009..15ba678d4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,14 +1,60 @@ Rails: Enabled: true -Metrics/LineLength: - Enabled: false - Style/PerlBackrefs: AutoCorrect: false Style/ClassAndModuleChildren: Enabled: false -Documentation: +Metrics/BlockNesting: + Max: 2 + +Metrics/LineLength: + AllowURI: true + Enabled: false + +Metrics/MethodLength: + CountComments: false + Max: 10 + +Metrics/ModuleLength: + Max: 100 + +Metrics/ParameterLists: + Max: 4 + CountKeywordArgs: true + +Style/AccessModifierIndentation: + EnforcedStyle: indent + +Style/CollectionMethods: + Enabled: true + PreferredMethods: + find_all: 'select' + +Style/Documentation: + Enabled: false + +Style/DoubleNegation: + Enabled: false + +Style/FrozenStringLiteralComment: Enabled: false + +Style/SpaceInsideHashLiteralBraces: + EnforcedStyle: space + +Style/TrailingCommaInLiteral: + EnforcedStyleForMultiline: 'comma' + +Style/RegexpLiteral: + Enabled: false + +AllCops: + TargetRubyVersion: 2.2 + Exclude: + - 'spec/**/*' + - 'db/**/*' + - 'app/views/**/*' + - 'config/**/*' |