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

Fix error saying severity is missing #2516

Merged
merged 1 commit into from
Apr 10, 2017
Merged

Conversation

nchen63
Copy link
Contributor

@nchen63 nchen63 commented Apr 7, 2017

PR checklist

Overview of change:

TSLint was looking up the rule severity for all failures even if the rule was already assigned a severity in a previous file linting. This is a problem when there are multiple tslint.json files in different directories (TSLint uses Node resolution to determine which one applies) and if a rule is enabled and becomes disabled later. If failure for rule X occurs, then X is disabled, it will attempt to look up the severity of X again, and it won't be found

fixes #2476

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

[bugfix] Fixes "Severity for rule not found" error

@adidahiya adidahiya self-assigned this Apr 7, 2017
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.

Subtle bug in the severity rules when using nested tslint.json files
2 participants