-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
70 lines (61 loc) · 1.69 KB
/
Copy path.rubocop.yml
File metadata and controls
70 lines (61 loc) · 1.69 KB
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
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
AllCops:
Exclude:
- bin/*
- config.ru
- config/application.rb
- config/boot.rb
- config/environment.rb
- config/puma.rb
- config/initializers/mime_types.rb
- config/initializers/inflections.rb
- config/initializers/filter_parameter_logging.rb
- config/initializers/content_security_policy.rb
- config/initializers/assets.rb
- db/schema.rb
- db/migrate/**/*
- vendor/**/*
- lib/tasks/auto_annotate_models.rake
NewCops: enable
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
Layout/EndAlignment:
EnforcedStyleAlignWith: keyword
# Disallow using extra spaces for visual alignment (e.g. lining up `=` in
# consecutive assignments or constants). Such "layout via spaces" is brittle
# and noisy in diffs.
Layout/ExtraSpacing:
Enabled: true
AllowForAlignment: false
AllowBeforeTrailingComments: false
ForceEqualSignAlignment: false
# Enforce single space around the `=` in assignments — catches the same
# alignment-by-padding pattern from the operator side.
Layout/SpaceAroundOperators:
Enabled: true
AllowForAlignment: false
Layout/SpaceBeforeFirstArg:
AllowForAlignment: false
Layout/SpaceInsideArrayLiteralBrackets:
EnforcedStyle: no_space
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%i': '()'
'%I': '()'
'%w': '()'
'%W': '()'
Exclude:
- Gemfile
Style/StringLiterals:
EnforcedStyle: double_quotes
Include:
- app/**/*
- config/**/*
- lib/**/*
- test/**/*
- spec/**/*
- Gemfile