forked from invernizzi/vagrant-scp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
143 lines (118 loc) · 3.32 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
135
136
137
138
139
140
141
142
143
AllCops:
NewCops: enable
Exclude:
- vendor/**/*
- bin/**/*
Metrics/MethodLength:
CountComments: false # count full line comments?
Enabled: false
Metrics/ClassLength:
Enabled: true
Exclude:
- lib/vagrant-scp-sync/driver*
Naming/MethodName:
EnforcedStyle: snake_case
Naming/FileName:
Exclude:
- 'lib/vagrant-scp-sync.rb'
Naming/AccessorMethodName:
Description: Check the naming of accessor methods for get_/set_.
Enabled: false
Style/Encoding:
Description: 'Use UTF-8 as the source file encoding.'
Enabled: true
Style/HashSyntax:
Description: >-
Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax
{ :a => 1, :b => 2 }.
Enabled: false
EnforcedStyle: hash_rockets
Style/LineEndConcatenation:
Description: 'Use \\ instead of + to concatenate two string literals at line end.'
Enabled: true
AutoCorrect: true
Layout/LineLength:
Description: 'Limit lines to 139 characters.'
Enabled: true
Max: 200
Metrics/CyclomaticComplexity:
Description: 'Avoid complex methods.'
Enabled: false
Metrics/BlockLength:
Description: 'Limit Block to 139 Characters'
Max: 139
Metrics/ModuleLength:
Description: 'Limit Block to 150 Characters'
Max: 165
Metrics/AbcSize:
Description: >-
A calculated magnitude based on number of assignments,
branches, and conditions.
Reference: 'http://c2.com/cgi/wiki?AbcMetric'
Enabled: true
VersionAdded: '0.27'
# The ABC size is a calculated magnitude, so this number can be an Integer or
# a Float.
Max: 90
Metrics/PerceivedComplexity:
Description: >-
A complexity metric geared towards measuring complexity for a
human reader.
Enabled: true
VersionAdded: '0.25'
Max: 30
Style/RedundantReturn:
Description: >-
ensure there are no redudant returns
Enabled: true
AutoCorrect: true
Style/SpecialGlobalVars:
Description: >-
Set Special Global vars
Enabled: true
AutoCorrect: true
Style/RedundantInterpolation:
Description: >-
Check for redudant interpolation
Enabled: true
AutoCorrect: true
Style/StringConcatenation:
Description: >-
Prefer to use String contactenation
Enabled: true
AutoCorrect: true
Style/IfUnlessModifier:
Description: >-
Used to check If/Unless should be used
Enabled: true
AutoCorrect: true
Layout/EmptyLineAfterGuardClause:
Description: >-
Empty line to show where clauses are
Enabled: true
AutoCorrect: true
Style/CaseLikeIf:
Description: >-
If if unles case styling
Enabled: true
AutoCorrect: true
Layout/CaseIndentation:
Description: >-
Enusures cases are Indented properly
Enabled: true
AutoCorrect: true
Layout/TrailingWhitespace:
Description: >-
Enusures cases are Indented properly
Enabled: true
AutoCorrect: true
Layout/EmptyLinesAroundBlockBody:
Description: >-
Enusures cases are Indented properly
Enabled: true
AutoCorrect: true
Layout/ElseAlignment:
Description: >-
Enusures cases are Indented properly
Enabled: true
AutoCorrect: true