Skip to content

Add debugName property to Rule#18289

Merged
1 commit merged into
masterfrom
rule-debug-name
Sep 6, 2017
Merged

Add debugName property to Rule#18289
1 commit merged into
masterfrom
rule-debug-name

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Sep 6, 2017

This helps when stepping through the formatter and seeing an unknown rule applied; this tells us what property name it was assigned to in rules.ts.
This replaces Rules#getRuleName which wasn't very convenient to access while debugging; it's easier if the rule itself has all the information needed. Removed some unused methods from rulesProvider that used that.

Also removed toString() which isn't used anywhere and isn't any more useful than a normal debug inspection.

@ghost ghost merged commit 697c4d3 into master Sep 6, 2017
@ghost ghost deleted the rule-debug-name branch September 6, 2017 21:46
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
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