-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
executable file
·66 lines (51 loc) · 1.36 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
---
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
AllCops:
DisplayStyleGuide: true
DisplayCopNames: true
TargetRubyVersion: 3.1
NewCops: enable
Layout/DotPosition:
Description: 'Checks the position of the dot in multi-line method calls.'
EnforcedStyle: leading
Enabled: true
Layout/ExtraSpacing:
Description: 'Do not use unnecessary spacing.'
Enabled: true
Layout/LineLength:
Max: 120
Exclude:
- spec/**/*
Lint/LiteralInInterpolation:
Description: 'Avoid interpolating literals in strings'
AutoCorrect: true
Metrics/BlockLength:
Exclude:
- spec/**/*
Metrics/ClassLength:
CountComments: false # count full line comments?
Max: 200
Metrics/MethodLength:
Max: 12
Naming/FileName:
Description: 'Use snake_case for source file names.'
Enabled: true
Style/ClassAndModuleChildren:
Description: 'Checks style of children classes and modules.'
EnforcedStyle: nested
Enabled: true
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Enabled: true
Style/SymbolArray:
Description: 'Use %i or %I for arrays of symbols.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-i'
Enabled: false # Only available in Ruby 2.0+
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Enabled: true