-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
113 lines (94 loc) · 2.51 KB
/
.rubocop.yml
File metadata and controls
113 lines (94 loc) · 2.51 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Add plugins
plugins: # Rubocop has been updated and now requires changing 'require' to 'plugins.'. More details about the changes here https://docs.rubocop.org/rubocop/plugin_migration_guide.html
- rubocop-rails
- rubocop-rspec_rails
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
# All Rules:
AllCops:
Exclude:
- db/schema.rb # Ignore schema because it's auto-generated
- db/*_schema.rb # Ignore cable, cache, queue schema because it's auto-generated
- node_modules/**/* # Ignore JavaScript dependencies files
- tmp/**/* # Ignore temporary files
- bin/* # Ignore binaries files
- vendor/**/* # Ignore vendor dependencies files
SuggestExtensions: false # Ignore the message about extension suggestions
# Style Rules:
Style/StringLiterals:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/GlobalStdStream:
Enabled: false
Style/Documentation:
Enabled: false
Style/SymbolArray:
Enabled: false
# Layout Rules:
Layout/ExtraSpacing:
Exclude:
- Gemfile
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
Layout/SpaceInsidePercentLiteralDelimiters:
Enabled: false
Layout/LineLength:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- Gemfile
- config/**/*.rb
# Metrics Rules:
Metrics/MethodLength:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- config/**/*.rb
Metrics/BlockLength:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- config/**/*.rb
Metrics/AbcSize:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- config/**/*.rb
Metrics/PerceivedComplexity:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- config/**/*.rb
Metrics/ClassLength:
Exclude:
- db/seeds/**/*.rb
- lib/tasks/**/*.rake
- app/admin/**/*.rb
- db/migrate/**/*.rb
- spec/**/*_spec.rb
- app/helpers/**/*.rb
- config/**/*.rb