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

Linter for global function names #425

Merged
merged 12 commits into from Mar 19, 2020

Conversation

rambleraptor
Copy link
Contributor

Issue: #397

This creates a linter for global function names.

Couple things:

  1. I didn't know how comprehensive to make the docs + test suite. Putting in examples for every rule seemed excessively verbose.

  2. I purposefully didn't put in auto-fix functionality, since we're encouraging people to use the migrator. Does that seem safe?

@rambleraptor
Copy link
Contributor Author

@nex3

@rambleraptor
Copy link
Contributor Author

changes made!

@kristerkari
Copy link
Collaborator

Looks good!

@kristerkari
Copy link
Collaborator

Hmm.. maybe we should generate test cases for each function? If we don't test them then the test coverage will suffer as there will be so many lines that are not tested.

@rambleraptor
Copy link
Contributor Author

I had some spare time and put in a whole bunch more test cases. There's more that need to be put in, but this is a lot more than we had earlier.

@kristerkari
Copy link
Collaborator

I think that this is good now. I need to look through the changes once more before merging.

@kristerkari kristerkari merged commit 5ed71d5 into stylelint-scss:master Mar 19, 2020
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.

None yet

3 participants