Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Remove FC003 from Foodcritic #512

Merged
merged 2 commits into from
Mar 3, 2017
Merged

Remove FC003 from Foodcritic #512

merged 2 commits into from
Mar 3, 2017

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented Feb 9, 2017

It no longer makes sense now that solo uses local mode and search works with that.

Signed-off-by: Tim Smith [email protected]

It no longer makes sense now that solo uses local mode and search works with that. Update the test helper to no longer use FC003 since we tested with that in several places

Signed-off-by: Tim Smith <[email protected]>
@tas50 tas50 changed the title WIP: Remove FC003 from Foodcritic Remove FC003 from Foodcritic Mar 2, 2017
Signed-off-by: Tim Smith <[email protected]>
@@ -16,7 +16,7 @@ def assertions
WARNINGS = {
"FC001" => "Use strings in preference to symbols to access node attributes",
"FC002" => "Avoid string interpolation where not required",
"FC003" => "Check whether you are running with chef server before using server-specific features",
# FC003 was yanked and is considered reserved, do not reuse it
Copy link

Choose a reason for hiding this comment

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

yanked might not make sense to international audience. maybe "FC003 has been deprecated and is considered reserved.."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just copy pasta from the last FC rule we deprecated. The actual docs for FC word is differently. This is just a code comment to prevent devs from reusing the number

end
end
end
# FC003 was yanked and the number should not be reused
Copy link

Choose a reason for hiding this comment

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

FC003 was a check for Chef server specific features that

did not interoperate with the implementation of chef-solo.

It has been deprecated, and should not be reused.

Copy link

Choose a reason for hiding this comment

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

Making it a comment makes it think I meant this as a giant header. doh.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above these aren't actually seen by end users so the wording isn't the important part. That's for the PR against foodcritic-site

@tas50 tas50 merged commit fec6c90 into master Mar 3, 2017
@tas50 tas50 deleted the fc003_remove branch March 3, 2017 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants