.rubocop_todo.yml in fog-aliyun-0.3.0 vs .rubocop_todo.yml in fog-aliyun-0.3.1
- old
+ new
@@ -1,55 +1,60 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2016-05-12 13:44:44 +0800 using RuboCop version 0.40.0.
+# on 2018-06-22 19:29:12 -0300 using RuboCop version 0.57.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
+# Offense count: 1
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
+# SupportedStylesAlignWith: start_of_line, def
+Layout/DefEndAlignment:
+ Exclude:
+ - 'lib/fog/aliyun/requests/storage/put_object.rb'
+
+# Offense count: 5
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
+# SupportedStylesAlignWith: keyword, variable, start_of_line
+Layout/EndAlignment:
+ Exclude:
+ - 'lib/fog/aliyun/compute.rb'
+ - 'lib/fog/aliyun/models/storage/file.rb'
+ - 'lib/fog/aliyun/requests/compute/create_server.rb'
+ - 'lib/fog/aliyun/storage.rb'
+
# Offense count: 4
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'lib/fog/aliyun/requests/compute/create_server.rb'
- 'lib/fog/aliyun/requests/compute/delete_server.rb'
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
-# SupportedStyles: start_of_line, def
-Lint/DefEndAlignment:
- Enabled: false
-
-# Offense count: 5
-# Cop supports --auto-correct.
-# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
-# SupportedStyles: keyword, variable, start_of_line
-Lint/EndAlignment:
- Enabled: false
-
# Offense count: 4
Lint/RandOne:
Exclude:
- 'lib/fog/aliyun/requests/compute/list_images.rb'
- 'lib/fog/aliyun/requests/compute/list_route_tables.rb'
- 'lib/fog/aliyun/requests/compute/list_servers.rb'
- 'lib/fog/aliyun/requests/compute/list_vrouters.rb'
-# Offense count: 127
-Lint/UnderscorePrefixedVariableName:
- Enabled: false
-
# Offense count: 1
Lint/UnreachableCode:
Exclude:
- 'lib/fog/aliyun/models/storage/directory.rb'
-# Offense count: 38
+# Offense count: 26
+Lint/UriEscapeUnescape:
+ Enabled: false
+
+# Offense count: 37
Lint/UselessAssignment:
Exclude:
- - 'lib/fog/aliyun.rb'
+ - 'lib/fog/aliyun/requests/compute/create_server.rb'
- 'lib/fog/aliyun/requests/compute/list_disks.rb'
- 'lib/fog/aliyun/requests/compute/list_security_groups.rb'
- 'lib/fog/aliyun/requests/storage/delete_object.rb'
- 'lib/fog/aliyun/requests/storage/get_bucket.rb'
- 'lib/fog/aliyun/requests/storage/get_container.rb'
@@ -60,73 +65,94 @@
- 'lib/fog/aliyun/requests/storage/list_objects.rb'
- 'lib/fog/aliyun/requests/storage/put_bucket.rb'
- 'lib/fog/aliyun/requests/storage/put_object.rb'
- 'lib/fog/aliyun/storage.rb'
-# Offense count: 78
-Metrics/AbcSize:
- Max: 100
-
-# Offense count: 5
+# Offense count: 7
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 154
-# Offense count: 18
-Metrics/CyclomaticComplexity:
- Max: 15
-
-# Offense count: 257
-# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
+# Offense count: 87
+# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 247
-# Offense count: 110
-# Configuration parameters: CountComments.
-Metrics/MethodLength:
- Max: 97
-
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 17
Metrics/PerceivedComplexity:
Max: 19
+# Offense count: 7
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: snake_case, camelCase
+Naming/MethodName:
+ Exclude:
+ - 'lib/fog/aliyun/compute.rb'
+ - 'lib/fog/aliyun/requests/storage/get_bucket.rb'
+
+# Offense count: 48
+# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
+# AllowedNames: io, id, to, by, on, in, at
+Naming/UncommunicativeMethodParamName:
+ Enabled: false
+
+# Offense count: 5
+Performance/Caller:
+ Exclude:
+ - 'lib/fog/aliyun/models/compute/images.rb'
+ - 'lib/fog/aliyun/models/compute/snapshots.rb'
+ - 'lib/fog/aliyun/models/compute/volumes.rb'
+ - 'lib/fog/aliyun/models/compute/vpcs.rb'
+ - 'lib/fog/aliyun/models/compute/vrouters.rb'
+
# Offense count: 1
Style/ClassVars:
Exclude:
- 'lib/fog/bin/aliyun.rb'
-# Offense count: 138
-Style/Documentation:
- Enabled: false
-
# Offense count: 7
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-# SupportedStyles: for, each
+# Configuration parameters: EnforcedStyle.
+# SupportedStyles: each, for
Style/For:
- Enabled: false
+ Exclude:
+ - 'lib/fog/aliyun/models/storage/files.rb'
+ - 'lib/fog/aliyun/requests/compute/list_images.rb'
+ - 'lib/fog/aliyun/requests/compute/list_route_tables.rb'
+ - 'lib/fog/aliyun/requests/compute/list_servers.rb'
+ - 'lib/fog/aliyun/requests/compute/list_vrouters.rb'
+ - 'lib/fog/aliyun/requests/storage/put_object.rb'
# Offense count: 4
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Exclude:
- 'lib/fog/aliyun/models/compute/server.rb'
- 'lib/fog/aliyun/models/compute/vpcs.rb'
- 'lib/fog/aliyun/models/compute/vrouter.rb'
- 'lib/fog/aliyun/models/compute/vswitch.rb'
-# Offense count: 2
+# Offense count: 11
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
+ - 'lib/fog/aliyun/models/compute/security_groups.rb'
+ - 'lib/fog/aliyun/models/compute/snapshots.rb'
+ - 'lib/fog/aliyun/models/compute/volumes.rb'
+ - 'lib/fog/aliyun/models/storage/file.rb'
+ - 'lib/fog/aliyun/requests/compute/delete_security_group.rb'
+ - 'lib/fog/aliyun/requests/compute/delete_server.rb'
- 'lib/fog/aliyun/requests/compute/delete_vpc.rb'
+ - 'lib/fog/aliyun/requests/compute/delete_vpn_connection.rb'
+ - 'lib/fog/aliyun/requests/compute/delete_vpn_customergateway.rb'
- 'lib/fog/aliyun/requests/compute/delete_vswitch.rb'
+ - 'lib/fog/aliyun/requests/compute/list_security_group_rules.rb'
# Offense count: 2
Style/IdenticalConditionalBranches:
Exclude:
- 'lib/fog/aliyun/models/storage/files.rb'
@@ -134,16 +160,18 @@
# Offense count: 1
Style/IfInsideElse:
Exclude:
- 'lib/fog/aliyun/models/compute/security_group_rule.rb'
-# Offense count: 4
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-# SupportedStyles: snake_case, camelCase
-Style/MethodName:
- Enabled: false
+# Offense count: 2
+Style/MultipleComparison:
+ Exclude:
+ - 'lib/fog/aliyun/requests/storage/get_object_http_url.rb'
+ - 'lib/fog/aliyun/requests/storage/get_object_https_url.rb'
-# Offense count: 741
-# Configuration parameters: EnforcedStyle, SupportedStyles.
-# SupportedStyles: snake_case, camelCase
-Style/VariableName:
- Enabled: false
+# Offense count: 1
+# Cop supports --auto-correct.
+# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
+# SupportedStyles: slashes, percent_r, mixed
+Style/RegexpLiteral:
+ Exclude:
+ - 'lib/fog/aliyun/models/storage/files.rb'