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

Add cookstyle/chefstyle/foodcritic tests to Travis #1160

Merged
merged 5 commits into from
Feb 8, 2017

Conversation

tduffield
Copy link
Contributor

@tduffield tduffield commented Feb 8, 2017

We have these rules, we might as well enforce them upon ourselves (BOBRC).

Fixes #1159

@@ -5,4 +5,3 @@
description 'Generates Chef code for Chef DK'
long_description 'Generates Chef code for Chef DK'
version '0.1.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should also be bumping versions of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm torn on that. Since we don't really upload it to a Chef Server, and the cookbook itself is already versioned with the ChefDK repo itself, I don't see a huge benefit to the overhead (unless you can think of something).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know if that would add a lot of value. We don't upload it to a Chef Server, and its already versioned via the ChefDK itself.

@tduffield tduffield force-pushed the tduffield/fix-code_generator-linting branch 2 times, most recently from 5974ba3 to 4ace633 Compare February 8, 2017 16:16
@tduffield
Copy link
Contributor Author

@tas50 brought up a good point, that running chefstyle on the root of this repo will revert the above changes. That being said, we currently don't run chefstyle against this repo.

Signed-off-by: Tom Duffield <tom@chef.io>
@tduffield tduffield force-pushed the tduffield/fix-code_generator-linting branch 2 times, most recently from 69514f1 to 11729d6 Compare February 8, 2017 19:02
Signed-off-by: Tom Duffield <tom@chef.io>
@tduffield tduffield force-pushed the tduffield/fix-code_generator-linting branch from 11729d6 to 27e1d4e Compare February 8, 2017 19:03
@tduffield tduffield changed the title Add cookstyle/foodcritic linting tests to code_generator cookbook Add cookstyle/chefstyle/foodcritic tests to Travis Feb 8, 2017
Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
@tduffield tduffield force-pushed the tduffield/fix-code_generator-linting branch from e8d4b9d to 6388d78 Compare February 8, 2017 20:31
Signed-off-by: Tom Duffield <tom@chef.io>
- rvm: 2.3.1
env:
FOODCRITIC: 1
script: $(which bundle) exec rake style:foodcritic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lamont-granquist
Copy link
Contributor

thank you for busting them out into their own tasks.

@tduffield tduffield merged commit 9199ddc into master Feb 8, 2017
@tas50 tas50 deleted the tduffield/fix-code_generator-linting branch September 26, 2017 17:03
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
@tas50 tas50 added Expeditor: Skip Changelog Used to skip built_in:update_changelog. and removed Expeditor: Exclude From Changelog labels Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Expeditor: Skip Changelog Used to skip built_in:update_changelog.
Development

Successfully merging this pull request may close these issues.

4 participants