File: .rubocop.yml

package info (click to toggle)
ruby-thor 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 800 kB
  • sloc: ruby: 8,134; makefile: 4; sh: 1
file content (184 lines) | stat: -rw-r--r-- 3,329 bytes parent folder | download | duplicates (2)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
AllCops:
  TargetRubyVersion: 2.2

Metrics/ParameterLists:
  Max: 6
  CountKeywordArgs: true

Metrics/MethodLength:
  Max: 25
  CountComments: false

Metrics/AbcSize:
  Enabled: false

Metrics/ClassLength:
  Max: 300

Metrics/ModuleLength:
  Max: 300

Metrics/BlockLength:
  Max: 30

Metrics/CyclomaticComplexity:
  Max: 12

Metrics/PerceivedComplexity:
  Max: 15

BlockNesting:
  Max: 4

Metrics/LineLength:
  Enabled: false

AccessModifierIndentation:
  Enabled: false

Documentation:
  Enabled: false

# Enforce Ruby 1.8-compatible hash syntax
HashSyntax:
  EnforcedStyle: hash_rockets

# No spaces inside hash literals
SpaceInsideHashLiteralBraces:
  EnforcedStyle: no_space

# Allow dots at the end of lines
DotPosition:
  Enabled: false

# Don't require magic comment at the top of every file
Encoding:
  Enabled: false

# Enforce outdenting of access modifiers (i.e. public, private, protected)
AccessModifierIndentation:
  EnforcedStyle: outdent

EmptyLinesAroundAccessModifier:
  Enabled: true

# Align ends correctly
EndAlignment:
  EnforcedStyleAlignWith: variable

# Indentation of when/else
CaseIndentation:
  EnforcedStyle: end
  IndentOneStep: false

DoubleNegation:
  Enabled: false

StringLiterals:
  EnforcedStyle: double_quotes

Style/SymbolLiteral:
  Enabled: false

Lint/AssignmentInCondition:
  Exclude:
    - 'lib/thor/line_editor/readline.rb'
    - 'lib/thor/parser/arguments.rb'

Lint/EndAlignment:
  Exclude:
    - 'lib/thor/actions.rb'
    - 'lib/thor/parser/option.rb'

Security/Eval:
  Exclude:
    - 'spec/helper.rb'

Lint/HandleExceptions:
  Exclude:
    - 'lib/thor/line_editor/readline.rb'

Lint/PercentStringArray:
  Exclude:
    - 'spec/parser/options_spec.rb'

Lint/UnusedMethodArgument:
  Exclude:
    - 'lib/thor.rb'
    - 'lib/thor/base.rb'
    - 'lib/thor/command.rb'
    - 'lib/thor/parser/arguments.rb'
    - 'lib/thor/shell/html.rb'
    - 'spec/actions/empty_directory_spec.rb'

Style/AccessorMethodName:
  Exclude:
    - 'lib/thor/line_editor/basic.rb'

Style/Alias:
  Enabled: false

Style/ClassAndModuleChildren:
  Exclude:
    - 'lib/thor/group.rb'
    - 'lib/thor/runner.rb'
    - 'spec/shell_spec.rb'
    - 'spec/util_spec.rb'

Style/ClassVars:
  Exclude:
    - 'lib/thor/util.rb'
    - 'spec/util_spec.rb'

Style/ConstantName:
  Exclude:
    - 'spec/line_editor_spec.rb'

Style/GlobalVars:
  Exclude:
    - 'bin/thor'
    - 'lib/thor.rb'
    - 'lib/thor/base.rb'
    - 'lib/thor/shell/basic.rb'
    - 'spec/helper.rb'
    - 'spec/rake_compat_spec.rb'
    - 'spec/register_spec.rb'
    - 'spec/thor_spec.rb'

Style/IndentArray:
  EnforcedStyle: consistent

Style/MethodMissing:
  Exclude:
    - 'lib/thor/core_ext/hash_with_indifferent_access.rb'
    - 'lib/thor/runner.rb'

Style/MutableConstant:
  Enabled: false

Style/NumericLiteralPrefix:
  Exclude:
    - 'spec/actions/file_manipulation_spec.rb'

Style/NumericPredicate:
  Exclude:
    - 'spec/**/*'
    - 'lib/thor/parser/option.rb'

Style/PerlBackrefs:
  Exclude:
    - 'lib/thor/actions/empty_directory.rb'
    - 'lib/thor/core_ext/hash_with_indifferent_access.rb'
    - 'lib/thor/parser/arguments.rb'
    - 'lib/thor/parser/options.rb'

Style/TrailingUnderscoreVariable:
  Exclude:
    - 'lib/thor/group.rb'

Style/TrailingWhitespace:
  Exclude:
    - 'spec/shell/basic_spec.rb'

Style/AlignParameters:
  Enabled: false