Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Ignore directories with apigeelint

We're trying to incorporate apigeelint into our CI/CD process.

Part of this process is an "npm install" where our proxy Node code resides (e.g. apiproxy/resources/node). Executing this creates "node_modules" in this location and pulls down all dependencies. This is desired.

In the next phase of our process, we run apigeelint on the apiproxy directory. Since that directory now contains "node_modules" (a few directories down), *everything* is considered for linting by apigeelint, as opposed to *just* our proxy JS code. This is not desired.

Is there a way we can ignore one or more directories with apigeelint? Similar functionality exists in other linting tools like eslint - actually, eslint by default ignores "node_modules".

Any help on this would be greatly appreciated. Thanks!

0 8 871
8 REPLIES 8