Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Add support for -1 parameters. General cleanup. #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ provisioner:
name: chef_zero

platforms:
- name: centos-6.7
- name: ubuntu-12.04
- name: centos-5.11
- name: centos-6.9
- name: centos-7.4
- name: ubuntu-14.04
- name: ubuntu-16.04

suites:
- name: default
Expand Down
55 changes: 3 additions & 52 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,3 @@
# Rubocop, we're buddies and all, but we're going to have to disagree on the following -

# Disable ABC, it's not needed in chef
AbcSize:
Enabled: false

# Disable requirement of "encoding" headers on files
Encoding:
Enabled: false

# Increase line length, we're not on VT220s anymore
LineLength:
Max: 180

# Increase allowed lines in a method. Short methods are good, but 10 lines
# is a bit too low.
MethodLength:
Max: 100

# Favor explicit over implicit code: don't complain of "redundant returns"
RedundantReturn:
Enabled: false

# Don't complain about if/unless modifiers. The merit of this is debatable
# and it will likely require building of over-length lines.
IfUnlessModifier:
Enabled: false

# Raise allowed CyclomaticComplexity to 10.
CyclomaticComplexity:
Max: 10

# Disable Single Space before first arg
Style/SpaceBeforeFirstArg:
Enabled: false

# Don't force a word array unless 5 elements
WordArray:
MinSize: 5

# Don't complain about unused block args
UnusedBlockArgument:
Enabled: false

# Allow extra spaces in hash definitions
ExtraSpacing:
Enabled: false

AllCops:
Include:
- '**/metadata.rb'
- '**/*.rb'
Style/StringLiterals:
EnforcedStyle: single_quotes
Enabled: true
14 changes: 8 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
source 'https://rubygems.org'

group :lint do
gem 'chefstyle'
gem 'foodcritic'
gem 'foodcritic-rackspace-rules'
gem 'rubocop'
gem 'cookstyle'
end

group :unit do
gem 'berkshelf', '~> 4'
gem 'chefspec'
gem 'berkshelf'
gem 'chef-sugar'
gem 'chefspec'
gem 'ruby-shadow'
end

Expand All @@ -27,11 +28,12 @@ group :kitchen_rackspace do
end

group :development do
gem 'stove', '= 3.2.5'
gem 'github_api'
gem 'growl'
gem 'rb-fsevent'
gem 'guard'
gem 'guard-kitchen'
gem 'guard-foodcritic'
gem 'guard-kitchen'
gem 'guard-rubocop'
gem 'rb-fsevent'
gem 'stove', '= 3.2.5'
end
Loading