| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Make sure the linter is happy and that all tests pass. Please, do not submit | ||
| patches that fail either check. | ||
|
|
||
| You can check if the linter is happy by running: |
There was a problem hiding this comment.
nit: I’d note that the linter is usually run as part of make test.
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax Agree, but if the tests are throwing errors that will disable you to properly lint the code.
Sorry, something went wrong.
There was a problem hiding this comment.
@diosney Yep, I’ve seen the thread that prompted this PR, and I’m in favour of having the information of how to run only the linter noted here – I’d just want to save folks the trouble of thinking they have to run the linter separately under normal circumstances.
I don’t feel too strongly about it, and if you want to keep it this way, I won’t be in the way of that. :)
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax Oy! I think I understand you now! I just though you didn't see this addition as useful. Sorry for that.
I will add your proposal right now.
Sorry, something went wrong.
There was a problem hiding this comment.
@addaleax Just added your proposal, can you check it? Thanks!
Sorry, something went wrong.
|
LGTM, thanks! |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
LGTM. A few nits that can be ignored or dealt with:
|
Sorry, something went wrong.
|
[x] Removed: I don't think linting is relevant to the BUILDING.md doc. So that change seems unnecessary. [x] Changed: test it directly might be better as run it directly since it is being contrasted with running tests. [x] Added: Maybe mention that the linter won't run if any tests failed, since that was the particular gotcha that resulted in this PR. Ideally, there shouldn't be any failed tests, but if there are and you want to run the linter separately, here's how to do it... Can you review the new changes? |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
Sorry, reworded line. Tell me if is OK now. |
Sorry, something went wrong.
|
LGTM as is. Final nit (which as always, you can ignore): I would go with wording like this:
This fixes a few very minor things (e.g., consistent verb tense). However, if there are reasons to prefer the current wording, that's fine. |
Sorry, something went wrong.
|
@Trott NP, changed to fix your nit. |
Sorry, something went wrong.
|
I know I said "final nit" before and I know this little bit is text I wrote, but I forgot that we try to avoid personal pronouns. So post-final nit: Get rid of you can, so:
to
Once again, with or without this change, LGTM! |
Sorry, something went wrong.
|
@Trott NP, I think this is how code review and PR moderating should be when a lot of people is contributing to the same project. Fixed first post-final nit, expecting a post-post-final nit to be reported 😄 BTW, can you take a look at #7527 nit-wise? |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Added clarification about the linter execution. PR-URL: #7534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc
Description of change
Right now there is no information in the building & testing docs on how to run the linter directly, which is useful so it can save time and separate tasks if one is checking only code style instead of checking the whole test suite.