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

Deprecate no-unused-variable rule #1618

Merged
merged 1 commit into from
Oct 10, 2016
Merged

Deprecate no-unused-variable rule #1618

merged 1 commit into from
Oct 10, 2016

Conversation

adidahiya
Copy link
Contributor

Resolves #1481. Adds a deprecationMessage field to rule metadata.

@adidahiya adidahiya force-pushed the ad/no-unused-variable branch from 1529814 to 23e770d Compare October 10, 2016 00:07
@@ -49,6 +49,10 @@ export function loadRules(ruleConfiguration: {[name: string]: any},
const disabledIntervals = buildDisabledIntervalsFromSwitches(ruleSpecificList, allList);
rules.push(new Rule(ruleName, ruleValue, disabledIntervals));
}

if (Rule.metadata && Rule.metadata.deprecationMessage) {
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 should actually go into the else block above.

Resolves #1481. Adds a `deprecationMessage` field to rule metadata.
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.

1 participant