Skip to content

Commit

Permalink
redo rubocop todos; HashSyntax set to no_mixed_keys (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin authored Jan 29, 2023
1 parent 3d5276b commit 465aa81
Show file tree
Hide file tree
Showing 2 changed files with 858 additions and 154 deletions.
75 changes: 75 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Layout/LineLength:
- lib/apipie/response_description_adapter.rb
- lib/apipie/swagger_generator.rb
- lib/apipie/errors.rb
- lib/apipie/generator/swagger/warning.rb
- lib/apipie/rspec/response_validation_helper.rb
- spec/controllers/users_controller_spec.rb
- spec/dummy/app/controllers/twitter_example_controller.rb
Expand All @@ -29,9 +30,83 @@ Layout/LineLength:
- spec/lib/swagger/response_validation_spec.rb
- spec/spec_helper.rb

Metrics/ClassLength:
Max: 180
Exclude:
- lib/apipie/extractor/writer.rb
- lib/apipie/application.rb
- lib/apipie/param_description.rb
- lib/apipie/swagger_generator.rb
- spec/dummy/app/controllers/pets_controller.rb
- spec/dummy/app/controllers/twitter_example_controller.rb
- spec/dummy/app/controllers/users_controller.rb

Metrics/BlockLength:
Max: 25 # default
Exclude:
- app/controllers/apipie/apipies_controller.rb
- lib/apipie/generator/swagger/param_description/composite.rb
- lib/tasks/apipie.rake
- lib/apipie/swagger_generator.rb

Naming/PredicateName:
AllowedMethods:
- have_field?

Style/NumericPredicate:
Enabled: false

Style/HashSyntax:
EnforcedStyle: no_mixed_keys
EnforcedShorthandSyntax: never # consistent

Style/Documentation:
Exclude:
- 'app/controllers/apipie/apipies_controller.rb'
- 'app/helpers/apipie_helper.rb'
- 'lib/apipie/apipie_module.rb'
- 'lib/apipie/application.rb'
- 'lib/apipie/configuration.rb'
- 'lib/apipie/core_ext/route.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/apipie/error_description.rb'
- 'lib/apipie/errors.rb'
- 'lib/apipie/extractor.rb'
- 'lib/apipie/extractor/collector.rb'
- 'lib/apipie/extractor/recorder.rb'
- 'lib/apipie/extractor/writer.rb'
- 'lib/apipie/generator/generator.rb'
- 'lib/apipie/generator/swagger/context.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/type.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/helpers.rb'
- 'lib/apipie/markup.rb'
- 'lib/apipie/method_description.rb'
- 'lib/apipie/method_description/api.rb'
- 'lib/apipie/middleware/checksum_in_headers.rb'
- 'lib/apipie/railtie.rb'
- 'lib/apipie/response_description.rb'
- 'lib/apipie/response_description_adapter.rb'
- 'lib/apipie/routes_formatter.rb'
- 'lib/apipie/routing.rb'
- 'lib/apipie/rspec/response_validation_helper.rb'
- 'lib/apipie/see_description.rb'
- 'lib/apipie/static_dispatcher.rb'
- 'lib/apipie/tag_list_description.rb'
- 'lib/apipie/validator.rb'
- 'lib/generators/apipie/install/install_generator.rb'
- 'lib/generators/apipie/views_generator.rb'
- spec/support/custom_bool_validator.rb
- spec/lib/validators/array_validator_spec.rb
- spec/dummy/**/*.rb
Loading

0 comments on commit 465aa81

Please sign in to comment.