Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rule-finder): Report any deprecated rules in use #286

Merged
merged 1 commit into from Feb 15, 2018

Conversation

randycoulman
Copy link
Contributor

@randycoulman randycoulman commented Feb 2, 2018

Add a new -d/--deprecated option that reports any deprecated rules being used in the current configuration.

The new option respects the --no-error and --no-core options.

In order to make this work, I had to refactor everything a bit. _getPluginRules() and _getCoreRules() now both return a Map of ruleName => ruleDefinition so that we can determine which rules are deprecated when we need.

With that change, I was able to move the handling of the includeDeprecated flag into RuleFinder rather than passing it off to the _get*Rules functions.

Fixes #188

h/t @casto101 and @cseidholz for pairing on this with me.

@ta2edchimp
Copy link
Collaborator

This is absolutely awesome! 👍
If no one else gets back at it, I'll have a more thorough look in the upcoming days and we'll get a release out shortly after.

@randycoulman
Copy link
Contributor Author

Ping? Is there anything else that needs to be done before merging/releasing this? Thanks!

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Seems good.

@ta2edchimp ta2edchimp merged commit 31b7448 into sarbbottam:master Feb 15, 2018
@ta2edchimp
Copy link
Collaborator

Sorry for the delay, I catched a flu and was next to useless for anything.

@randycoulman randycoulman deleted the report-deprecated-rules branch February 15, 2018 13:58
@randycoulman
Copy link
Contributor Author

No worries. Hope you're feeling better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants