2018-03-02 04:30:57 +00:00
|
|
|
# Project setup:
|
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
AllCops:
|
|
|
|
Include:
|
|
|
|
- '**/Rakefile'
|
|
|
|
- '**/config.ru'
|
|
|
|
Exclude:
|
2018-03-02 04:50:11 +00:00
|
|
|
- 'bin/**/*'
|
2018-03-02 04:30:57 +00:00
|
|
|
- 'db/**/*'
|
|
|
|
|
|
|
|
# Cop configuration:
|
|
|
|
|
|
|
|
# Bundler
|
|
|
|
|
|
|
|
# Gemspec
|
|
|
|
|
|
|
|
# Layout
|
|
|
|
Layout/AccessModifierIndentation:
|
|
|
|
EnforcedStyle: outdent
|
2018-03-18 05:45:43 +00:00
|
|
|
Layout/AlignHash:
|
|
|
|
Enabled: false
|
2018-03-02 15:25:26 +00:00
|
|
|
Layout/CaseIndentation:
|
|
|
|
EnforcedStyle: end
|
|
|
|
Layout/ElseAlignment:
|
|
|
|
Enabled: false
|
2018-03-02 04:50:11 +00:00
|
|
|
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
|
|
|
Enabled: false
|
2018-03-18 00:10:04 +00:00
|
|
|
Layout/IndentHash:
|
|
|
|
EnforcedStyle: consistent
|
2018-03-13 02:47:24 +00:00
|
|
|
Layout/MultilineMethodCallIndentation:
|
|
|
|
Enabled: false
|
|
|
|
Layout/SpaceInsideBlockBraces:
|
|
|
|
EnforcedStyle: space
|
|
|
|
SpaceBeforeBlockParameters: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Lint
|
2018-03-02 15:25:26 +00:00
|
|
|
Lint/EndAlignment:
|
|
|
|
EnforcedStyleAlignWith: variable
|
2018-03-14 16:59:32 +00:00
|
|
|
Lint/HandleExceptions:
|
|
|
|
Enabled: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Metrics
|
2018-03-14 15:47:35 +00:00
|
|
|
Metrics/AbcSize:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/BlockLength:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/BlockNesting:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/ClassLength:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/CyclomaticComplexity:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/LineLength:
|
|
|
|
Max: 100
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/ModuleLength:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/ParameterLists:
|
|
|
|
Enabled: false
|
|
|
|
Metrics/PerceivedComplexity:
|
|
|
|
Enabled: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Naming
|
2018-03-18 05:49:40 +00:00
|
|
|
Naming/PredicateName:
|
|
|
|
Enabled: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Performance
|
2018-03-19 01:10:32 +00:00
|
|
|
Performance/RedundantMatch:
|
|
|
|
Enabled: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Rails
|
2018-03-19 00:30:53 +00:00
|
|
|
Rails/Blank:
|
|
|
|
Enabled: false
|
2018-03-02 13:31:44 +00:00
|
|
|
Rails/FilePath:
|
|
|
|
Enabled: false
|
2018-03-19 00:32:55 +00:00
|
|
|
Rails/OutputSafety:
|
|
|
|
Enabled: false
|
2018-03-19 00:42:02 +00:00
|
|
|
Rails/Present:
|
|
|
|
UnlessBlank: false
|
2018-03-19 00:39:06 +00:00
|
|
|
Rails/SkipsModelValidations:
|
|
|
|
Enabled: false
|
2018-03-02 04:30:57 +00:00
|
|
|
|
|
|
|
# Security
|
|
|
|
|
|
|
|
# Style
|
2018-03-13 02:54:59 +00:00
|
|
|
Style/BlockDelimiters:
|
2018-03-13 03:16:53 +00:00
|
|
|
Enabled: false
|
2018-03-18 00:22:35 +00:00
|
|
|
Style/ConditionalAssignment:
|
|
|
|
Enabled: false
|
2018-03-14 13:01:14 +00:00
|
|
|
# It would be nice to have this on, but I'm not up for writing 66 of these in
|
|
|
|
# the process of addressing the initial 4,489 cop warnings.
|
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
|
|
|
Exclude: [db/migrate/**/*, spec/**/*, test/**/*]
|
2018-03-14 14:11:03 +00:00
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
EnforcedStyle: never
|
2018-03-16 22:55:39 +00:00
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|
2018-03-14 14:06:28 +00:00
|
|
|
Style/HashSyntax:
|
|
|
|
EnforcedStyle: no_mixed_keys
|
2018-03-03 05:35:08 +00:00
|
|
|
Style/IfUnlessModifier:
|
|
|
|
Enabled: false
|
2018-03-18 00:26:56 +00:00
|
|
|
Style/LineEndConcatenation:
|
|
|
|
Enabled: false
|
2018-03-03 05:35:08 +00:00
|
|
|
Style/NegatedIf:
|
|
|
|
EnforcedStyle: postfix
|
2018-03-18 05:47:10 +00:00
|
|
|
Style/NumericPredicate:
|
|
|
|
Enabled: false
|
2018-03-02 13:27:49 +00:00
|
|
|
Style/RedundantReturn:
|
|
|
|
Enabled: false
|
2018-03-13 03:16:53 +00:00
|
|
|
Style/RedundantSelf:
|
|
|
|
Enabled: false
|
2018-03-18 05:50:41 +00:00
|
|
|
Style/RescueStandardError:
|
|
|
|
EnforcedStyle: implicit
|
2018-03-18 00:26:56 +00:00
|
|
|
Style/RegexpLiteral:
|
|
|
|
AllowInnerSlashes: true
|
2018-03-19 00:15:55 +00:00
|
|
|
Style/SafeNavigation:
|
|
|
|
Enabled: false
|
2018-03-02 05:07:29 +00:00
|
|
|
Style/StringLiterals:
|
|
|
|
Enabled: false
|
2018-03-18 06:05:29 +00:00
|
|
|
Style/SymbolArray:
|
|
|
|
EnforcedStyle: brackets
|
2018-03-19 01:06:44 +00:00
|
|
|
Style/TrailingCommaInArguments:
|
|
|
|
Enabled: false
|
2018-03-14 13:01:14 +00:00
|
|
|
Style/TrailingCommaInLiteral:
|
|
|
|
EnforcedStyleForMultiline: consistent_comma
|