forked from rails/thor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
134 lines (108 loc) · 2.75 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
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
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.0
DisabledByDefault: true
Exclude:
- spec/sandbox/**/*
- spec/fixtures/**/*
# Enforce Ruby 1.8-compatible hash syntax
HashSyntax:
EnforcedStyle: hash_rockets
# No spaces inside hash literals
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
# 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
StringLiterals:
EnforcedStyle: double_quotes
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'
- 'spec/fixtures/invoke.thor'
Naming/AccessorMethodName:
Exclude:
- 'lib/thor/line_editor/basic.rb'
- 'spec/fixtures/group.thor'
- 'spec/sandbox/group.thor'
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'
Naming/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'
Layout/IndentArray:
EnforcedStyle: consistent
Style/MethodMissing:
Exclude:
- 'lib/thor/core_ext/hash_with_indifferent_access.rb'
- 'lib/thor/runner.rb'
- 'spec/fixtures/script.thor'
- 'spec/sandbox/script.thor'
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'
Layout/TrailingWhitespace:
Exclude:
- 'spec/shell/basic_spec.rb'