# This configuration was generated by # `rubocop --auto-gen-config` # on 2023-06-06 13:47:39 UTC using RuboCop version 1.50.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: 4 # This cop supports safe autocorrection (--autocorrect). Layout/ElseAlignment: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/storage.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterMagicComment: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowAliasSyntax, AllowedMethods. # AllowedMethods: alias_method, public, protected, private Layout/EmptyLinesAroundAttributeAccessor: Exclude: - 'spec/compute_spec.rb' - 'spec/identity_spec.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, no_empty_lines Layout/EmptyLinesAroundBlockBody: Exclude: - 'spec/compute/models/server_spec.rb' - 'spec/core/cache_spec.rb' - 'spec/current_machine_spec.rb' - 'spec/test_helpers/formats_helper_spec.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only Layout/EmptyLinesAroundClassBody: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/core/connection.rb' - 'spec/core/cache_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLinesAroundMethodBody: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment. Layout/ExtraSpacing: Exclude: - 'spec/compute/models/server_spec.rb' - 'spec/credentials_spec.rb' - 'spec/fog_attribute_spec.rb' - 'spec/service_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Layout/HeredocIndentation: Exclude: - 'lib/fog/core/errors.rb' - 'lib/fog/test_helpers/helper.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Width, AllowedPatterns. Layout/IndentationWidth: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/storage.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Layout/SpaceAfterComma: Exclude: - 'lib/fog/core/provider.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: space, no_space Layout/SpaceAroundEqualsInParameterDefault: Exclude: - 'spec/compute/models/server_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - 'spec/compute/models/server_spec.rb' # Offense count: 16 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. # SupportedStyles: space, no_space # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideBlockBraces: Exclude: - 'lib/fog/test_helpers/types_helper.rb' # Offense count: 10 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - 'spec/core/cache_spec.rb' - 'spec/core/stringify_keys_spec.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: final_newline, final_blank_line Layout/TrailingEmptyLines: Exclude: - 'spec/fake_app/fake_service.rb' - 'spec/fake_app/models/collection.rb' - 'spec/fake_app/models/model.rb' - 'spec/fake_app/requests/request.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowInHeredoc. Layout/TrailingWhitespace: Exclude: - 'lib/fog/core/provider.rb' - 'spec/formatador_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperatorPrecedence: Exclude: - 'lib/fog/formatador.rb' # Offense count: 23 # Configuration parameters: AllowedMethods. # AllowedMethods: enums Lint/ConstantDefinitionInBlock: Exclude: - 'spec/compute/models/server_spec.rb' - 'spec/compute_spec.rb' - 'spec/identity_spec.rb' - 'spec/service_spec.rb' - 'spec/storage_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Lint/IdentityComparison: Exclude: - 'lib/fog/core/model.rb' # Offense count: 4 Lint/MissingSuper: Exclude: - 'lib/fog/core/association.rb' - 'lib/fog/core/collection.rb' - 'lib/fog/core/service.rb' - 'lib/tasks/test_task.rb' # Offense count: 2 Lint/RescueException: Exclude: - 'lib/fog/core/scp.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). Lint/SendWithMixinArgument: Exclude: - 'lib/fog/core/service.rb' # Offense count: 1 # Configuration parameters: IgnoreImplicitReferences. Lint/ShadowedArgument: Exclude: - 'lib/fog/test_helpers/minitest/assertions.rb' # Offense count: 3 # Configuration parameters: AllowComments, AllowNil. Lint/SuppressedException: Exclude: - 'lib/fog/compute.rb' - 'lib/fog/dns.rb' - 'lib/fog/storage.rb' # Offense count: 2 Lint/UselessRescue: Exclude: - 'lib/fog/core/scp.rb' # Offense count: 17 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 73 # Offense count: 43 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. # AllowedMethods: refine Metrics/BlockLength: Max: 424 # Offense count: 3 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 189 # Offense count: 8 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 26 # Offense count: 31 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 87 # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ModuleLength: Max: 105 # Offense count: 7 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 26 # Offense count: 7 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Severity, EnforcedStyle, Include. # Include: **/test/**/*, **/*_test.rb, **/spec/**/*, **/*_spec.rb # SupportedStyles: _, any, expect, value Minitest/GlobalExpectations: Exclude: - 'spec/formatador_spec.rb' - 'spec/service_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Naming/BinaryOperatorParameterName: Exclude: - 'lib/fog/core/model.rb' # Offense count: 33 # Configuration parameters: ForbiddenDelimiters. # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) Naming/HeredocDelimiterNaming: Enabled: false # Offense count: 1 # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: Exclude: - 'lib/fog/core/credentials.rb' # Offense count: 2 # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. # AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to Naming/MethodParameterName: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/core/model.rb' # Offense count: 4 # 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/core/attributes.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredName. Naming/RescuedExceptionsVariableName: Exclude: - 'lib/fog/core/scp.rb' - 'lib/fog/core/ssh.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Rake/Desc: Exclude: - 'Rakefile' # Offense count: 1 Security/Eval: Exclude: - 'lib/fog/core/provider.rb' # Offense count: 1 Security/MarshalLoad: Exclude: - 'lib/fog/core/attributes.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). Security/YAMLLoad: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: prefer_alias, prefer_alias_method Style/Alias: Exclude: - 'lib/fog/compute/models/server.rb' - 'lib/fog/core/connection.rb' - 'lib/fog/core/mock.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, conditionals Style/AndOr: Exclude: - 'lib/fog/core/model.rb' - 'lib/fog/formatador.rb' # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object # FunctionalMethods: let, let!, subject, watch # AllowedMethods: lambda, proc, it Style/BlockDelimiters: Exclude: - 'spec/core/cache_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowOnConstant, AllowOnSelfClass. Style/CaseEquality: Exclude: - 'lib/fog/schema/data_validator.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: nested, compact Style/ClassAndModuleChildren: Exclude: - 'lib/fog/test_helpers/minitest/assertions.rb' - 'lib/fog/test_helpers/minitest/expectations.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: is_a?, kind_of? Style/ClassCheck: Exclude: - 'lib/fog/core/association.rb' # Offense count: 1 Style/ClassVars: Exclude: - 'lib/fog/core/connection.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions. # SupportedStyles: assign_to_condition, assign_inside_condition Style/ConditionalAssignment: Exclude: - 'lib/fog/core/service.rb' - 'lib/fog/test_helpers/formats_helper.rb' # Offense count: 26 Style/DocumentDynamicEvalDefinition: Exclude: - 'lib/fog/core/associations/many_identities.rb' - 'lib/fog/core/associations/many_models.rb' - 'lib/fog/core/associations/one_identity.rb' - 'lib/fog/core/associations/one_model.rb' - 'lib/fog/core/attributes/array.rb' - 'lib/fog/core/attributes/boolean.rb' - 'lib/fog/core/attributes/default.rb' - 'lib/fog/core/attributes/float.rb' - 'lib/fog/core/attributes/integer.rb' - 'lib/fog/core/attributes/string.rb' - 'lib/fog/core/attributes/time.rb' - 'lib/fog/core/attributes/timestamp.rb' - 'lib/fog/core/collection.rb' - 'lib/fog/core/deprecation.rb' - 'lib/fog/core/service.rb' # Offense count: 52 # Configuration parameters: AllowedConstants. Style/Documentation: Enabled: false # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). Style/EachWithObject: Exclude: - 'lib/fog/core/attributes.rb' - 'lib/fog/core/model.rb' - 'lib/fog/core/stringify_keys.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: compact, expanded Style/EmptyMethod: Exclude: - 'spec/fake_app/fake_service.rb' - 'spec/fake_app/requests/request.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/Encoding: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 5 # This cop supports unsafe autocorrection (--autocorrect-all). Style/EnvHome: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/core/credentials.rb' - 'spec/credentials_spec.rb' # Offense count: 26 # This cop supports safe autocorrection (--autocorrect). Style/EvalWithLocation: Exclude: - 'lib/fog/core/associations/many_identities.rb' - 'lib/fog/core/associations/many_models.rb' - 'lib/fog/core/associations/one_identity.rb' - 'lib/fog/core/associations/one_model.rb' - 'lib/fog/core/attributes/array.rb' - 'lib/fog/core/attributes/boolean.rb' - 'lib/fog/core/attributes/default.rb' - 'lib/fog/core/attributes/float.rb' - 'lib/fog/core/attributes/integer.rb' - 'lib/fog/core/attributes/string.rb' - 'lib/fog/core/attributes/time.rb' - 'lib/fog/core/attributes/timestamp.rb' - 'lib/fog/core/collection.rb' - 'lib/fog/core/deprecation.rb' - 'lib/fog/core/service.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/ExplicitBlockArgument: Exclude: - 'lib/fog/core/collection.rb' # Offense count: 8 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowedVars. Style/FetchEnvVar: Exclude: - 'Rakefile' - 'lib/fog/core/credentials.rb' - 'spec/credentials_spec.rb' # Offense count: 5 # This cop supports safe autocorrection (--autocorrect). Style/FileWrite: Exclude: - 'lib/fog/core/cache.rb' - 'spec/core/cache_spec.rb' # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns. # SupportedStyles: annotated, template, unannotated Style/FormatStringToken: Exclude: - 'lib/fog/core/uuid.rb' # Offense count: 4 # This cop supports unsafe autocorrection (--autocorrect-all). Style/GlobalStdStream: Exclude: - 'lib/fog/core/logger.rb' # Offense count: 8 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. Style/GuardClause: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/core/connection.rb' - 'lib/fog/core/model.rb' - 'lib/fog/core/service.rb' - 'lib/fog/core/ssh.rb' - 'lib/fog/storage.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowSplatArgument. Style/HashConversion: Exclude: - 'lib/fog/core/whitelist_keys.rb' # Offense count: 18 # This cop supports safe autocorrection (--autocorrect). Style/IfUnlessModifier: Exclude: - 'lib/fog/core/cache.rb' - 'lib/fog/core/collection.rb' - 'lib/fog/core/connection.rb' - 'lib/fog/core/scp.rb' - 'lib/fog/core/service.rb' - 'lib/fog/core/ssh.rb' - 'lib/fog/core/wait_for.rb' - 'lib/fog/schema/data_validator.rb' - 'lib/fog/storage.rb' - 'lib/fog/test_helpers/collection_helper.rb' - 'lib/fog/test_helpers/compute/flavors_helper.rb' # Offense count: 11 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: line_count_dependent, lambda, literal Style/Lambda: Exclude: - 'lib/fog/core/wait_for_defaults.rb' - 'spec/compute/models/server_spec.rb' - 'spec/service_spec.rb' - 'spec/wait_for_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: both, prefix, postfix Style/NegatedIf: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/NegatedIfElseCondition: Exclude: - 'lib/fog/core/utils.rb' # Offense count: 7 # Configuration parameters: AllowedMethods. # AllowedMethods: respond_to_missing? Style/OptionalBooleanParameter: Exclude: - 'lib/fog/core/connection.rb' - 'lib/fog/test_helpers/collection_helper.rb' - 'lib/fog/test_helpers/compute/flavors_helper.rb' - 'lib/fog/test_helpers/compute/server_helper.rb' - 'lib/fog/test_helpers/compute/servers_helper.rb' - 'lib/fog/test_helpers/formats_helper.rb' - 'lib/fog/test_helpers/model_helper.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/OrAssignment: Exclude: - 'lib/fog/schema/data_validator.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/ParallelAssignment: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions. Style/ParenthesesAroundCondition: Exclude: - 'lib/fog/core/model.rb' # Offense count: 14 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredDelimiters. Style/PercentLiteralDelimiters: Exclude: - 'lib/fog/compute/models/server.rb' - 'lib/fog/core/collection.rb' - 'lib/fog/core/time.rb' - 'lib/fog/test_helpers/collection_helper.rb' - 'spec/core/whitelist_keys_spec.rb' - 'spec/fog_attribute_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/PerlBackrefs: Exclude: - 'lib/fog/core/logger.rb' # Offense count: 17 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, AllowedCompactTypes. # SupportedStyles: compact, exploded Style/RaiseArgs: Exclude: - 'lib/fog/core/cache.rb' - 'spec/compute/models/server_spec.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). Style/RedundantBegin: Exclude: - 'lib/fog/core/credentials.rb' - 'lib/fog/core/ssh.rb' # Offense count: 11 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: AllowComments. Style/RedundantInitialize: Exclude: - 'spec/compute_spec.rb' - 'spec/fake_app/fake_service.rb' - 'spec/identity_spec.rb' - 'spec/storage_spec.rb' # Offense count: 5 # This cop supports safe autocorrection (--autocorrect). Style/RedundantSelf: Exclude: - 'lib/fog/core/attributes.rb' - 'lib/fog/core/cache.rb' - 'lib/fog/core/model.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed Style/RegexpLiteral: Exclude: - 'lib/fog/core/connection.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/RescueModifier: Exclude: - 'lib/fog/core/model.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle. # SupportedStyles: implicit, explicit Style/RescueStandardError: Exclude: - 'lib/fog/compute.rb' - 'lib/fog/core/credentials.rb' - 'lib/fog/dns.rb' - 'lib/fog/storage.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowAsExpressionSeparator. Style/Semicolon: Exclude: - 'spec/wait_for_spec.rb' # Offense count: 5 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowIfMethodIsEmpty. Style/SingleLineMethods: Exclude: - 'spec/connection_spec.rb' - 'spec/service_spec.rb' # Offense count: 4 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: MinSize. # SupportedStyles: percent, brackets Style/SymbolArray: EnforcedStyle: brackets # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments. # AllowedMethods: define_method Style/SymbolProc: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods. # AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym Style/TrivialAccessors: Exclude: - 'lib/fog/core/cache.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/UnlessElse: Exclude: - 'lib/fog/core/model.rb' # Offense count: 1 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only Style/YodaCondition: Exclude: - 'spec/wait_for_spec.rb' # Offense count: 29 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. # URISchemes: http, https Layout/LineLength: Max: 199