-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
70 lines (60 loc) · 1.8 KB
/
.rubocop.yml
File metadata and controls
70 lines (60 loc) · 1.8 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
AllCops:
NewCops: enable
Exclude:
- "*/*_test.rb"
- "_test.rb"
Style/StringLiterals:
Description: "Checks if uses of quotes match the configured preference."
StyleGuide: "#consistent-string-literals"
Enabled: true
VersionAdded: "0.9"
VersionChanged: "0.36"
EnforcedStyle: double_quotes
SupportedStyles:
- single_quotes
- double_quotes
# If `true`, strings which span multiple lines using `\` for continuation must
# use the same type of quotes on each line.
ConsistentQuotesInMultiline: false
Style/FrozenStringLiteralComment:
Description: >-
Add the frozen_string_literal comment to the top of files
to help transition to frozen string literals by default.
Enabled: false
VersionAdded: "0.36"
VersionChanged: "0.79"
EnforcedStyle: always
SupportedStyles:
# `always` will always add the frozen string literal comment to a file
# regardless of the Ruby version or if `freeze` or `<<` are called on a
# string literal. It is possible that this will create errors.
- always
# `always_true` will add the frozen string literal comment to a file,
# similarly to the `always` style, but will also change any disabled
# comments (e.g. `# frozen_string_literal: false`) to be enabled.
- always_true
# `never` will enforce that the frozen string literal comment does not
# exist in a file.
- never
SafeAutoCorrect: false
Style/GlobalVars:
Enabled: false
Metrics/MethodLength:
Max: 25
Style/ClassVars:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/AbcSize:
Max: 25
Metrics/CyclomaticComplexity:
Max: 15
Style/Documentation:
Description: "Document classes and non-namespace modules."
Enabled: false
VersionAdded: "0.9"
Exclude:
- "spec/**/*"
- "test/**/*"