-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
96 lines (89 loc) · 2.13 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
require: rubocop-rake
AllCops:
AllowSymlinksInCacheRootDirectory: true
TargetRubyVersion: 3.2
Exclude:
- "**/bin/**/*"
- "**/node_modules/**/*"
- "**/.git/**/*"
AutoCorrect: true
NewCops: enable
StyleGuideBaseURL: https://rubystyle.guide
#Rails:
# StyleGuideBaseURL: https://rails.rubystyle.guide
# TODO: enable Gemspec/DevelopmentDependencies and pick an `EnforcedStyle`
Gemspec/DevelopmentDependencies:
Enabled: false
Layout/AccessModifierIndentation:
EnforcedStyle: outdent
Layout/EmptyLinesAroundAccessModifier:
EnforcedStyle: only_before
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
#Layout/ExtraSpacing:
# Enabled: false # Disabled pending resoulution of #5657
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/HashAlignment:
EnforcedColonStyle: table
EnforcedHashRocketStyle: table
Layout/LineLength:
Enabled: false
#Layout/SpaceAroundOperators:
# Enabled: false # Disabled pending resoulution of #5657
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: space
Lint/AmbiguousOperator:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
IgnoredMethods:
- aasm
- included
- class_methods
- namespace
- task
Metrics/MethodLength:
Max: 25
Metrics/ParameterLists:
Enabled: false
Naming/MethodParameterName:
AllowedNames:
- as
- to
- io
- id
Style/AccessorGrouping:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
Style/ClassAndModuleChildren:
Enabled: false
Style/CommentedKeyword:
Enabled: false
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FrozenStringLiteralComment:
EnforcedStyle: always_true
SafeAutoCorrect: true
Style/HashSyntax:
EnforcedStyle: no_mixed_keys
Style/Lambda:
EnforcedStyle: literal
Style/MultilineBlockChain:
Enabled: false
Style/MultilineIfModifier:
Enabled: false
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names
Style/SymbolArray:
MinSize: 1
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma