Skip to content

Commit

Permalink
Exclude 'Style/RedundantSelf' cop.
Browse files Browse the repository at this point in the history
Explicit `self` more clearly communicates that it is an accessor
rather than a local variable.
  • Loading branch information
xwmx committed May 8, 2016
1 parent de76b83 commit 1b41a2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ Style/FileName:
# ```
Style/IndentationConsistency:
EnforcedStyle: rails

# Style/RedundantSelf
#
# Explicit `self` is currently preferred in this project in order to
# better distinguish between accessors and local variables.
Style/RedundantSelf:
Exclude:
- 'lib/pandoc-ruby.rb'
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,3 @@ Style/IndentHash:
Style/MultilineIfThen:
Exclude:
- 'pandoc-ruby.gemspec'

# Offense count: 9
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
- 'lib/pandoc-ruby.rb'

0 comments on commit 1b41a2a

Please sign in to comment.