11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2016-05-12 13:44:44 +0800 using RuboCop version 0.40.0 .
3+ # on 2018-06-22 19:29:12 -0300 using RuboCop version 0.57.2 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
9+ # Offense count: 1
10+ # Cop supports --auto-correct.
11+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
12+ # SupportedStylesAlignWith: start_of_line, def
13+ Layout/DefEndAlignment :
14+ Exclude :
15+ - ' lib/fog/aliyun/requests/storage/put_object.rb'
16+
17+ # Offense count: 5
18+ # Cop supports --auto-correct.
19+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
20+ # SupportedStylesAlignWith: keyword, variable, start_of_line
21+ Layout/EndAlignment :
22+ Exclude :
23+ - ' lib/fog/aliyun/compute.rb'
24+ - ' lib/fog/aliyun/models/storage/file.rb'
25+ - ' lib/fog/aliyun/requests/compute/create_server.rb'
26+ - ' lib/fog/aliyun/storage.rb'
27+
928# Offense count: 4
1029# Configuration parameters: AllowSafeAssignment.
1130Lint/AssignmentInCondition :
1231 Exclude :
1332 - ' lib/fog/aliyun/requests/compute/create_server.rb'
1433 - ' lib/fog/aliyun/requests/compute/delete_server.rb'
1534
16- # Offense count: 1
17- # Cop supports --auto-correct.
18- # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
19- # SupportedStyles: start_of_line, def
20- Lint/DefEndAlignment :
21- Enabled : false
22-
23- # Offense count: 5
24- # Cop supports --auto-correct.
25- # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
26- # SupportedStyles: keyword, variable, start_of_line
27- Lint/EndAlignment :
28- Enabled : false
29-
3035# Offense count: 4
3136Lint/RandOne :
3237 Exclude :
@@ -35,19 +40,19 @@ Lint/RandOne:
3540 - ' lib/fog/aliyun/requests/compute/list_servers.rb'
3641 - ' lib/fog/aliyun/requests/compute/list_vrouters.rb'
3742
38- # Offense count: 127
39- Lint/UnderscorePrefixedVariableName :
40- Enabled : false
41-
4243# Offense count: 1
4344Lint/UnreachableCode :
4445 Exclude :
4546 - ' lib/fog/aliyun/models/storage/directory.rb'
4647
47- # Offense count: 38
48+ # Offense count: 26
49+ Lint/UriEscapeUnescape :
50+ Enabled : false
51+
52+ # Offense count: 37
4853Lint/UselessAssignment :
4954 Exclude :
50- - ' lib/fog/aliyun.rb'
55+ - ' lib/fog/aliyun/requests/compute/create_server .rb'
5156 - ' lib/fog/aliyun/requests/compute/list_disks.rb'
5257 - ' lib/fog/aliyun/requests/compute/list_security_groups.rb'
5358 - ' lib/fog/aliyun/requests/storage/delete_object.rb'
@@ -62,30 +67,17 @@ Lint/UselessAssignment:
6267 - ' lib/fog/aliyun/requests/storage/put_object.rb'
6368 - ' lib/fog/aliyun/storage.rb'
6469
65- # Offense count: 78
66- Metrics/AbcSize :
67- Max : 100
68-
69- # Offense count: 5
70+ # Offense count: 7
7071# Configuration parameters: CountComments.
7172Metrics/ClassLength :
7273 Max : 154
7374
74- # Offense count: 18
75- Metrics/CyclomaticComplexity :
76- Max : 15
77-
78- # Offense count: 257
79- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
75+ # Offense count: 87
76+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
8077# URISchemes: http, https
8178Metrics/LineLength :
8279 Max : 247
8380
84- # Offense count: 110
85- # Configuration parameters: CountComments.
86- Metrics/MethodLength :
87- Max : 97
88-
8981# Offense count: 1
9082# Configuration parameters: CountKeywordArgs.
9183Metrics/ParameterLists :
@@ -95,20 +87,45 @@ Metrics/ParameterLists:
9587Metrics/PerceivedComplexity :
9688 Max : 19
9789
90+ # Offense count: 7
91+ # Configuration parameters: EnforcedStyle.
92+ # SupportedStyles: snake_case, camelCase
93+ Naming/MethodName :
94+ Exclude :
95+ - ' lib/fog/aliyun/compute.rb'
96+ - ' lib/fog/aliyun/requests/storage/get_bucket.rb'
97+
98+ # Offense count: 48
99+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
100+ # AllowedNames: io, id, to, by, on, in, at
101+ Naming/UncommunicativeMethodParamName :
102+ Enabled : false
103+
104+ # Offense count: 5
105+ Performance/Caller :
106+ Exclude :
107+ - ' lib/fog/aliyun/models/compute/images.rb'
108+ - ' lib/fog/aliyun/models/compute/snapshots.rb'
109+ - ' lib/fog/aliyun/models/compute/volumes.rb'
110+ - ' lib/fog/aliyun/models/compute/vpcs.rb'
111+ - ' lib/fog/aliyun/models/compute/vrouters.rb'
112+
98113# Offense count: 1
99114Style/ClassVars :
100115 Exclude :
101116 - ' lib/fog/bin/aliyun.rb'
102117
103- # Offense count: 138
104- Style/Documentation :
105- Enabled : false
106-
107118# Offense count: 7
108- # Configuration parameters: EnforcedStyle, SupportedStyles .
109- # SupportedStyles: for, each
119+ # Configuration parameters: EnforcedStyle.
120+ # SupportedStyles: each, for
110121Style/For :
111- Enabled : false
122+ Exclude :
123+ - ' lib/fog/aliyun/models/storage/files.rb'
124+ - ' lib/fog/aliyun/requests/compute/list_images.rb'
125+ - ' lib/fog/aliyun/requests/compute/list_route_tables.rb'
126+ - ' lib/fog/aliyun/requests/compute/list_servers.rb'
127+ - ' lib/fog/aliyun/requests/compute/list_vrouters.rb'
128+ - ' lib/fog/aliyun/requests/storage/put_object.rb'
112129
113130# Offense count: 4
114131# Configuration parameters: AllowedVariables.
@@ -119,12 +136,21 @@ Style/GlobalVars:
119136 - ' lib/fog/aliyun/models/compute/vrouter.rb'
120137 - ' lib/fog/aliyun/models/compute/vswitch.rb'
121138
122- # Offense count: 2
139+ # Offense count: 11
123140# Configuration parameters: MinBodyLength.
124141Style/GuardClause :
125142 Exclude :
143+ - ' lib/fog/aliyun/models/compute/security_groups.rb'
144+ - ' lib/fog/aliyun/models/compute/snapshots.rb'
145+ - ' lib/fog/aliyun/models/compute/volumes.rb'
146+ - ' lib/fog/aliyun/models/storage/file.rb'
147+ - ' lib/fog/aliyun/requests/compute/delete_security_group.rb'
148+ - ' lib/fog/aliyun/requests/compute/delete_server.rb'
126149 - ' lib/fog/aliyun/requests/compute/delete_vpc.rb'
150+ - ' lib/fog/aliyun/requests/compute/delete_vpn_connection.rb'
151+ - ' lib/fog/aliyun/requests/compute/delete_vpn_customergateway.rb'
127152 - ' lib/fog/aliyun/requests/compute/delete_vswitch.rb'
153+ - ' lib/fog/aliyun/requests/compute/list_security_group_rules.rb'
128154
129155# Offense count: 2
130156Style/IdenticalConditionalBranches :
@@ -136,14 +162,16 @@ Style/IfInsideElse:
136162 Exclude :
137163 - ' lib/fog/aliyun/models/compute/security_group_rule.rb'
138164
139- # Offense count: 4
140- # Configuration parameters: EnforcedStyle, SupportedStyles.
141- # SupportedStyles: snake_case, camelCase
142- Style/MethodName :
143- Enabled : false
165+ # Offense count: 2
166+ Style/MultipleComparison :
167+ Exclude :
168+ - ' lib/fog/aliyun/requests/storage/get_object_http_url.rb '
169+ - ' lib/fog/aliyun/requests/storage/get_object_https_url.rb '
144170
145- # Offense count: 741
146- # Configuration parameters: EnforcedStyle, SupportedStyles.
147- # SupportedStyles: snake_case, camelCase
148- Style/VariableName :
149- Enabled : false
171+ # Offense count: 1
172+ # Cop supports --auto-correct.
173+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
174+ # SupportedStyles: slashes, percent_r, mixed
175+ Style/RegexpLiteral :
176+ Exclude :
177+ - ' lib/fog/aliyun/models/storage/files.rb'
0 commit comments