Skip to content

Commit

Permalink
Style/EvalWithLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jul 13, 2024
1 parent 4fae905 commit 081c35c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 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 2024-07-13 08:53:50 UTC using RuboCop version 1.65.0.
# on 2024-07-13 08:55:59 UTC using RuboCop version 1.65.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 All @@ -16,7 +16,7 @@ Gemspec/RequiredRubyVersion:
# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 36
Max: 37

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Expand Down Expand Up @@ -75,12 +75,6 @@ Style/Documentation:
- 'lib/generators/comment/templates/comment.rb'
- 'lib/generators/comment/templates/create_comments.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/EvalWithLocation:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 15
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
Expand Down
2 changes: 1 addition & 1 deletion lib/commentable_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def add_#{method_name.singularize}(comment)
comment.role = "#{role}"
#{method_name} << comment
end
}
}, __FILE__, __LINE__ - 21
end
end
end
Expand Down

0 comments on commit 081c35c

Please sign in to comment.