.rubocop_todo.yml
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 180`
# on 2024-07-10 23:53:15 UTC using RuboCop version 1.65.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
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/DeprecatedAttributeAssignment:
Exclude:
- 'apipie-rails.gemspec'
# Offense count: 12
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
# SupportedStyles: Gemfile, gems.rb, gemspec
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
Gemspec/DevelopmentDependencies:
Exclude:
- 'apipie-rails.gemspec'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
Exclude:
- 'apipie-rails.gemspec'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequireMFA:
Exclude:
- 'apipie-rails.gemspec'
- 'spec/dummy/components/test_engine/test_engine.gemspec'
# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'spec/dummy/components/test_engine/test_engine.gemspec'
# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RubyVersionGlobalsUsage:
Exclude:
- 'apipie-rails.gemspec'
# Offense count: 24
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/method_description/api.rb'
- 'lib/apipie/resource_description.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'spec/lib/apipie/param_group_spec.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Layout/CaseIndentation:
Exclude:
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/helpers.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment.
Layout/CommentIndentation:
Exclude:
- 'spec/dummy/app/controllers/pets_controller.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: start_of_line, def
Layout/DefEndAlignment:
Exclude:
- 'lib/apipie/generator/swagger/param_description/name.rb'
# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: leading, trailing
Layout/DotPosition:
Exclude:
- 'lib/apipie/generator/swagger/param_description/builder.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/generator/swagger/param_description/type.rb'
- 'lib/apipie/method_description.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
Layout/ElseAlignment:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
# Offense count: 59
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLineAfterGuardClause:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/helpers.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/spec_helper.rb'
# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
Layout/EmptyLineBetweenDefs:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
# Offense count: 54
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLines:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/included_param_group_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: around, only_before
Layout/EmptyLinesAroundAccessModifier:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
Exclude:
- 'lib/apipie/configuration.rb'
# Offense count: 91
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, no_empty_lines
Layout/EmptyLinesAroundBlockBody:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
- 'spec/controllers/concerns_controller_spec.rb'
- 'spec/controllers/extended_controller_spec.rb'
- 'spec/controllers/included_param_group_controller_spec.rb'
- 'spec/controllers/pets_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/config/routes.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/apipie/file_handler_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/apipie/param_group_spec.rb'
- 'spec/lib/apipie/validator_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
- 'spec/spec_helper.rb'
- 'spec/test_engine/memes_controller_spec.rb'
# Offense count: 43
# 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/apipie/application.rb'
- 'lib/apipie/error_description.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/markup.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/tag_list_description.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/app/controllers/application_controller.rb'
- 'spec/dummy/app/controllers/concerns_controller.rb'
- 'spec/dummy/app/controllers/extended_controller.rb'
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
- 'spec/dummy/config/initializers/apipie.rb'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Layout/EmptyLinesAroundMethodBody:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/static_dispatcher.rb'
# Offense count: 29
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
Exclude:
- 'app/helpers/apipie_helper.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/error_description.rb'
- 'lib/apipie/errors.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/markup.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/apipie/tag_list_description.rb'
- 'lib/apipie/validator.rb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
# Offense count: 28
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/config.ru'
- 'spec/dummy/config/environments/test.rb'
- 'spec/dummy/script/rails'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 38
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/in_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
# Offense count: 122
# 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/apipie/dsl_definition.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Layout/HeredocIndentation:
Exclude:
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: normal, indented_internal_methods
Layout/IndentationConsistency:
Exclude:
- 'lib/apipie/generator/swagger/param_description/name.rb'
- 'spec/lib/apipie/param_group_spec.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/param_description/name.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 15
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineArrayBraceLayout:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineHashBraceLayout:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: symmetrical, new_line, same_line
Layout/MultilineMethodCallBraceLayout:
Exclude:
- 'lib/tasks/apipie.rake'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented
Layout/MultilineOperationIndentation:
Exclude:
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/param_description.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterColon:
Exclude:
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
# Offense count: 41
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterComma:
Exclude:
- 'apipie-rails.gemspec'
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/helpers.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceAfterNot:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/writer.rb'
# Offense count: 142
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
# SupportedStylesForExponentOperator: space, no_space
# SupportedStylesForRationalLiterals: space, no_space
Layout/SpaceAroundOperators:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/config/environments/test.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 29
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceBeforeBlockBraces:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/routes_formatter.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Layout/SpaceBeforeComma:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 60
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideBlockBraces:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/routes_formatter.rb'
- 'lib/apipie/validator.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/spec_helper.rb'
- 'spec/support/rake.rb'
# Offense count: 206
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
Exclude:
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/see_description.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
- 'spec/dummy/components/test_engine/app/controllers/test_engine/memes_controller.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, compact, no_space
Layout/SpaceInsideParens:
Exclude:
- 'lib/apipie/middleware/checksum_in_headers.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
Exclude:
- 'Rakefile'
- 'lib/apipie/method_description/apis_service.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'spec/controllers/concerns_controller_spec.rb'
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
- 'spec/dummy/config/boot.rb'
- 'spec/dummy/config/environments/development.rb'
- 'spec/dummy/config/initializers/secret_token.rb'
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
- 'spec/lib/apipie/param_group_spec.rb'
# Offense count: 14
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Layout/TrailingWhitespace:
Exclude:
- 'spec/dummy/app/controllers/application_controller.rb'
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
# Offense count: 10
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
# Offense count: 2
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
Exclude:
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 9
Lint/DuplicateMethods:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/method_description.rb'
# Offense count: 8
# Configuration parameters: AllowComments, AllowEmptyLambdas.
Lint/EmptyBlock:
Exclude:
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/description_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
- 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/IdentityComparison:
Exclude:
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 11
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/NonAtomicFileOperation:
Exclude:
- 'lib/tasks/apipie.rake'
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 1
Lint/NonLocalExitFromIterator:
Exclude:
- 'lib/apipie/generator/swagger/param_description/composite.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Lint/ParenthesesAsGroupedExpression:
Exclude:
- 'lib/apipie/param_description.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Lint/RedundantStringCoercion:
Exclude:
- 'lib/apipie/routes_formatter.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Lint/SendWithMixinArgument:
Exclude:
- 'lib/apipie/extractor.rb'
- 'lib/apipie/routing.rb'
- 'spec/dummy/config/application.rb'
# Offense count: 2
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/swagger_generator.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
Lint/ToJSON:
Exclude:
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
# Offense count: 2
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
# Offense count: 22
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/spec_helper.rb'
# Offense count: 24
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/support/custom_bool_validator.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessAssignment:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/method_description.rb'
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
Lint/UselessMethodDefinition:
Exclude:
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 60
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 96
# Offense count: 1
# Configuration parameters: CountBlocks, CountModifierForms.
Metrics/BlockNesting:
Max: 4
# Offense count: 25
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 24
# Offense count: 79
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 58
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 119
# Offense count: 5
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
MaxOptionalParameters: 5
Max: 6
# Offense count: 21
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 25
# Offense count: 5
Naming/AccessorMethodName:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
# 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/apipie-rails.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lowercase, uppercase
Naming/HeredocDelimiterCase:
Exclude:
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 7
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/generator/swagger/param_description/type.rb'
# Offense count: 3
# 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/apipie/method_description.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 7
# 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:
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/validator.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 4
# Configuration parameters: MinSize.
Performance/CollectionLiteralInLoop:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/collector.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SafeMultiline.
Performance/DeletePrefix:
Exclude:
- 'lib/tasks/apipie.rake'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Performance/Detect:
Exclude:
- 'spec/lib/swagger/rake_swagger_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Performance/RedundantBlockCall:
Exclude:
- 'lib/apipie/extractor/recorder.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
Exclude:
- 'lib/apipie/generator/swagger/param_description/type.rb'
- 'lib/apipie/middleware/checksum_in_headers.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
Performance/StringIdentifierArgument:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Performance/StringReplacement:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/operation_id.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: OnlySumOrWithInitialValue.
Performance/Sum:
Exclude:
- 'lib/apipie/extractor/writer.rb'
# Offense count: 3
RSpec/Be:
Exclude:
- 'spec/controllers/concerns_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 60
# This cop supports unsafe autocorrection (--autocorrect-all).
RSpec/BeEq:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
- 'spec/lib/apipie/method_description_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/apipie/param_group_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
# Offense count: 3
RSpec/BeforeAfterAll:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 54
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/file_handler_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
- 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/apipie/param_group_spec.rb'
- 'spec/lib/apipie/validator_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
- 'spec/support/rake.rb'
# Offense count: 4
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- 'spec/lib/apipie/param_group_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 75
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
# SupportedStyles: described_class, explicit
RSpec/DescribedClass:
Exclude:
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
- 'spec/controllers/included_param_group_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/apipie/extractor_spec.rb'
- 'spec/lib/apipie/file_handler_spec.rb'
- 'spec/lib/apipie/method_description_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/apipie/resource_description_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
- 'spec/test_engine/memes_controller_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AutoCorrect.
RSpec/EmptyExampleGroup:
Exclude:
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/EmptyLineAfterExampleGroup:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/EmptyLineAfterFinalLet:
Exclude:
- 'spec/lib/validators/array_validator_spec.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterHook:
Exclude:
- 'spec/lib/apipie/apipies_controller_spec.rb'
# Offense count: 55
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 85
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
RSpec/ExcessiveDocstringSpacing:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 1
RSpec/ExpectInHook:
Exclude:
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, each, example
RSpec/HookArgument:
Exclude:
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect.
RSpec/HooksBeforeExamples:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
RSpec/ImplicitSubject:
Exclude:
- 'spec/lib/apipie/application_spec.rb'
# Offense count: 2
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/lib/apipie/apipies_controller_spec.rb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
RSpec/LeadingSubject:
Exclude:
- 'spec/lib/apipie/generator/swagger/context_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/name_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
- 'spec/support/rake.rb'
# Offense count: 1
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 9
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive
# Offense count: 94
RSpec/MultipleExpectations:
Max: 19
# Offense count: 170
# Configuration parameters: AllowSubject.
RSpec/MultipleMemoizedHelpers:
Max: 15
# Offense count: 85
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/builder_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/type_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description_spec.rb'
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
- 'spec/lib/apipie/generator/swagger/warning_writer_spec.rb'
- 'spec/lib/apipie/method_description/apis_service_spec.rb'
- 'spec/lib/apipie/param_description/deprecation_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 99
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 6
# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: not_to, to_not
RSpec/NotToNot:
Exclude:
- 'spec/lib/apipie/file_handler_spec.rb'
# Offense count: 1
RSpec/OverwritingSetup:
Exclude:
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
# Offense count: 1
RSpec/PendingWithoutReason:
Exclude:
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
# SupportedStyles: inflected, explicit
RSpec/PredicateMatcher:
Exclude:
- 'spec/lib/apipie/file_handler_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 2
RSpec/RepeatedExampleGroupBody:
Exclude:
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
# Offense count: 2
RSpec/RepeatedExampleGroupDescription:
Exclude:
- 'spec/lib/apipie/apipies_controller_spec.rb'
# Offense count: 2
RSpec/StubbedMock:
Exclude:
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
# Offense count: 6
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Exclude:
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/extractor/recorder_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
# Offense count: 1
RSpec/VoidExpect:
Exclude:
- 'spec/lib/apipie/extractor/writer_spec.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ApplicationController:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'spec/dummy/app/controllers/api/base_controller.rb'
- 'spec/dummy/app/controllers/tagged_cats_controller.rb'
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforceForPrefixed.
Rails/Delegate:
Exclude:
- 'lib/apipie/response_description_adapter.rb'
# Offense count: 25
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: slashes, arguments
Rails/FilePath:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/tasks/apipie.rake'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/spec_helper.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: numeric, symbolic
Rails/HttpStatus:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/NegateInclude:
Exclude:
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/writer.rb'
- 'spec/spec_helper.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
Rails/Output:
Exclude:
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
# Offense count: 2
Rails/OutputSafety:
Exclude:
- 'lib/apipie/helpers.rb'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/Pluck:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'spec/lib/apipie/method_description_spec.rb'
- 'spec/lib/apipie/resource_description_spec.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: NotNilAndNotEmpty, NotBlank, UnlessBlank.
Rails/Present:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/configuration.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/method_description.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include.
# Include: **/Rakefile, **/*.rake
Rails/RakeEnvironment:
Exclude:
- 'lib/tasks/apipie.rake'
# Offense count: 18
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/RootPathnameMethods:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/tasks/apipie.rake'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Security/IoMethods:
Exclude:
- 'lib/apipie/extractor/writer.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: separated, grouped
Style/AccessorGrouping:
Exclude:
- 'lib/apipie/param_description.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'lib/apipie/param_description.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
Style/CaseEquality:
Exclude:
- 'lib/apipie/validator.rb'
# Offense count: 43
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/apipie/core_ext/route.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/generator/generator.rb'
- 'lib/apipie/generator/swagger/computed_interface_id.rb'
- 'lib/apipie/generator/swagger/context.rb'
- 'lib/apipie/generator/swagger/method_description.rb'
- 'lib/apipie/generator/swagger/method_description/api_decorator.rb'
- 'lib/apipie/generator/swagger/method_description/api_schema_service.rb'
- 'lib/apipie/generator/swagger/method_description/decorator.rb'
- 'lib/apipie/generator/swagger/method_description/parameters_service.rb'
- 'lib/apipie/generator/swagger/method_description/response_schema_service.rb'
- 'lib/apipie/generator/swagger/method_description/response_service.rb'
- 'lib/apipie/generator/swagger/operation_id.rb'
- 'lib/apipie/generator/swagger/param_description.rb'
- 'lib/apipie/generator/swagger/param_description/builder.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/generator/swagger/param_description/description.rb'
- 'lib/apipie/generator/swagger/param_description/in.rb'
- 'lib/apipie/generator/swagger/param_description/name.rb'
- 'lib/apipie/generator/swagger/param_description/path_params_composite.rb'
- 'lib/apipie/generator/swagger/param_description/referenced_composite.rb'
- 'lib/apipie/generator/swagger/param_description/type.rb'
- 'lib/apipie/generator/swagger/path_decorator.rb'
- 'lib/apipie/generator/swagger/referenced_definitions.rb'
- 'lib/apipie/generator/swagger/resource_description_collection.rb'
- 'lib/apipie/generator/swagger/resource_description_composite.rb'
- 'lib/apipie/generator/swagger/schema.rb'
- 'lib/apipie/generator/swagger/swagger.rb'
- 'lib/apipie/generator/swagger/type.rb'
- 'lib/apipie/generator/swagger/type_extractor.rb'
- 'lib/apipie/generator/swagger/warning.rb'
- 'lib/apipie/generator/swagger/warning_writer.rb'
- 'lib/apipie/method_description/api.rb'
- 'lib/apipie/method_description/apis_service.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/validators/array_validator_spec.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/errors.rb'
- 'lib/apipie/validator.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/validator.rb'
# Offense count: 19
# This cop supports safe autocorrection (--autocorrect).
Style/ColonMethodCall:
Exclude:
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Keywords, RequireColon.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
Exclude:
- 'lib/apipie/apipie_module.rb'
- 'spec/controllers/pets_controller_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 17
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
Exclude:
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/recorder.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/see_description.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: allowed_in_returns, forbidden
Style/DoubleNegation:
Exclude:
- 'lib/apipie/response_description_adapter.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/EachWithObject:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/method_description.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EmptyCaseCondition:
Exclude:
- 'lib/apipie/extractor.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, EnforcedStyle, AllowComments.
# SupportedStyles: empty, nil, both
Style/EmptyElse:
Exclude:
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
# Offense count: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
- 'spec/dummy/app/controllers/extended_controller.rb'
- 'spec/dummy/app/controllers/included_param_group_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/Encoding:
Exclude:
- 'apipie-rails.gemspec'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars.
Style/FetchEnvVar:
Exclude:
- 'lib/tasks/apipie.rake'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/FileRead:
Exclude:
- 'lib/apipie/dsl_definition.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/FileWrite:
Exclude:
- 'lib/tasks/apipie.rake'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: each, for
Style/For:
Exclude:
- 'lib/apipie/response_description_adapter.rb'
# Offense count: 7
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, AllowedMethods, AllowedPatterns.
# SupportedStyles: annotated, template, unannotated
# AllowedMethods: redirect
Style/FormatStringToken:
EnforcedStyle: template
# Offense count: 31
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/param_description/builder.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/app/controllers/application_controller.rb'
- 'spec/dummy/config/initializers/apipie.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/HashExcept:
Exclude:
- 'lib/apipie/param_description.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
Style/HashSyntax:
Exclude:
- 'spec/dummy/config/routes.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfModifier.
Style/IfInsideElse:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods.
# AllowedMethods: nonzero?
Style/IfWithBooleanLiteralBranches:
Exclude:
- 'lib/apipie/param_description.rb'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
Exclude:
- 'lib/apipie/configuration.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/MethodCallWithoutArgsParentheses:
Exclude:
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/markup.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
Style/MethodDefParentheses:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
# Offense count: 1
Style/MissingRespondToMissing:
Exclude:
- 'lib/apipie/apipie_module.rb'
# Offense count: 1
Style/MultilineBlockChain:
Exclude:
- 'lib/apipie/param_description.rb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: both, prefix, postfix
Style/NegatedIf:
Exclude:
- 'lib/apipie/generator/swagger/param_description/builder.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/generator/swagger/warning.rb'
- 'lib/apipie/method_description/apis_service.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/validator.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/NegatedIfElseCondition:
Exclude:
- 'lib/apipie/extractor/writer.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods.
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
Style/NestedParenthesizedCalls:
Exclude:
- 'spec/lib/apipie/file_handler_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
Style/NumericLiterals:
MinDigits: 6
# Offense count: 7
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/ParallelAssignment:
Exclude:
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/recorder.rb'
# Offense count: 8
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'apipie-rails.gemspec'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/routes_formatter.rb'
- 'lib/apipie/validator.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/PerlBackrefs:
Exclude:
- 'lib/apipie/extractor.rb'
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Style/Proc:
Exclude:
- 'spec/lib/apipie/apipies_controller_spec.rb'
# Offense count: 7
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/validator.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Methods.
Style/RedundantArgument:
Exclude:
- 'lib/apipie/param_description.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
Exclude:
- 'spec/lib/swagger/rake_swagger_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantCondition:
Exclude:
- 'lib/apipie/response_description.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantConditional:
Exclude:
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 3
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
Exclude:
- 'lib/tasks/apipie.rake'
- 'spec/lib/swagger/rake_swagger_spec.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
Exclude:
- 'lib/apipie/extractor/collector.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantPercentQ:
Exclude:
- 'apipie-rails.gemspec'
# Offense count: 29
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.
Style/RedundantReturn:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/middleware/checksum_in_headers.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 50
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantSelf:
Exclude:
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/type.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/validator.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
- 'spec/dummy/config/initializers/apipie.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantStringEscape:
Exclude:
- 'spec/dummy/app/controllers/users_controller.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, explicit
Style/RescueStandardError:
Exclude:
- 'lib/apipie/dsl_definition.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SelectByRegexp:
Exclude:
- 'lib/apipie/routes_formatter.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Exclude:
- 'lib/apipie/method_description.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
Exclude:
- 'lib/apipie/tag_list_description.rb'
# Offense count: 6
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/SlicingWithRange:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/tasks/apipie.rake'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
Exclude:
- 'lib/apipie/validator.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names
# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'lib/apipie/application.rb'
- 'lib/apipie/extractor/writer.rb'
# Offense count: 1233
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'Rakefile'
- 'apipie-rails.gemspec'
- 'app/controllers/apipie/apipies_controller.rb'
- 'lib/apipie-rails.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/configuration.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/swagger/param_description.rb'
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'lib/apipie/generator/swagger/warning.rb'
- 'lib/apipie/helpers.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/param_description.rb'
- 'lib/apipie/resource_description.rb'
- 'lib/apipie/routing.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/apipie/validator.rb'
- 'lib/apipie/version.rb'
- 'lib/generators/apipie/install/install_generator.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/api/v1/architectures_controller_spec.rb'
- 'spec/controllers/api/v2/architectures_controller_spec.rb'
- 'spec/controllers/api/v2/nested/resources_controller_spec.rb'
- 'spec/controllers/concerns_controller_spec.rb'
- 'spec/controllers/extended_controller_spec.rb'
- 'spec/controllers/included_param_group_controller_spec.rb'
- 'spec/controllers/pets_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/api/v1/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/nested/architectures_controller.rb'
- 'spec/dummy/app/controllers/api/v2/nested/resources_controller.rb'
- 'spec/dummy/app/controllers/application_controller.rb'
- 'spec/dummy/app/controllers/overridden_concerns_controller.rb'
- 'spec/dummy/app/controllers/pets_controller.rb'
- 'spec/dummy/app/controllers/pets_using_auto_views_controller.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
- 'spec/dummy/app/controllers/sample_controller.rb'
- 'spec/dummy/app/controllers/tagged_cats_controller.rb'
- 'spec/dummy/app/controllers/tagged_dogs_controller.rb'
- 'spec/dummy/app/controllers/twitter_example_controller.rb'
- 'spec/dummy/app/controllers/users_controller.rb'
- 'spec/dummy/components/test_engine/Gemfile'
- 'spec/dummy/config/application.rb'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/dummy/config/routes.rb'
- 'spec/lib/apipie/apipies_controller_spec.rb'
- 'spec/lib/apipie/application_spec.rb'
- 'spec/lib/apipie/extractor/recorder/middleware_spec.rb'
- 'spec/lib/apipie/extractor/writer_spec.rb'
- 'spec/lib/apipie/extractor_spec.rb'
- 'spec/lib/apipie/file_handler_spec.rb'
- 'spec/lib/apipie/generator/swagger/operation_id_spec.rb'
- 'spec/lib/apipie/generator/swagger/param_description/composite_spec.rb'
- 'spec/lib/apipie/generator/swagger/type_extractor_spec.rb'
- 'spec/lib/apipie/generator/swagger/warning_spec.rb'
- 'spec/lib/apipie/method_description_spec.rb'
- 'spec/lib/apipie/param_description/deprecation_spec.rb'
- 'spec/lib/apipie/param_description_spec.rb'
- 'spec/lib/apipie/param_group_spec.rb'
- 'spec/lib/apipie/resource_description_spec.rb'
- 'spec/lib/apipie/validator_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
- 'spec/lib/validators/array_validator_spec.rb'
- 'spec/spec_helper.rb'
- 'spec/support/custom_bool_validator.rb'
- 'spec/support/rake.rb'
- 'spec/test_engine/memes_controller_spec.rb'
# Offense count: 34
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinSize.
# SupportedStyles: percent, brackets
Style/SymbolArray:
EnforcedStyle: brackets
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'spec/controllers/users_controller_spec.rb'
- 'spec/dummy/app/controllers/pets_using_self_describing_classes_controller.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude:
- 'lib/apipie/generator/swagger/param_description.rb'
- 'lib/apipie/generator/swagger/param_description/builder.rb'
- 'spec/controllers/users_controller_spec.rb'
# Offense count: 1
# 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/apipie/method_description.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/UnlessElse:
Exclude:
- 'lib/apipie/errors.rb'
- 'lib/apipie/validator.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/ZeroLengthPredicate:
Exclude:
- 'lib/apipie/generator/swagger/param_description/composite.rb'
- 'spec/lib/swagger/swagger_dsl_spec.rb'