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

Ensures all log calls include node #2073

Merged
merged 105 commits into from
Sep 7, 2021
Merged

Ensures all log calls include node #2073

merged 105 commits into from
Sep 7, 2021

Conversation

scalvert
Copy link
Member

@scalvert scalvert commented Aug 20, 2021

Partial implementation of #2072.

While this PR looks huge (and it is!), it's mostly procedural changes related to each rules' log calls. I've subdivided each one into a separate commit in which I made the change, independently ran each test to verify correctness, and committed. The main change to take a look at is the logic in log, where we're now merging with potentially overridden values passed in to log.

Additionally, a new deprecation warning has been added to log to ensure consumers can migrate their rules in plugins without concern for them breaking. If using incorrect log usage in local rules, this deprecated usage will throw during tests.

lib/rules/_base.js Show resolved Hide resolved
lib/rules/_base.js Outdated Show resolved Hide resolved
lib/rules/_base.js Outdated Show resolved Hide resolved
lib/rules/attribute-indentation.js Show resolved Hide resolved
lib/rules/_base.js Outdated Show resolved Hide resolved
lib/rules/attribute-indentation.js Show resolved Hide resolved
Co-authored-by: Robert Jackson <me@rwjblue.com>
@scalvert scalvert requested a review from rwjblue August 31, 2021 16:05
@scalvert
Copy link
Member Author

@rwjblue every time I accept your suggestion I'm cursed with a Prettier error. I wish GH could just Pretterify the suggestions!

@scalvert
Copy link
Member Author

scalvert commented Sep 1, 2021

@rwjblue I think we're GTG.

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

Successfully merging this pull request may close these issues.

None yet

2 participants