.rubocop_todo.yml in fog-vsphere-3.5.2 vs .rubocop_todo.yml in fog-vsphere-3.5.3

- old
+ new

@@ -1,106 +1,342 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2018-11-15 11:16:00 -0500 using RuboCop version 0.49.1. +# on 2022-11-18 13:06:52 UTC using RuboCop version 1.39.0. # 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: 4 -# Configuration parameters: AllowSafeAssignment. -Lint/AssignmentInCondition: +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Include. +# Include: **/*.gemspec +Gemspec/DeprecatedAttributeAssignment: Exclude: - - 'lib/fog/vsphere/requests/compute/create_vm.rb' - - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + - 'fog-vsphere.gemspec' +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include. +# Include: **/*.gemspec +Gemspec/OrderedDependencies: + Exclude: + - 'fog-vsphere.gemspec' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Include. +# Include: **/*.gemspec +Gemspec/RequireMFA: + Exclude: + - 'fog-vsphere.gemspec' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleAlignWith, Severity. +# SupportedStylesAlignWith: start_of_line, begin +Layout/BeginEndAlignment: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb' + +# Offense count: 105 +# This cop supports safe autocorrection (--autocorrect). +Layout/EmptyLineAfterGuardClause: + Enabled: false + +# Offense count: 22 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines. +Layout/EmptyLineBetweenDefs: + Enabled: false + # Offense count: 7 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect. +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleAlignWith, Severity. # SupportedStylesAlignWith: keyword, variable, start_of_line -Lint/EndAlignment: +Layout/EndAlignment: Exclude: - 'lib/fog/vsphere/models/compute/customfields.rb' - 'lib/fog/vsphere/models/compute/customvalues.rb' - 'lib/fog/vsphere/models/compute/tickets.rb' - 'lib/fog/vsphere/models/compute/volumes.rb' - 'lib/fog/vsphere/requests/compute/create_vm.rb' - 'lib/fog/vsphere/requests/compute/host_start_maintenance.rb' +# Offense count: 137 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. +# SupportedHashRocketStyles: key, separator, table +# SupportedColonStyles: key, separator, table +# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit +Layout/HashAlignment: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/create_folder.rb' + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + - 'lib/fog/vsphere/requests/compute/vm_power_off.rb' + - 'lib/fog/vsphere/requests/compute/vm_suspend.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Layout/LeadingEmptyLines: + Exclude: + - 'fog-vsphere.gemspec' + - 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +Layout/RescueEnsureAlignment: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. +# SupportedStylesForExponentOperator: space, no_space +Layout/SpaceAroundOperators: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 2 +# Configuration parameters: AllowSafeAssignment. +Lint/AssignmentInCondition: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 1 +# Configuration parameters: AllowedMethods. +# AllowedMethods: enums +Lint/ConstantDefinitionInBlock: + Exclude: + - 'tests/compute_tests.rb' + +# Offense count: 1 +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. +Lint/DuplicateBranch: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + +# Offense count: 1 +# Configuration parameters: AllowComments. +Lint/EmptyClass: + Exclude: + - 'tests/class_from_string_tests.rb' + +# Offense count: 7 +# Configuration parameters: MaximumRangeSize. +Lint/MissingCopEnableDirective: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb' + - 'tests/compute_tests.rb' + +# Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantCopDisableDirective: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantCopEnableDirective: + Exclude: + - 'lib/fog/vsphere/requests/compute/list_vm_interfaces.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +Lint/SendWithMixinArgument: + Exclude: + - 'tests/helper.rb' + - 'tests/test_helper.rb' + # Offense count: 3 Lint/ShadowingOuterLocalVariable: Exclude: - 'lib/fog/vsphere/requests/compute/create_vm.rb' - 'lib/fog/vsphere/requests/compute/destroy_rule.rb' - 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb' -# Offense count: 9 +# Offense count: 8 Lint/UselessAssignment: Exclude: - 'lib/fog/vsphere/compute.rb' - 'lib/fog/vsphere/models/compute/interfaces.rb' - 'lib/fog/vsphere/models/compute/volumes.rb' - 'lib/fog/vsphere/requests/compute/create_rule.rb' - 'lib/fog/vsphere/requests/compute/create_vm.rb' - 'lib/fog/vsphere/requests/compute/get_interface_type.rb' - - 'lib/fog/vsphere/requests/compute/vm_clone.rb' - 'lib/fog/vsphere/requests/compute/vm_migrate.rb' - 'tests/requests/compute/vm_clone_tests.rb' -# Offense count: 64 -Metrics/AbcSize: - Max: 635 - # Offense count: 12 -# Configuration parameters: CountComments, ExcludedMethods. +# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods. +# AllowedMethods: refine Metrics/BlockLength: Max: 264 # Offense count: 21 # Configuration parameters: CountBlocks. Metrics/BlockNesting: Max: 5 # Offense count: 6 -# Configuration parameters: CountComments. +# Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 284 -# Offense count: 19 -Metrics/CyclomaticComplexity: - Max: 151 +# Offense count: 1 +# Configuration parameters: CountKeywordArgs, MaxOptionalParameters. +Metrics/ParameterLists: + Max: 6 -# Offense count: 819 -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. -# URISchemes: http, https -Metrics/LineLength: - Max: 317 +# Offense count: 2 +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. +Naming/BlockParameterName: + Exclude: + - 'lib/fog/vsphere/requests/compute/list_datacenters.rb' + - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' -# Offense count: 80 -# Configuration parameters: CountComments. -Metrics/MethodLength: - Max: 358 +# Offense count: 1 +# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. +# CheckDefinitionPathHierarchyRoots: lib, spec, test, src +# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS +Naming/FileName: + Exclude: + - 'lib/fog-vsphere.rb' # Offense count: 1 -# Configuration parameters: CountComments. -Metrics/ModuleLength: - Max: 109 +# Configuration parameters: EnforcedStyleForLeadingUnderscores. +# SupportedStylesForLeadingUnderscores: disallowed, required, optional +Naming/MemoizedInstanceVariableName: + Exclude: + - 'tests/test_helper.rb' +# Offense count: 11 +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. +# AllowedNames: as, at, by, db, id, if, in, io, ip, of, on, os, pp, to +Naming/MethodParameterName: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/models/compute/volume.rb' + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb' + - 'lib/fog/vsphere/requests/compute/list_datacenters.rb' + - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' + - 'lib/fog/vsphere/requests/compute/vm_suspend.rb' + - 'tests/compute_tests.rb' + +# Offense count: 1 +# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. +# NamePrefix: is_, has_, have_ +# ForbiddenPrefixes: is_, has_, have_ +# AllowedMethods: is_a? +# MethodDefinitionMacros: define_method, define_singleton_method +Naming/PredicateName: + Exclude: + - 'spec/**/*' + - 'lib/fog/vsphere/compute.rb' + +# Offense count: 41 +# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns. +# SupportedStyles: snake_case, camelCase +Naming/VariableName: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/list_datacenters.rb' + - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' + - 'lib/fog/vsphere/requests/compute/list_server_types.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 3 +# Configuration parameters: MinSize. +Performance/CollectionLiteralInLoop: + Exclude: + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + # Offense count: 2 -# Configuration parameters: CountKeywordArgs. -Metrics/ParameterLists: - Max: 6 +# This cop supports unsafe autocorrection (--autocorrect-all). +Performance/Detect: + Exclude: + - 'lib/fog/vsphere/requests/compute/get_server_type.rb' + - 'lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb' -# Offense count: 20 -Metrics/PerceivedComplexity: - Max: 159 +# Offense count: 10 +# This cop supports unsafe autocorrection (--autocorrect-all). +Performance/MapCompact: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb' + - 'lib/fog/vsphere/requests/compute/list_clusters.rb' + - 'lib/fog/vsphere/requests/compute/list_compute_resources.rb' + - 'lib/fog/vsphere/requests/compute/list_datastores.rb' + - 'lib/fog/vsphere/requests/compute/list_folders.rb' + - 'lib/fog/vsphere/requests/compute/list_interface_types.rb' + - 'lib/fog/vsphere/requests/compute/list_networks.rb' + - 'lib/fog/vsphere/requests/compute/list_server_types.rb' + - 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb' -Naming/FileName: +# Offense count: 4 +Performance/MethodObjectAsBlock: Exclude: - - 'lib/fog-vsphere.rb' + - 'lib/fog/vsphere/requests/compute/list_folders.rb' + - 'lib/fog/vsphere/requests/compute/list_templates.rb' + - 'lib/fog/vsphere/requests/compute/list_virtual_machines.rb' +# Offense count: 8 +# This cop supports unsafe autocorrection (--autocorrect-all). +Performance/RedundantEqualityComparisonBlock: + Exclude: + - 'tests/requests/compute/list_child_snapshots_tests.rb' + - 'tests/requests/compute/list_datastores_tests.rb' + - 'tests/requests/compute/list_hosts_tests.rb' + - 'tests/requests/compute/list_networks_tests.rb' + - 'tests/requests/compute/list_vm_cdroms_tests.rb' + - 'tests/requests/compute/list_vm_snapshots_tests.rb' + +# Offense count: 7 +# This cop supports safe autocorrection (--autocorrect). +Performance/StringIdentifierArgument: + Exclude: + - 'tests/models/compute/server_tests.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +Rake/Desc: + Exclude: + - 'Rakefile' + +# Offense count: 12 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: separated, grouped +Style/AccessorGrouping: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/models/compute/interfacetypes.rb' + - 'lib/fog/vsphere/models/compute/servers.rb' + # Offense count: 10 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowOnConstant, AllowOnSelfClass. Style/CaseEquality: Exclude: - 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb' - 'lib/fog/vsphere/requests/compute/revert_to_snapshot.rb' - 'tests/requests/compute/list_child_snapshots_tests.rb' @@ -108,106 +344,271 @@ - 'tests/requests/compute/list_hosts_tests.rb' - 'tests/requests/compute/list_networks_tests.rb' - 'tests/requests/compute/list_vm_cdroms_tests.rb' - 'tests/requests/compute/list_vm_snapshots_tests.rb' +# Offense count: 8 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/CaseLikeIf: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_group.rb' + - 'lib/fog/vsphere/requests/compute/create_rule.rb' + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/list_clusters.rb' + - 'lib/fog/vsphere/requests/compute/list_datacenters.rb' + - 'lib/fog/vsphere/requests/compute/list_networks.rb' + - 'lib/fog/vsphere/requests/compute/list_rules.rb' + +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# AllowedMethods: ==, equal?, eql? +Style/ClassEqualityComparison: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_folder.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + # Offense count: 1 Style/ClassVars: Exclude: - 'lib/fog/bin/vsphere.rb' -# Offense count: 1 -Style/DoubleNegation: +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/CollectionCompact: Exclude: - - 'tests/helpers/succeeds_helper.rb' + - 'lib/fog/vsphere/requests/compute/list_folders.rb' + - 'lib/fog/vsphere/requests/compute/list_virtual_machines.rb' -# Offense count: 14 -# Configuration parameters: MinBodyLength. -Style/GuardClause: +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Style/ExpandPathArguments: Exclude: + - 'fog-vsphere.gemspec' + - 'lib/fog/vsphere.rb' + - 'tests/helper.rb' + +# Offense count: 185 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: always, always_true, never +Style/FrozenStringLiteralComment: + Enabled: false + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowSplatArgument. +Style/HashConversion: + Exclude: - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb' + +# Offense count: 2 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/HashTransformKeys: + Exclude: + - 'lib/fog/vsphere/models/compute/server.rb' + +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/HashTransformValues: + Exclude: + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowIfModifier. +Style/IfInsideElse: + Exclude: + - 'lib/fog/vsphere/models/compute/cdrom.rb' + - 'lib/fog/vsphere/models/compute/volume.rb' + +# Offense count: 27 +# This cop supports safe autocorrection (--autocorrect). +Style/IfUnlessModifier: + Exclude: + - 'lib/fog/vsphere/models/compute/cdrom.rb' + - 'lib/fog/vsphere/models/compute/interface.rb' - 'lib/fog/vsphere/models/compute/interfaces.rb' - 'lib/fog/vsphere/models/compute/rule.rb' - - 'lib/fog/vsphere/models/compute/server.rb' + - 'lib/fog/vsphere/models/compute/volume.rb' - 'lib/fog/vsphere/requests/compute/create_group.rb' - 'lib/fog/vsphere/requests/compute/create_rule.rb' - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/folder_destroy.rb' + - 'lib/fog/vsphere/requests/compute/list_groups.rb' - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' - 'lib/fog/vsphere/requests/compute/list_server_types.rb' - - 'lib/fog/vsphere/requests/compute/vm_relocate.rb' + - 'lib/fog/vsphere/requests/compute/revert_to_snapshot.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + - 'lib/fog/vsphere/requests/compute/vm_config_vnc.rb' -# Offense count: 2 -Style/IfInsideElse: +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/MapToHash: Exclude: - - 'lib/fog/vsphere/models/compute/cdrom.rb' - - 'lib/fog/vsphere/models/compute/volume.rb' + - 'lib/fog/vsphere/compute.rb' # Offense count: 2 Style/MultilineBlockChain: Exclude: - 'lib/fog/vsphere/requests/compute/vm_clone.rb' # Offense count: 4 +# This cop supports safe autocorrection (--autocorrect). Style/MultilineTernaryOperator: Exclude: - 'lib/fog/vsphere/models/compute/cluster.rb' - 'lib/fog/vsphere/requests/compute/list_child_snapshots.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles. +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns. +Style/NumericLiterals: + MinDigits: 6 + +# Offense count: 4 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Exclude: - 'spec/**/*' - 'lib/fog/vsphere/requests/compute/list_compute_resources.rb' + - 'lib/fog/vsphere/requests/compute/modify_vm_interface.rb' + - 'tests/models/compute/rules_tests.rb' +# Offense count: 3 +Style/OpenStructUse: + Exclude: + - 'tests/requests/compute/get_network_tests.rb' + +# Offense count: 7 +# Configuration parameters: AllowedMethods. +# AllowedMethods: respond_to_missing? +Style/OptionalBooleanParameter: + Exclude: + - 'lib/fog/vsphere/models/compute/snapshot.rb' + - 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb' + - 'lib/fog/vsphere/requests/compute/host_shutdown.rb' + - 'lib/fog/vsphere/requests/compute/host_start_maintenance.rb' + - 'lib/fog/vsphere/requests/compute/vm_remove_snapshot.rb' + # Offense count: 1 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'Rakefile' # Offense count: 1 -# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist. -# NamePrefix: is_, has_, have_ -# NamePrefixBlacklist: is_, has_, have_ -# NameWhitelist: is_a? -Style/PredicateName: +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantAssignment: Exclude: - - 'spec/**/*' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 6 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantBegin: + Exclude: - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' +# Offense count: 3 +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantCondition: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/get_virtual_machine.rb' + # Offense count: 2 -# Cop supports --auto-correct. +# This cop supports safe autocorrection (--autocorrect). +Style/RedundantRegexpEscape: + Exclude: + - 'fog-vsphere.gemspec' + - 'lib/fog/vsphere/requests/compute/list_clusters.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowMultipleReturnValues. +Style/RedundantReturn: + Exclude: + - 'lib/fog/vsphere/requests/compute/create_group.rb' + - 'lib/fog/vsphere/requests/compute/create_rule.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). Style/RedundantSelf: Exclude: - 'lib/fog/vsphere/models/compute/volume.rb' +# Offense count: 1 +# This cop supports unsafe autocorrection (--autocorrect-all). +Style/RedundantSort: + Exclude: + - 'lib/fog/vsphere/models/compute/interface.rb' + # Offense count: 3 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes. +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'lib/fog/vsphere/requests/compute/create_folder.rb' - 'lib/fog/vsphere/requests/compute/get_folder.rb' - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' -# Offense count: 1 -# Cop supports --auto-correct. +# Offense count: 14 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle. +# SupportedStyles: implicit, explicit +Style/RescueStandardError: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/list_hosts.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_cdroms.rb' + - 'lib/fog/vsphere/requests/compute/list_vm_volumes.rb' + +# Offense count: 9 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. +# AllowedMethods: present?, blank?, presence, try, try! +Style/SafeNavigation: + Exclude: + - 'lib/fog/vsphere/models/compute/server.rb' + - 'lib/fog/vsphere/requests/compute/create_vm.rb' + - 'lib/fog/vsphere/requests/compute/list_server_types.rb' + - 'lib/fog/vsphere/requests/compute/modify_vm_interface.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'tests/models/compute/rules_tests.rb' -# Offense count: 14 -# Configuration parameters: EnforcedStyle, SupportedStyles. -# SupportedStyles: snake_case, camelCase -Style/VariableName: +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowModifier. +Style/SoleNestedConditional: Exclude: - - 'lib/fog/vsphere/requests/compute/create_vm.rb' - - 'lib/fog/vsphere/requests/compute/list_datacenters.rb' - - 'lib/fog/vsphere/requests/compute/list_resource_pools.rb' - - 'lib/fog/vsphere/requests/compute/list_server_types.rb' - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 5 +# This cop supports unsafe autocorrection (--autocorrect-all). +# Configuration parameters: Mode. +Style/StringConcatenation: + Exclude: + - 'lib/fog/vsphere/compute.rb' + - 'lib/fog/vsphere/requests/compute/get_folder.rb' + - 'lib/fog/vsphere/requests/compute/upload_iso.rb' + - 'lib/fog/vsphere/requests/compute/vm_clone.rb' + +# Offense count: 174 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns. +# URISchemes: http, https +Layout/LineLength: + Max: 317