Skip to content

Commit

Permalink
Naming/MemoizedInstanceVariableName
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jul 13, 2024
1 parent 081c35c commit 89ef45d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ Metrics/MethodLength:
Metrics/PerceivedComplexity:
Max: 13

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/generators/comment/comment_generator.rb'

# Offense count: 2
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/comment/comment_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class CommentGenerator < Rails::Generators::Base
include Rails::Generators::Migration

def self.source_root
@_acts_as_commentable_source_root ||= File.expand_path('templates', __dir__)
@source_root ||= File.expand_path('templates', __dir__)
end

def self.next_migration_number(_path)
Expand Down

0 comments on commit 89ef45d

Please sign in to comment.