-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
76 lines (66 loc) · 1.95 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
67
68
69
70
71
72
73
74
75
76
require: rubocop-rails
AllCops:
NewCops: enable
Exclude:
- "db/**/*"
- "script/**/*"
- "bin/**/*"
# 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: 20
# Style/ClassVars:
# Enabled: false
# Metrics/AbcSize:
# Enabled: false
Layout/LineLength:
Max: 100
IgnoredPatterns: ['\s*#']
Metrics/BlockLength:
Exclude:
- config/**/*
- spec/**/*
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*
Style/Documentation:
Description: "Document classes and non-namespace modules."
Enabled: false
VersionAdded: "0.9"
Exclude:
- "spec/**/*"
- "test/**/*"