Commit 39a63f1
committed
checkpatch: favor version of the script supplied by projects
Linux kernel is not the only project that uses checkpatch.pl for patch
validation, other projects (for example qemu) use it too, and their
version is different from the one used by the kernel. Also checkpatch.pl
changes from kernel version to kernel version when working with multiple
versions, so requiring a single version covering everything is not
practical.
Additionally running checkpatch.pl on projects that do not use it and do
not use kernel coding style is counter-productive.
To solve this issue make the linter locate and favor the version of
checkpatch.pl belonging to the project that file being linted belongs
to. Also, if checkpatch.pl is not accessible use "true" as the command
so that there are no errors/notifications and no diagnostic.1 parent a0718ad commit 39a63f1
1 file changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
14 | 49 | | |
15 | | - | |
| 50 | + | |
16 | 51 | | |
17 | 52 | | |
18 | 53 | | |
| |||
0 commit comments