Skip to content

Commit

Permalink
Style/RedundantFileExtensionInRequire-20220926234015 (#790)
Browse files Browse the repository at this point in the history
* 🚓 regenerate rubocop todo

* 🚓 Style/RedundantFileExtensionInRequire

* 🚓 regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>
  • Loading branch information
github-actions[bot] and Rubocop Challenger authored Sep 28, 2022
1 parent 8758400 commit 892b9fa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
37 changes: 28 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-09-07 23:38:49 UTC using RuboCop version 1.36.0.
# on 2022-09-26 23:40:49 UTC using RuboCop version 1.36.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
Expand Down Expand Up @@ -896,7 +896,7 @@ RSpec/BeforeAfterAll:
- 'spec/controllers/users_controller_spec.rb'

# Offense count: 35
# Configuration parameters: Prefixes.
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
Expand Down Expand Up @@ -963,6 +963,7 @@ RSpec/EmptyLineAfterFinalLet:

# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowConsecutiveOneLiners.
RSpec/EmptyLineAfterHook:
Exclude:
- 'spec/controllers/apipies_controller_spec.rb'
Expand Down Expand Up @@ -1084,9 +1085,19 @@ RSpec/NamedSubject:
- 'spec/lib/swagger/swagger_dsl_spec.rb'

# Offense count: 31
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 6

# Offense count: 21
RSpec/NoExpectationExample:
Exclude:
- 'spec/controllers/apipies_controller_spec.rb'
- 'spec/controllers/concerns_controller_spec.rb'
- 'spec/controllers/memes_controller_spec.rb'
- 'spec/controllers/users_controller_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'

# Offense count: 11
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down Expand Up @@ -1231,6 +1242,21 @@ Rails/RakeEnvironment:
Exclude:
- 'lib/tasks/apipie.rake'

# Offense count: 18
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: SafeAutocorrect.
Rails/RootPathnameMethods:
Exclude:
- 'lib/apipie/configuration.rb'
- 'lib/apipie/dsl_definition.rb'
- 'lib/tasks/apipie.rake'
- 'spec/controllers/apipies_controller_spec.rb'
- 'spec/dummy/config/initializers/apipie.rb'
- 'spec/lib/application_spec.rb'
- 'spec/lib/extractor/writer_spec.rb'
- 'spec/lib/rake_spec.rb'
- 'spec/lib/swagger/rake_swagger_spec.rb'

# Offense count: 4
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
Expand Down Expand Up @@ -1752,13 +1778,6 @@ Style/RedundantConditional:
- 'lib/apipie/validator.rb'
- 'lib/tasks/apipie.rake'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantFileExtensionInRequire:
Exclude:
- 'lib/apipie-rails.rb'
- 'spec/spec_helper.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/RedundantInterpolation:
Expand Down
2 changes: 1 addition & 1 deletion lib/apipie-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'json'
require 'active_support/hash_with_indifferent_access'

require 'apipie/core_ext/route.rb'
require 'apipie/core_ext/route'

require "apipie/routing"
require "apipie/markup"
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ def fail(msg)
config.infer_spec_type_from_file_location!
end

require 'action_controller/test_case.rb'
require 'action_controller/test_case'

0 comments on commit 892b9fa

Please sign in to comment.