Documentation

Using inch.json to include/exclude stuff

By default, Inch looks into lib/ and src/ for JavaScript source files.

You can configure which files and objects Inch considers by creating a file named inch.json in your project directory:

{
  "files": {
    "included": [
      "plugins/**/*.js"
    ],
    "excluded": [
      "plugins/vendor/sparkr/sparkr.js",
      "plugins/vendor/**/*.js",
      "!regexp:/vendor/"
    ]
  }
}

As you would expect, included sets an array of included files (or globs). This way you can point Inch to where your sources are, if they are not in lib/ or src/.

excluded sets an array of files (or globs) to exclude files from the evaluation.