Skip to content

Commit

Permalink
Fix Style/RedundantFileExtensionInRequire cop
Browse files Browse the repository at this point in the history
This cop identifies and recommends removing redundant '.rb' file extensions
specified in require and require_relative statements. Omitting the extension
improves code clarity and adheres to Ruby's behavior.
https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfileextensioninrequire
  • Loading branch information
archanaserver committed Mar 6, 2024
1 parent 640561e commit 5f2798f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/initializers/ldap_instrumentation.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'foreman/ldap/ldap_subscriber.rb'
require 'foreman/ldap/ldap_fluff_subscriber.rb'
require 'foreman/ldap/net_ldap_subscriber.rb'
require 'foreman/ldap/ldap_subscriber'
require 'foreman/ldap/ldap_fluff_subscriber'
require 'foreman/ldap/net_ldap_subscriber'

# Debug logging from net-ldap and ldap_fluff events sent via ActiveSupport::Notifications
Rails.application.config.after_initialize do
Expand Down

0 comments on commit 5f2798f

Please sign in to comment.