tilde.news/.rubocop.yml

150 lines
2.9 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-19 18:49:26 +00:00
Layout/AlignArray:
Enabled: false
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/MultilineMethodCallBraceLayout:
Enabled: false
Layout/MultilineMethodCallIndentation:
Enabled: false
Layout/SpaceAroundOperators:
Enabled: false
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
SpaceBeforeBlockParameters: false
Layout/SpaceInsideRangeLiteral:
Enabled: 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-19 19:43:20 +00:00
Naming/AccessorMethodName:
Enabled: false
2018-03-18 05:49:40 +00:00
Naming/PredicateName:
Enabled: false
2018-03-19 19:46:09 +00:00
# disabled until class vaiables in extras become constants
Naming/VariableName:
Enabled: false
2018-03-02 04:30:57 +00:00
# Performance
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
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
Rails/SkipsModelValidations:
Enabled: false
2018-03-02 04:30:57 +00:00
# Security
# Style
Style/BlockDelimiters:
Enabled: false
Style/ClassVars:
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-19 21:14:05 +00:00
Style/PerlBackrefs:
Enabled: false
2018-03-19 02:07:20 +00:00
Style/RaiseArgs:
EnforcedStyle: compact
Style/RedundantBegin:
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
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
Style/TrailingCommaInArguments:
Enabled: false
2018-03-14 13:01:14 +00:00
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: consistent_comma