Skip to content

Commit

Permalink
Allow visibility scoped node matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Drenmi authored and bbatsov committed Apr 2, 2017
1 parent ef9607c commit ef729df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ Style/FrozenStringLiteralComment:
Style/IndentHeredoc:
EnforcedStyle: powerpack

Metrics/BlockLength:
Lint/AmbiguousBlockAssociation:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'

AmbiguousBlockAssociation:
Lint/UselessAccessModifier:
MethodCreatingMethods:
- 'def_matcher'
- 'def_node_matcher'

Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
2 changes: 1 addition & 1 deletion lib/rubocop/ast/node/send_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def node_parts
[*self]
end

private # rubocop:disable Lint/UselessAccessModifier
private

def_matcher :macro_scope?, <<-PATTERN
{^({class module} ...)
Expand Down

0 comments on commit ef729df

Please sign in to comment.