Skip to content

Commit

Permalink
Add rubocop rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
blkperl committed Oct 4, 2015
1 parent b664c67 commit 7cf8b2f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ AllCops:
Exclude:
- moduleroot/spec/spec_helper.rb
- vendor/**/*
- modules/**/*

# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Expand Down
16 changes: 16 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2015 Puppet Community
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'rubocop/rake_task'

RuboCop::RakeTask.new
3 changes: 3 additions & 0 deletions moduleroot/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'
require 'metadata-json-lint/rake_task'
require 'puppet_blacksmith/rake_tasks'
require 'rubocop/rake_task'

RuboCop::RakeTask.new

PuppetLint.configuration.relative = true
PuppetLint.configuration.send('disable_80chars')
Expand Down

0 comments on commit 7cf8b2f

Please sign in to comment.