Skip to content

Commit

Permalink
Merge pull request #36 from jyaworski/check_for_nil_rubocop
Browse files Browse the repository at this point in the history
Only call template additions if they're not nil.
  • Loading branch information
igalic committed Nov 6, 2015
2 parents 148e9ca + c7ff9d0 commit c258acb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moduleroot/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ AllCops:
- vendor/**/*
- pkg/**/*
- spec/fixtures/**/*
<%- if [email protected]? and @configs.has_key?('AllCops') and @configs['AllCops'].has_key?('Exclude') -%>
<%- @configs['AllCops']['Exclude'].each do |x| -%>
- <%= x %>
<%- end -%>
<%- end -%>

# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Expand Down

0 comments on commit c258acb

Please sign in to comment.