Commit b479ac9
committed
Run Cppcheck only when source files change
Static analysis is essential for C/C++ projects, but running 'fmtscan'
can significantly slow down Cppcheck. The git pre-commit hook detects
staged files and run Cppcheck only if C/C++ files have been modified,
resulting in a noticeable reduction in analysis time.
Change-Id: I872c0b6fc9008cc2b3c96283e458b25cf506eb161 parent 407d43e commit b479ac9
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
0 commit comments