How to run cpplint on recursively on multiple folders?


You can spec­ify path to both the direc­to­ries as argu­ments. In this exam­ple, they are spec­i­fied as src­Files and appFiles.

const cppLint = path.resolve("cpplint.py"); // get the path to cpplint.py
const srcFiles = path.resolve(__dirname, "src");
const appFiles = path.resolve(__dirname, "app");

const flags = '--filter=-runtime/references --recursive --quiet --extensions=cpp,h,cc,mm,m --counting=detailed';

node.shell.exec(`python ${cppLint} ${flags} ${srcFiles} ${appFiles}`);


You may also like...