-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
91 lines (68 loc) · 2.21 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
# https://github.com/rubocop/rubocop/blob/master/config/default.yml
# https://github.com/rails/rubocop-rails-omakase/blob/main/rubocop.yml
#
# check all files
# ./bin/rubocop --auto-gen-config
# edit ./.rubocop_todo.yml
# ./bin/rubocop --autocorrect
# check changed files
# ./bin/rubocop-changed
#inherit_from: .rubocop_todo.yml
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
# Your own specialized rules go here
AllCops:
Exclude:
- 'tmp*/**/*'
# Project cops -----------------------------------------------------------------
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Layout/CaseIndentation:
IndentOneStep: true
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_no_space, require_space
Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_space
# Configuration parameters: AllowInHeredoc.
#Layout/TrailingWhitespace:
# Enabled: true
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent
#Style/HashSyntax:
# Enabled: true
# Configuration parameters: PreferredDelimiters.
#Style/PercentLiteralDelimiters:
# Enabled: true
# Configuration parameters: AllowMultipleReturnValues.
#Style/RedundantReturn:
# Enabled: true
# Disabled cops ----------------------------------------------------------------
Layout/CommentIndentation:
Enabled: false
Layout/LeadingCommentSpace:
Enabled: false
Layout/SpaceBeforeComma:
Enabled: false
Layout/SpaceBeforeFirstArg:
Enabled: false
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
Layout/SpaceInsideArrayPercentLiteral:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Layout/SpaceInsideParens:
Enabled: false
Layout/SpaceBeforeBlockBraces:
Enabled: false
Layout/SpaceInsideReferenceBrackets:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false