Skip to content

Commit

Permalink
Merge pull request #8 from puppet-community/rakeocop
Browse files Browse the repository at this point in the history
expand on rubocop config & make it standard
  • Loading branch information
blkperl committed Oct 4, 2015
2 parents 382b95c + 4354741 commit 6df8b9b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Metrics/LineLength:
# dealbreaker:
Style/TrailingComma:
Enabled: false

# we still support ruby 1.8
Style/HashSyntax:
Enabled: false
17 changes: 17 additions & 0 deletions moduleroot/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
AllCops:
Exclude:
- vendor/**/*
- pkg/**/*
- spec/fixtures/**/*

# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 128

# dealbreaker:
Style/TrailingComma:
Enabled: false

# we still support ruby 1.8
Style/HashSyntax:
Enabled: false
3 changes: 2 additions & 1 deletion moduleroot/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ task test: [
:metadata_lint,
:lint,
:syntax,
:spec
:rubocop,
:spec,
]

Blacksmith::RakeTask.new do |t|
Expand Down

0 comments on commit 6df8b9b

Please sign in to comment.