-
Notifications
You must be signed in to change notification settings - Fork 506
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
doc: improve new contributor documentation #1467
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1467 +/- ##
==========================================
- Coverage 82.44% 82.34% -0.10%
==========================================
Files 279 279
Lines 5458 5473 +15
Branches 886 888 +2
==========================================
+ Hits 4500 4507 +7
- Misses 767 773 +6
- Partials 191 193 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I'm honestly not sure why spell check is failing right now. Here's the error message:
I think it doesn't like that I renamed the contributor document? But it could bea network error? Re-running immediately did nothing so I'll give it another go tomorrow. if it doesn't work I can always revert the rename and put it in a separate PR. |
Hm, taking the file rename commit out does not appear to have resolved the problem. |
@anthonyharrison and @pdxjohnny I think I'm done writing for now. If you've got a bit of time, I'd appreciate a review from either or both you to make sure I didn't miss anything we want new contributors to know. |
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.
Then you can type
cve-binary-tool
on the command line and it will do the right thing. This includes some special code intended to deal with adding new checkers to the list on the fly so things should work seamlessly for you while you're building new contributions.
cve-binary-tool
should be cve-bin-tool
isort
sorts imports alphabetically and by typeblack
provides automatic style formatting. This will give you basic PEP8 compliance. (PEP8 is where the default python style guide is defined.)flake8
provides additional code "linting" for more complex errors like unused imports.
Should also mention pyupgrade
We usually merge pull requests into a single commit when we accept them, so it's fine if you have lots of commits in your branch while you figure stuff out, and we can fix your commit message as needed then. But if you make sure that at least the title of your pull request follows the Conventional Commits format that you'd like for that merged commit message, that makes our job easier!
In addition to conventional commits formatting, should we also mention that the Issue number should also be included in the commit message e.g. feat: Add great new feature (Fixes #1234)
GENERAL
I think we need to have something more in the Limitations section of the README which explicitly recognises some of the limitations of the tool. Running the tool does not guarantee that it will detect all of the vulnerabilities (it is dependent on the checkers which are available and if there isn't a checker for a specific library, vulnerabilities in that library will not be detected) nor does it guarantee that any of the reported vulnerabilities are present/exploitable. As with all tools there will be some false reporting, both positive and negative although this can be controllied via the triage report which allows reported CVEs to be suppressed. Probably also worth emphasising the importance of keeping the vulnerability database up to date (there is a statement to that effect in the offline HOW TO) but might be worth repeating here as well.
I believe I've addressed @anthonyharrison 's comments above on the cve-binary-tool typo, pyupgrade, and the github keywords for linking issues. I took a stab at the limitations section, but I feel like it could probably use another pass so I'm going to go ahead and file a separate ticket to look at that again: In the interest of having the new contributor doc easy for new contributors to actually read, I'm going to merge this before I head out on a short new year's vacation. But further feedback is always welcome! And yes, it looks like I may have triggered the spelling issue again; I'm going to ignore it for now -- the spelling issues were fixed but it's still trying to comment even though it shouldn't be? |
Ready for review now!