|
1 |
| -AllCops: |
2 |
| - DisabledByDefault: true |
3 |
| - TargetRubyVersion: 2.6 |
4 |
| - Exclude: |
5 |
| - - 'vendor/**/*' |
6 |
| - - 'lib/generators/settings/templates/*' |
7 |
| - |
8 |
| -# Prefer &&/|| over and/or. |
9 |
| -Style/AndOr: |
10 |
| - Enabled: true |
11 |
| - |
12 |
| -# Do not use braces for hash literals when they are the last argument of a |
13 |
| -# method call. |
14 |
| -Style/BracesAroundHashParameters: |
15 |
| - Enabled: true |
16 |
| - EnforcedStyle: context_dependent |
17 |
| - |
18 |
| -# Align `when` with `case`. |
19 |
| -Layout/CaseIndentation: |
20 |
| - Enabled: true |
21 |
| - |
22 |
| -# Align comments with method definitions. |
23 |
| -Layout/CommentIndentation: |
24 |
| - Enabled: true |
25 |
| - |
26 |
| -Layout/ElseAlignment: |
27 |
| - Enabled: true |
28 |
| - |
29 |
| -Layout/EmptyLineAfterMagicComment: |
30 |
| - Enabled: true |
31 |
| - |
32 |
| -# In a regular class definition, no empty lines around the body. |
33 |
| -Layout/EmptyLinesAroundClassBody: |
34 |
| - Enabled: true |
35 |
| - |
36 |
| -# In a regular method definition, no empty lines around the body. |
37 |
| -Layout/EmptyLinesAroundMethodBody: |
38 |
| - Enabled: true |
39 |
| - |
40 |
| -# In a regular module definition, no empty lines around the body. |
41 |
| -Layout/EmptyLinesAroundModuleBody: |
42 |
| - Enabled: true |
43 |
| - |
44 |
| -Layout/FirstArgumentIndentation: |
45 |
| - Enabled: true |
46 |
| - |
47 |
| -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. |
48 |
| -Style/HashSyntax: |
49 |
| - Enabled: true |
50 |
| - |
51 |
| -# Method definitions after `private` or `protected` isolated calls need one |
52 |
| -# extra level of indentation. |
53 |
| -Layout/IndentationConsistency: |
54 |
| - Enabled: true |
55 |
| - EnforcedStyle: indented_internal_methods |
56 |
| - |
57 |
| -# Two spaces, no tabs (for indentation). |
58 |
| -Layout/IndentationWidth: |
59 |
| - Enabled: true |
60 |
| - |
61 |
| -Layout/LeadingCommentSpace: |
62 |
| - Enabled: true |
63 |
| - |
64 |
| -Layout/SpaceAfterColon: |
65 |
| - Enabled: true |
66 |
| - |
67 |
| -Layout/SpaceAfterComma: |
68 |
| - Enabled: true |
69 |
| - |
70 |
| -Layout/SpaceAroundEqualsInParameterDefault: |
71 |
| - Enabled: true |
72 |
| - |
73 |
| -Layout/SpaceAroundKeyword: |
74 |
| - Enabled: true |
75 |
| - |
76 |
| -Layout/SpaceAroundOperators: |
77 |
| - Enabled: true |
78 |
| - |
79 |
| -Layout/SpaceBeforeComma: |
80 |
| - Enabled: true |
81 |
| - |
82 |
| -Layout/SpaceBeforeFirstArg: |
83 |
| - Enabled: true |
84 |
| - |
85 |
| -Style/DefWithParentheses: |
86 |
| - Enabled: true |
87 |
| - |
88 |
| -# Defining a method with parameters needs parentheses. |
89 |
| -Style/MethodDefParentheses: |
90 |
| - Enabled: true |
91 |
| - |
92 |
| -Style/FrozenStringLiteralComment: |
93 |
| - Enabled: false |
94 |
| - EnforcedStyle: always |
95 |
| - |
96 |
| -# Use `foo {}` not `foo{}`. |
97 |
| -Layout/SpaceBeforeBlockBraces: |
98 |
| - Enabled: true |
99 |
| - |
100 |
| -# Use `foo { bar }` not `foo {bar}`. |
101 |
| -Layout/SpaceInsideBlockBraces: |
102 |
| - Enabled: true |
103 |
| - |
104 |
| -# Use `{ a: 1 }` not `{a:1}`. |
105 |
| -Layout/SpaceInsideHashLiteralBraces: |
106 |
| - Enabled: true |
107 |
| - |
108 |
| -Layout/SpaceInsideParens: |
109 |
| - Enabled: true |
110 |
| - |
111 |
| -# Check quotes usage according to lint rule below. |
112 | 1 | Style/StringLiterals:
|
113 | 2 | Enabled: true
|
114 | 3 | EnforcedStyle: double_quotes
|
115 |
| - |
116 |
| -# Detect hard tabs, no hard tabs. |
117 |
| -Layout/Tab: |
118 |
| - Enabled: true |
119 |
| - |
120 |
| -# Blank lines should not have any spaces. |
121 |
| -Layout/TrailingEmptyLines: |
122 |
| - Enabled: true |
123 |
| - |
124 |
| -# No trailing whitespace. |
125 |
| -Layout/TrailingWhitespace: |
126 |
| - Enabled: true |
127 |
| - |
128 |
| -# Use quotes for string literals when they are enough. |
129 |
| -Style/RedundantPercentQ: |
130 |
| - Enabled: true |
131 |
| - |
132 |
| -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. |
133 |
| -Lint/RequireParentheses: |
134 |
| - Enabled: true |
135 |
| - |
136 |
| -Style/RedundantReturn: |
137 |
| - Enabled: true |
138 |
| - AllowMultipleReturnValues: true |
139 |
| - |
140 |
| -Style/Semicolon: |
141 |
| - Enabled: true |
142 |
| - AllowAsExpressionSeparator: true |
0 commit comments