Skip to content

Commit

Permalink
Require leading underscore for memoized instance variables
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstosik committed Jul 24, 2024
1 parent 747c6c4 commit 40083c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Metrics/ModuleLength:
Exclude:
- 'test/**/*_test.rb'

Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required

Style/StringLiterals:
EnforcedStyle: double_quotes

Expand Down
12 changes: 1 addition & 11 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-24 02:27:17 UTC using RuboCop version 1.65.0.
# on 2024-07-24 02:30:12 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 @@ -22,16 +22,6 @@ Minitest/EmptyLineBeforeAssertionMethods:
Minitest/MultipleAssertions:
Max: 4

# Offense count: 10
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/mfynab/cli.rb'
- 'lib/mfynab/ynab_transaction_importer.rb'
- 'test/support/ynab_requests.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Keywords, RequireColon.
Expand Down

0 comments on commit 40083c2

Please sign in to comment.