1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-26 23:33:03 +00:00
mpw/.rubocop.yml

122 lines
2.5 KiB
YAML
Raw Normal View History

2017-03-29 06:12:57 +00:00
AllCops:
Exclude:
- db/**/*
- config/**/*
- Vagrantfile
TargetRubyVersion: 2.3
Style/AccessorMethodName:
Enabled: false
Style/NumericLiteralPrefix:
Enabled: false
Style/TrailingCommaInArguments:
Enabled: false
Style/TrailingCommaInLiteral:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Metrics/ParameterLists:
Max: 5
CountKeywordArgs: false
Style/MutableConstant:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/AbcSize:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/ClassLength:
Enabled: false
Style/SpaceInsideHashLiteralBraces:
Enabled: false
Style/AsciiComments:
Enabled: true
Style/Documentation:
Enabled: false
Style/SignalException:
Enabled: false
Style/OptionHash:
Enabled: true
Style/SymbolArray:
Enabled: true
Performance/Casecmp:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/RaiseArgs:
EnforcedStyle: exploded
Style/SpaceInLambdaLiteral:
Enabled: false
Lint/UnneededSplatExpansion:
Enabled: false
# Generated configuration
Style/HashSyntax:
Enabled: true
EnforcedStyle: ruby19
UseHashRocketsWithSymbolValues: false
Style/MethodDefParentheses:
Enabled: true
EnforcedStyle: require_parentheses
Style/MultilineAssignmentLayout:
Enabled: true
EnforcedStyle: new_line
Style/IndentationConsistency:
Enabled: true
EnforcedStyle: normal
Style/AlignParameters:
Enabled: true
EnforcedStyle: with_fixed_indentation
Style/BlockDelimiters:
Enabled: true
EnforcedStyle: line_count_based
Style/AndOr:
Enabled: true
Style/DotPosition:
Enabled: true
EnforcedStyle: leading
Style/EmptyLinesAroundClassBody:
Enabled: true
EnforcedStyle: no_empty_lines
Style/EmptyLinesAroundModuleBody:
Enabled: true
EnforcedStyle: no_empty_lines
Style/NumericPredicate:
Enabled: true
EnforcedStyle: comparison
Style/EvenOdd:
Enabled: false
Style/CollectionMethods:
Enabled: true
PreferredMethods:
collect: map
collect!: map!
inject: reduce
detect: find
find_all: select
Style/EmptyLinesAroundAccessModifier:
Enabled: true
Style/CommandLiteral:
Enabled: true
EnforcedStyle: percent_x
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/SpaceInsideBlockBraces:
EnforcedStyle: space
Style/VariableNumber:
EnforcedStyle: snake_case