-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.rubocop.yml
More file actions
45 lines (39 loc) · 845 Bytes
/
Copy path.rubocop.yml
File metadata and controls
45 lines (39 loc) · 845 Bytes
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
inherit_from: .rubocop_todo.yml
inherit_gem:
rubocop-rails-omakase: rubocop.yml
plugins:
- rubocop-capybara
- rubocop-rails
- rubocop-yard
- rubocop-performance
AllCops:
TargetRubyVersion: 3.4
SuggestExtensions: false
NewCops: enable
Exclude:
- 'node_modules/**/*'
- 'vendor/**/*'
- 'bin/*'
- 'log/**/*'
- 'public/**/*'
- 'tmp/**/*'
- 'doc/**/*'
- 'docs/**/*'
- '.git/**/*'
- 'storage/**/*'
- db/schema*.rb
- db/migrate/*.rb
Style/StringLiterals:
EnforcedStyle: single_quotes
Metrics/BlockLength:
Exclude:
- config/environments/*
- db/*schema.rb
Metrics/MethodLength:
Max: 20 # Allows methods up to 20 lines
CountComments: false
CountAsOne: ['array', 'hash', 'heredoc', 'method_call']
AllowedMethods:
- context
- describe
- it