checksrc-all.pl: skip non-repository files#20439
checksrc-all.pl: skip non-repository files#20439vszakats wants to merge 1 commit intocurl:masterfrom
Conversation
Also replace single-quote with double-quote in external git commands for portability.
|
Doesn't this mean that new files won't get checked until they're committed? A developer could run all the tests, see that they're clean, then commit and push them upstream only to have CI complain. Could this instead check only C files that are a part of the build rather than those that are in git? How often are there actually C files in the curl source tree that devs want to skip? |
It means new files need to be Speaking for myself, some misc C files are in the source tree all the time: Test In my experience adding new C files happens less often than updating existing I expect this to allow running checksrc routinely or automatically, to catch That said, checksrc works differently with autotools: it's not using this script. edit: FWIW, outside a git sandbox, this script continues using the filesystem |
To avoid noise due to local C files when using automatic local checksrc
checks (e.g. via CMake
-DCURL_LINT=ONoption, orcurl-linttarget).Also replace single-quote with double-quote in external git command, for
portability.
Follow-up to 88ff396 #17882
Follow-up to e785e89 #17376
https://github.com/curl/curl/pull/20439/files?w=1