# This configuration was generated by # `rubocop --auto-gen-config` # on 2020-11-12 16:45:32 UTC using RuboCop version 1.3.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: 1 # Configuration parameters: Include. # Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'restful_resource.gemspec' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: Width, IgnoredPatterns. Layout/IndentationWidth: Exclude: - 'lib/restful_resource/associations.rb' # Offense count: 2 # Cop supports --auto-correct. Layout/RescueEnsureAlignment: Exclude: - 'lib/restful_resource/associations.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: space # Offense count: 6 # Configuration parameters: AllowedMethods. Lint/ConstantDefinitionInBlock: Exclude: - 'spec/restful_resource/base_authorization_spec.rb' - 'spec/restful_resource/http_client_configuration_spec.rb' # Offense count: 1 Lint/DuplicateBranch: Exclude: - 'lib/restful_resource/http_client.rb' # Offense count: 1 # Cop supports --auto-correct. Lint/Loop: Exclude: - 'lib/restful_resource/base.rb' # Offense count: 2 Lint/MissingSuper: Exclude: - 'lib/restful_resource/http_client.rb' - 'lib/restful_resource/parameter_missing_error.rb' # Offense count: 2 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Exclude: - 'lib/restful_resource/redirections.rb' # Offense count: 4 Lint/UselessAssignment: Exclude: - 'lib/restful_resource/redirections.rb' - 'spec/restful_resource/base_spec.rb' - 'spec/restful_resource/http_client_spec.rb' - 'spec/restful_resource/redirections_spec.rb' # Offense count: 8 # Configuration parameters: IgnoredMethods. Metrics/AbcSize: Max: 102 # Offense count: 2 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 195 # Offense count: 5 # Configuration parameters: IgnoredMethods. Metrics/CyclomaticComplexity: Max: 13 # Offense count: 10 # Configuration parameters: CountComments, CountAsOne, ExcludedMethods. Metrics/MethodLength: Max: 56 # Offense count: 9 # Configuration parameters: CountKeywordArgs. Metrics/ParameterLists: Max: 11 # Offense count: 2 # Configuration parameters: IgnoredMethods. Metrics/PerceivedComplexity: Max: 11 # Offense count: 2 # 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/restful_resource/associations.rb' # Offense count: 1 RSpec/DescribeMethod: Exclude: - 'spec/restful_resource/base_authorization_spec.rb' # Offense count: 2 # Configuration parameters: Max. RSpec/ExampleLength: Exclude: - 'spec/restful_resource/base_spec.rb' - 'spec/restful_resource/open_object_spec.rb' # Offense count: 71 # Configuration parameters: AssignmentOnly. RSpec/InstanceVariable: Exclude: - 'spec/restful_resource/associations_spec.rb' - 'spec/restful_resource/base_spec.rb' - 'spec/restful_resource/http_client_configuration_spec.rb' - 'spec/restful_resource/rails_validations_spec.rb' - 'spec/restful_resource/redirections_spec.rb' # Offense count: 6 RSpec/LeakyConstantDeclaration: Exclude: - 'spec/restful_resource/base_authorization_spec.rb' - 'spec/restful_resource/http_client_configuration_spec.rb' # Offense count: 17 # Configuration parameters: EnforcedStyle. # SupportedStyles: have_received, receive RSpec/MessageSpies: Exclude: - 'spec/restful_resource/base_spec.rb' - 'spec/restful_resource/redirections_spec.rb' - 'spec/spec_helper.rb' # Offense count: 24 RSpec/MultipleExpectations: Max: 7 # Offense count: 1 # Configuration parameters: AllowSubject. RSpec/MultipleMemoizedHelpers: Max: 10 # Offense count: 13 # Configuration parameters: IgnoreSharedExamples. RSpec/NamedSubject: Exclude: - 'spec/restful_resource/rails_validations_spec.rb' - 'spec/restful_resource/redirections_spec.rb' # Offense count: 12 RSpec/NestedGroups: Max: 5 # Offense count: 4 RSpec/RepeatedDescription: Exclude: - 'spec/restful_resource/base_spec.rb' # Offense count: 10 RSpec/StubbedMock: Exclude: - 'spec/spec_helper.rb' # Offense count: 4 # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. RSpec/VerifiedDoubles: Exclude: - 'spec/restful_resource/base_spec.rb' - 'spec/restful_resource/rails_validations_spec.rb' - 'spec/restful_resource/redirections_spec.rb' # Offense count: 1 # Configuration parameters: AllowedChars. Style/AsciiComments: Exclude: - 'lib/restful_resource/instrumentation.rb' # Offense count: 3 # Cop supports --auto-correct. # Configuration parameters: Keywords. # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE Style/CommentAnnotation: Exclude: - 'spec/restful_resource/http_client_spec.rb' # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: braces, no_braces Style/HashAsLastArrayItem: Exclude: - 'lib/restful_resource/base.rb' # Offense count: 1 Style/MissingRespondToMissing: Exclude: - 'lib/restful_resource/open_object.rb' # Offense count: 2 # Configuration parameters: AllowedMethods. # AllowedMethods: respond_to_missing? Style/OptionalBooleanParameter: Exclude: - 'lib/restful_resource/open_object.rb' # Offense count: 1 # Cop supports --auto-correct. Style/RedundantFileExtensionInRequire: Exclude: - 'lib/restful_resource.rb' # Offense count: 2 # Cop supports --auto-correct. Style/StringConcatenation: Exclude: - 'lib/restful_resource/authorization.rb' - 'lib/restful_resource/base.rb' # Offense count: 1 # Cop supports --auto-correct. # 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/restful_resource/base.rb' # Offense count: 29 # Cop supports --auto-correct. # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Layout/LineLength: Max: 201