Unverified Commit a286fc64 authored by Tim Smith's avatar Tim Smith
Browse files

Switch to cookstyle


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 1edcc3e8
AllCops:
# rubocop todo
#
Lint/AmbiguousRegexpLiteral:
Exclude:
- vendor/**/*
- Guardfile
- test/**/*
- 'test/integration/input_file_provider/serverspec/input_file_provider_spec.rb'
- 'test/integration/relp/serverspec/relp_spec.rb'
AlignParameters:
Enabled: false
ClassLength:
Enabled: false
CyclomaticComplexity:
Enabled: false
Documentation:
Enabled: false
Encoding:
Enabled: false
Style/FileName:
Enabled: false
Style/Alias:
Enabled: false
Style/SpaceBeforeFirstArg:
Enabled: false
LineLength:
Enabled: false
MethodLength:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/ModuleLength:
Enabled: false
PerceivedComplexity:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Exclude:
- 'test/integration/input_file_provider/serverspec/input_file_provider_spec.rb'
......@@ -49,6 +49,6 @@ script:
- /opt/chefdk/embedded/bin/cookstyle --version
- /opt/chefdk/embedded/bin/cookstyle
- /opt/chefdk/embedded/bin/foodcritic --version
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec -f any
- /opt/chefdk/embedded/bin/foodcritic . --exclude spec -f any -P
#- /opt/chefdk/embedded/bin/rspec
- KITCHEN_LOCAL_YAML=.kitchen.docker.yml /opt/chefdk/embedded/bin/kitchen verify ${INSTANCE}
......@@ -7,7 +7,7 @@ end
group :lint do
gem 'foodcritic', '~> 6.2'
gem 'rubocop', '~> 0.38'
gem 'cookstyle'
end
group :unit do
......
require 'rspec/core/rake_task'
require 'cookstyle'
require 'rubocop/rake_task'
require 'foodcritic'
require 'kitchen'
......@@ -37,7 +38,7 @@ namespace :integration do
end
desc 'Run all tests on Travis'
task travis: ['style', 'spec', 'integration:cloud']
task travis: %w(style spec)
# Default
task default: %w(style spec)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment