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

Add a reportDescriptionlessDisables flag #4907

Merged
merged 3 commits into from Aug 31, 2020
Merged

Conversation

jathak
Copy link
Contributor

@jathak jathak commented Aug 27, 2020

Which issue, if any, is this issue related to?

Fixes #4868.

Is there anything in the PR that needs further explanation?

This now adds the description, if any to the DisabledRange objects and then reports any ranges without descriptions if the flag is passed. For adding the new flag, I mostly mirrored what already exists for needless and invalid-scope disables, so let me know if I missed anything.

@jathak jathak requested a review from nex3 August 27, 2020 20:53
Copy link
Contributor

@nex3 nex3 left a comment

Choose a reason for hiding this comment

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

Approving, looking for one more approver with deeper stylelint background.

lib/__tests__/descriptionlessDisables.test.js Show resolved Hide resolved
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

Thanks!

@jeddy3 jeddy3 merged commit 0a17b64 into master Aug 31, 2020
@jeddy3 jeddy3 deleted the descriptionless-disables branch August 31, 2020 10:50
@glen-84
Copy link
Contributor

glen-84 commented Aug 31, 2020

@jathak I think this is missing documentation here.

@jeddy3
Copy link
Member

jeddy3 commented Aug 31, 2020

I think this is missing documentation here.

It's something I should have caught in review.

I'll create a new issue for it.

m-allanson added a commit that referenced this pull request Sep 3, 2020
* master: (34 commits)
  Update CHANGELOG.md
  Fix double-slash disable comments when followed by another comment (#4913)
  Update CHANGELOG.md (#4916)
  13.7.0
  Prepare 13.7.0
  Prepare changelog
  Update dependencies
  Update CHANGELOG.md
  Deprecate *-blacklist/*-requirelist/*-whitelist (#4892)
  Fix some path / glob problems (#4867)
  Update CHANGELOG.md
  Add a reportDescriptionlessDisables flag (#4907)
  Fix CHANGELOG.md format via Prettier (#4910)
  Fix callbacks in tests (#4903)
  Update CHANGELOG.md
  Fix false positives for trailing combinator in selector-combinator-space-after (#4878)
  Add coc-stylelint (#4901)
  Update CHANGELOG.md
  Add support for *.cjs config files (#4905)
  Add a reportDisables secondary option (#4897)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add reportDescriptionlessDisables option
4 participants