Rubocop cleanup - removing individual directory .rubocop.yml files

- Remove directory/.rubocop.yml files
- Adjust Strainerfile to use the single .rubocop.yml
- Adjust .rubocop.yml ot reference all directories

Change-Id: I4323a1d1b626001c0b0dc05bec473b16c637f485
Addresses: blueprint rubocop-for-metering
This commit is contained in:
Andy McCrae 2014-01-30 12:02:09 +00:00
parent e6a23db739
commit 9c98f7510a
5 changed files with 20 additions and 26 deletions

View File

@ -1,7 +1,22 @@
# UTF-8 headers not generally in these files
Encoding:
Enabled: false
AllCops:
Includes:
- metadata.rb
- Gemfile
- attributes/**
- recipes/**
- spec/**
Excludes:
- libraries/**
- providers/**
- resources/**
Encoding:
Exclude:
- metadata.rb
- Gemfile
# ignore long lines
LineLength:
Enabled: false
WordArray:
MinSize: 3

View File

@ -1,9 +1,5 @@
# Strainerfile
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK/Gemfile $SANDBOX/$COOKBOOK/metadata.rb --config $SANDBOX/$COOKBOOK/.rubocop.yml
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK/attributes/ --config $SANDBOX/$COOKBOOK/attributes/.rubocop.yml
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK/recipes/ --config $SANDBOX/$COOKBOOK/recipes/.rubocop.yml
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK/spec/ --config $SANDBOX/$COOKBOOK/spec/.rubocop.yml
# rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK
rubocop: bundle exec rubocop $SANDBOX/$COOKBOOK
knife test: bundle exec knife cookbook test $COOKBOOK
foodcritic: bundle exec foodcritic -f any -t ~FC003 -t ~FC023 $SANDBOX/$COOKBOOK
chefspec: bundle exec rspec $SANDBOX/$COOKBOOK/spec

View File

@ -1,7 +0,0 @@
# embedded attributes make for long lines
LineLength:
Enabled: false
# Allow small arrays before forcing %w or %W
WordArray:
MinSize: 3

View File

@ -1,3 +0,0 @@
# embedded attributes make for long lines
LineLength:
Enabled: false

View File

@ -1,7 +0,0 @@
# embedded attributes make for long lines
LineLength:
Enabled: false
# Allow small arrays before forcing %w or %W
WordArray:
MinSize: 3