tilde.news/.rubocop.yml

115 lines
2.2 KiB
YAML
Raw Normal View History

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
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
Lint/HandleExceptions:
Enabled: false
2018-03-02 04:30:57 +00:00
# Metrics
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
# Rails
Rails/FilePath:
Enabled: false
2018-03-02 04:30:57 +00:00
# Security
# Style
Style/BlockDelimiters:
Enabled: false
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/**/*]
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Style/GuardClause:
Enabled: false
Style/HashSyntax:
EnforcedStyle: no_mixed_keys
Style/IfUnlessModifier:
Enabled: false
2018-03-18 00:26:56 +00:00
Style/LineEndConcatenation:
Enabled: false
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
Style/RedundantSelf:
Enabled: false
Style/RescueStandardError:
EnforcedStyle: implicit
2018-03-18 00:26:56 +00:00
Style/RegexpLiteral:
AllowInnerSlashes: true
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-14 13:01:14 +00:00
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: consistent_comma