-
Notifications
You must be signed in to change notification settings - Fork 152
refactor: automatically generate the rules-list in README #397
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like some descriptions changed now that we use the rules description directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR, it's fantastic to automate this process!
Seems like some descriptions changed now that we use the rules description directly.
I would say that's not a problem. Let's leave the new ones and improve them later if necessary (but looks good to me).
One thing I'd like to request is to check the generated rules list in a test similar to how we check it for recommended presets.
Was thinking about this, but not really sure if we should do so and how would be the best to do this 🤔 |
It could definitely be tricky with the formatting, but we need some way to automate this to avoid getting the rule list outdated. There are 2 options I can think of for now:
I prefer option 1 so we have more control about when to generate the rule list, and we also avoid injecting stuff at CI/CD. |
Looking at other repos, they don't have anything to test against this. The only thing I would do now is go over all descriptions and see if we want to change them to something more meaningful (like some of them were already in the README list). |
Well, not just when creating a rule, but also when updating or deleting an existing one. Not something critical, but definitely easy to forget about. Maybe we can add a check to the PR template to indicate "a rule was created/updated/deleted and rule list has been regenerated" or something like that. |
Let's create another PR to update our PR template, where we can explain more in depth which things need to be done when creating/updating a rule, ... |
I've created #400 for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pointed some descriptions that I think were better before. Can we update those before going ahead?
a162577
to
d394609
Compare
d394609
to
f922889
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok now, but it's tricky to review if you force-push after changes requested since I can't compare it against my last review 😞
🎉 This PR is included in version 4.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.