Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style/RedundantFileExtensionInRequire-20220926234015 #790

Merged
merged 3 commits into from
Sep 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'