-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 more checks to dangerfile.js #1553
Comments
These all sound great! (2) would be huge! For (3), logo minification, we could try running the logo through svgo and seeing if the output is the same. It's possible that would be more simply written as a unit test. |
Regarding (2)
What do you think about this? |
Yeah, although I originally suggested that as a danger rule, it isn't really a good candidate for that type of check because it really requires actually parsing/interpreting the code in order to do it robustly. Thinking about it as a linting rule (option 3) is a much better way to think about it 👍 |
After #2687 we have no |
Closing sounds good to me! |
A few suggestions for additional checks we might try to add:
assert
, suggestexpect
syntax..expectJsonTypes({ object: "literal" })
, suggest.expectJson({ object: "literal" })
instead./logo
, remind the submitter that it should be minified (for bonus points, maybe try to work out if it has been minified - are there any obvious checks we can do here?)master
, warn reviewers.I realise sometimes it makes sense to target another branch e.g:
node-8
but this project mostly doesn't use release banches and I think it is worth flagging to the reviewer if someone targets a PR straight atgh-pages
, like this: Delete me #1552 as we would probably want to change the target.If anyone else has thoughts on this based on points that often crop up in review, lets collect them here..
The text was updated successfully, but these errors were encountered: