Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add "--config" option support #241

Closed
1 of 4 tasks
lc-soft opened this issue Jan 22, 2018 · 9 comments
Closed
1 of 4 tasks

cli: add "--config" option support #241

lc-soft opened this issue Jan 22, 2018 · 9 comments

Comments

@lc-soft
Copy link
Contributor

lc-soft commented Jan 22, 2018

I want move commitlint.config.js to config directory, but I cannot found option like commitlint --config myapp/config/commitlint.config.js.

Expected Behavior

$ commitlint --config myapp/config/commitlint.config.js

Current Behavior

$ commitlint --config myapp/config/commitlint.config.js
/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:50
		throw new Error(`unknown flags: ${arg}`);
		^

Error: unknown flags: --config
    at Object.unknown [as unknownFn] (/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:50:9)
    at setArg (/home/xxx/myapp/node_modules/meow/node_modules/minimist/index.js:56:23)
    at module.exports (/home/xxx/myapp/node_modules/meow/node_modules/minimist/index.js:120:17)
    at module.exports (/home/xxx/myapp/node_modules/meow/index.js:44:13)
    at Object.<anonymous> (/home/xxx/myapp/node_modules/@commitlint/cli/lib/cli.js:54:11)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)

Affected packages

  • cli
  • core
  • prompt
  • config-angular
@marionebl
Copy link
Contributor

This is a reasonable request, thanks for bringing this up.

Want to lend a hand?

This could be implemented like this:

1. Extend CLI to accept a new flag

cli/src/cli.js#L15

{
  // lines omitted
  string: ['config', 'cwd', 'from', 'to', 'edit', 'extends', 'parser-preset'],
}

2. Pass new flag to core.load

cli/src/cli.js#L99

const loaded = await core.load(getSeed(flags), {cwd: flags.cwd, file: flags.config});

3. Pass options.file to loadConfig in core.load

core/src/load.js#L81

**4. Pass options.file to cosmiconfig's configPath

@lc-soft
Copy link
Contributor Author

lc-soft commented Jan 29, 2018

@marionebl
OK, I will take some time to review the information you provided and try to solve this issue, but it may take a few days.

@marionebl
Copy link
Contributor

@lc-soft That is awesome, thank you. Do no hesitate to ask if you run into problems.

@lc-soft
Copy link
Contributor Author

lc-soft commented Feb 1, 2018

@marionebl

npx yarn test did not run successfully.

Console output
➜  commitlint git:(master) ✗ npx yarn test      
npx: 1 安装成功,用时 1.861 秒
yarn run v1.3.2
$ lerna run test --stream --parallel --include-filtered-dependencies
lerna info version 2.7.1
lerna WARN ECYCLE Encountered a cycle in the dependency graph.This may cause instability! Packages in cycle are: "commitlint-config-angular", "commitlint-config-lerna-scopes", "commitlint-config-patternplate", "@commitlint/cli", "@commitlint/config-angular-type-enum", "@commitlint/config-angular", "@commitlint/config-conventional", "@commitlint/config-lerna-scopes", "@commitlint/config-patternplate", "@commitlint/core", "@commitlint/ensure", "@commitlint/execute-rule", "@commitlint/is-ignored", "@commitlint/message", "@commitlint/parse", "@commitlint/prompt", "@commitlint/resolve-extends", "@commitlint/rules", "@commitlint/to-lines", "@commitlint/travis-cli", "babel-preset-commitlint", "@commitlint/test", "@commitlint/utils"
lerna info run in 23 package(s): npm run test
@commitlint/config-angular: $ exit 0
@commitlint/cli: $ ava -c 4 --verbose
commitlint-config-lerna-scopes: $ exit 0
commitlint-config-patternplate: $ exit 0
commitlint-config-angular: $ exit 0
@commitlint/config-conventional: $ exit 0
@commitlint/config-angular-type-enum: $ exit 0
@commitlint/core: $ ava -c 4 --verbose && ava "src/*.serial-test.js" --verbose
@commitlint/config-lerna-scopes: $ ava --verbose
@commitlint/execute-rule: $ ava -c 4 --verbose
@commitlint/config-patternplate: $ exit 0
@commitlint/ensure: $ ava -c 4 --verbose
@commitlint/travis-cli: $ ava -c 4 --verbose
@commitlint/message: $ ava -c 4 --verbose
@commitlint/parse: $ ava -c 4 --verbose
@commitlint/is-ignored: $ ava -c 4 --verbose
@commitlint/resolve-extends: $ ava -c 4 --verbose
@commitlint/to-lines: $ ava -c 4 --verbose
@commitlint/rules: $ ava -c 4 --verbose
@commitlint/prompt: $ ava --verbose
@commitlint/utils: $ exit 0
@commitlint/test: $ ava --verbose
babel-preset-commitlint: $ ava --verbose
@commitlint/cli:   ✖ Couldn't find any files to test
@commitlint/cli:   0 tests passed [10:54:01]\n  1 uncaught exception
@commitlint/cli: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/cli: error Command failed with exit code 1.
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: yarn run test
lerna ERR! 
lerna ERR!   ✖ Couldn't find any files to test
lerna ERR! 
lerna ERR!   0 tests passed [10:54:01]
lerna ERR!   1 uncaught exception
lerna ERR! 
lerna ERR! error Command failed with exit code 1.
lerna ERR! 
lerna ERR! $ ava -c 4 --verbose
lerna ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! 
lerna ERR!     at Promise.all.then.arr (/home/lc/Projects/commitlint/node_modules/lerna/node_modules/execa/index.js:236:11)
lerna WARN complete Waiting for 14 child processes to exit. CTRL-C to exit immediately.
@commitlint/config-lerna-scopes: module.js:442\n    throw err;\n    ^
@commitlint/config-lerna-scopes: Error: Cannot find module '@commitlint/test'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/config-lerna-scopes/test.js:1:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)
@commitlint/config-lerna-scopes:   ✖ test.js exited with a non-zero exit code: 1
@commitlint/config-lerna-scopes:   0 tests passed [10:54:06]\n  1 uncaught exception
@commitlint/config-lerna-scopes: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/config-lerna-scopes: error Command failed with exit code 1.
@commitlint/travis-cli: module.js:442\n    throw err;\n    ^
@commitlint/travis-cli: Error: Cannot find module '../lib/cli.js'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.resolve (internal/module.js:27:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/travis-cli/src/cli.test.js:11:21)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/@commitlint/travis-cli/node_modules/ava/lib/process-adapter.js:105:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/travis-cli/node_modules/ava/lib/test-worker.js:33:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/travis-cli:   ✖ src/cli.test.js exited with a non-zero exit code: 1
@commitlint/travis-cli:   0 tests passed [10:54:09]\n  1 uncaught exception
@commitlint/travis-cli: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/travis-cli: error Command failed with exit code 1.
@commitlint/core: module.js:442\n    throw err;\n    ^
@commitlint/core: Error: Cannot find module '@commitlint/test'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/core/src/load.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)
@commitlint/resolve-extends: module.js:442\n    throw err;\n    ^
@commitlint/resolve-extends: Error: Cannot find module '@commitlint/test'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/resolve-extends/src/index.test.js:3:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/core:   ✖ src/load.test.js exited with a non-zero exit code: 1
@commitlint/resolve-extends:   ✖ src/index.test.js exited with a non-zero exit code: 1
@commitlint/resolve-extends:   0 tests passed [10:54:10]\n  1 uncaught exception
@commitlint/resolve-extends: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/resolve-extends: error Command failed with exit code 1.
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-case.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/body-case.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-leading-blank.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/body-leading-blank.test.js exited with a non-zero exit code: 1
babel-preset-commitlint:   ✔ does not throw
babel-preset-commitlint:   ✔ returns an object
babel-preset-commitlint:   ✔ succeeds for a simple babel transformation (228ms)\n  ✔ produces valid values in plugins
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-empty.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/body-empty.test.js exited with a non-zero exit code: 1
babel-preset-commitlint:   4 tests passed [10:54:12]
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/body-max-length.test.js exited with a non-zero exit code: 1
@commitlint/core:   ✔ format › does nothing without arguments (181ms)\n  ✔ format › does nothing without .errors and .warnings
@commitlint/core:   ✔ format › returns empty summary of problems for empty .errors and .warnings\n  ✔ format › returns a correct of empty .errors and .warnings\n  ✔ format › uses appropriate signs by default\n  ✔ format › uses signs as configured
@commitlint/core: module.js:442\n    throw err;\n    ^
@commitlint/core: Error: Cannot find module '@commitlint/is-ignored'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/core/src/lint.js:2:1)\n    at Module._compile (module.js:541:32)\n    at loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n    at require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/core/src/lint.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/core:   ✖ src/lint.test.js exited with a non-zero exit code: 1
@commitlint/core:   ✖ index › exports format method Error thrown in test
@commitlint/core:   ✖ index › exports lint method Error thrown in test
@commitlint/core:   ✖ index › exports load method Error thrown in test
@commitlint/core:   ✖ index › exports read method Error thrown in test
@commitlint/message:   ✔ should return an empty string for empty input
@commitlint/message:   ✔ should return an empty string for empty input array\n  ✔ should filter falsy values
@commitlint/parse:   ✔ parses custom references (305ms)\n  ✔ uses custom opts parser (497ms)
@commitlint/to-lines:   ✔ should return an array for empty input (221ms)\n  ✔ should return an array for null input\n  ✔ should return an array for empty string input
@commitlint/parse:   ✔ returns object with raw message (694ms)\n  ✔ calls parser with message and passed options (703ms)\n  ✔ passes object up from parser function (703ms)\n  ✔ returns object with expected keys (703ms)\n  ✔ uses angular grammar (704ms)\n  ✔ supports scopes with / (546ms)\n  ✔ ignores comments (521ms)\n  ✔ registers inline # (521ms)
@commitlint/to-lines:   ✔ should split LF newlines (103ms)\n  ✔ should split CR+LF newlines
@commitlint/parse:   ✔ parses references leading subject (591ms)\n  ✔ throws when called without params (917ms)\n  ✔ throws when called with empty message (797ms)
@commitlint/ensure:   ✔ max-length › false for no params\n  ✔ max-length › true for a against 1
@commitlint/ensure:   ✔ max-length › false for ab against 0\n  ✔ max-length › true for a against 2\n  ✔ max-length › true for ab against 2
@commitlint/message:   3 tests passed [10:54:16]
@commitlint/parse:   13 tests passed [10:54:16]
@commitlint/to-lines:   5 tests passed [10:54:16]
@commitlint/is-ignored:   ✔ should return false when called without arguments\n  ✔ should return false when called with empty string\n  ✔ should return false for normal commit\n  ✔ should return true for branch merges\n  ✔ should return true for branch merges with newline characters\n  ✔ should return true for branch merges with multiple newline characters\n  ✔ should return true for merged PRs\n  ✔ should return true for revert commits\n  ✔ should ignore npm semver commits\n  ✔ should ignore npm semver commits with chore\n  ✔ should ignore npm semver commits with footers\n  ✔ should return true fixup commits\n  ✔ should return true squash commits
@commitlint/is-ignored:   13 tests passed [10:54:17]
@commitlint/ensure:   ✔ case › true for no params\n  ✔ case › true for empty
@commitlint/ensure:   ✔ case › true for lowercase\n  ✔ case › false for uppercase\n  ✔ case › true for lowercase on lowercase\n  ✔ case › false for uppercase on lowercase\n  ✔ case › true for uppercase on uppercase\n  ✔ case › false for lowercase on lowercase\n  ✔ case › true for sentencecase on sentencecase\n  ✔ case › false for lowsercase on sentencecase\n  ✔ case › false for UPPERCASE on sentencecase\n  ✔ case › true for Start Case on sentencecase\n  ✔ case › false for PascalCase on sentencecase\n  ✔ case › false for kebab-case on sentencecase\n  ✔ case › false for snake_case on sentencecase\n  ✔ case › false for camelCase on sentencecase
@commitlint/ensure:   ✔ enum › false for no params\n  ✔ enum › true for a against a\n  ✔ enum › false for a against b\n  ✔ enum › true for a against a, b\n  ✔ enum › false for b against a\n  ✔ enum › true for b against b\n  ✔ enum › true for b against a, b\n  ✔ enum › false for c against a, b
@commitlint/execute-rule:   ✔ does nothing without params
@commitlint/execute-rule:   ✔ returns plain config (193ms)
@commitlint/execute-rule:   ✔ unwraps promised config (208ms)\n  ✔ executes config functions (209ms)\n  ✔ executes async config functions (190ms)
@commitlint/execute-rule:   5 tests passed [10:54:18]
@commitlint/core: module.js:442\n    throw err;\n    ^
@commitlint/core: Error: Cannot find module '@commitlint/test'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/core/src/read.test.js:1:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n  ✖ src/read.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/type-empty.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/type-empty.test.js exited with a non-zero exit code: 1
@commitlint/core:   4 tests failed [10:54:18]\n  3 uncaught exceptions\n  index › exports format method\n  /home/lc/Projects/commitlint/@commitlint/core/src/lint.js:2\n   1: import util from 'util';                       \n   2: import isIgnored from '@commitlint/is-ignored';\n   3: import parse from '@commitlint/parse';         \n  Error thrown in test:\n  Error {\n    code: 'MODULE_NOT_FOUND',\n    message: 'Cannot find module \'@commitlint/is-ignored\'',\n  }\n  Object.<anonymous> (src/lint.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Object.<anonymous> (src/index.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Test.fn (src/index.test.js:4:19)\n  index › exports lint method\n  /home/lc/Projects/commitlint/@commitlint/core/src/lint.js:2\n   1: import util from 'util';                       \n   2: import isIgnored from '@commitlint/is-ignored';\n   3: import parse from '@commitlint/parse';         \n  Error thrown in test:\n  Error {\n    code: 'MODULE_NOT_FOUND',\n    message: 'Cannot find module \'@commitlint/is-ignored\'',\n  }\n  Object.<anonymous> (src/lint.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Object.<anonymous> (src/index.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Test.fn (src/index.test.js:9:17)\n  index › exports load method\n  /home/lc/Projects/commitlint/@commitlint/core/src/lint.js:2\n   1: import util from 'util';                       \n   2: import isIgnored from '@commitlint/is-ignored';\n   3: import parse from '@commitlint/parse';         \n  Error thrown in test:\n  Error {\n    code: 'MODULE_NOT_FOUND',\n    message: 'Cannot find module \'@commitlint/is-ignored\'',\n  }\n  Object.<anonymous> (src/lint.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Object.<anonymous> (src/index.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Test.fn (src/index.test.js:14:17)\n  index › exports read method\n  /home/lc/Projects/commitlint/@commitlint/core/src/lint.js:2\n   1: import util from 'util';                       \n   2: import isIgnored from '@commitlint/is-ignored';\n   3: import parse from '@commitlint/parse';         \n  Error thrown in test:\n  Error {\n    code: 'MODULE_NOT_FOUND',\n    message: 'Cannot find module \'@commitlint/is-ignored\'',\n  }\n  Object.<anonymous> (src/lint.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Object.<anonymous> (src/index.js:2:1)\n  loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n  require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n  extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n  Test.fn (src/index.test.js:19:17)
@commitlint/ensure:   ✔ index › rules export functions
@commitlint/core: error Command failed with exit code 1.
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/type-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/type-min-length.test.js exited with a non-zero exit code: 1
@commitlint/core: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/type-enum.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/ensure:   ✔ index › exports all rules (264ms)
@commitlint/rules:   ✖ src/type-enum.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/type-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/type-max-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/subject-min-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/type-case.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/type-case.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/test:   ✔ exports a git namespace
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-tense.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/subject-tense.test.js exited with a non-zero exit code: 1
@commitlint/test:   ✔ git namespace has bootstrap\n  ✔ git namespace has clone
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/test:   3 tests passed [10:54:22]
@commitlint/rules:   ✖ src/subject-max-length.test.js exited with a non-zero exit code: 1
@commitlint/prompt:   ✔ throws without params\n  ✔ throws with incompatible prompter
@commitlint/prompt:   ✔ returns input unaltered wihtout rules
@commitlint/ensure:   ✔ min-length › false for no params\n  ✔ min-length › true for a against 1\n  ✔ min-length › false for ab against 0\n  ✔ min-length › true for a against 2\n  ✔ min-length › true for ab against 2
@commitlint/prompt:   3 tests passed [10:54:23]
@commitlint/ensure:   ✔ not-empty › false for no params\n  ✔ not-empty › false for ""\n  ✔ not-empty › true for a
@commitlint/ensure:   39 tests passed [10:54:23]
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-empty.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/subject-empty.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-full-stop.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/subject-full-stop.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/signed-off-by.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/signed-off-by.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/subject-case.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/subject-case.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/scope-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/scope-max-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/scope-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/scope-min-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/scope-enum.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/scope-enum.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/scope-empty.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/scope-empty.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/scope-case.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/scope-case.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/lang.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/lang.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/references-empty.test.js:3:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/references-empty.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/ensure'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-case.js:1:1)\n    at Module._compile (module.js:541:32)\n    at loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n    at require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/index.js:2:15)\n    at Module._compile (module.js:541:32)\n    at loader (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:144:5)\n    at require.extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/babel-register/lib/node.js:154:7)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:16:3)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/index.test.js:5:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/index.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/header-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/header-min-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/footer-tense.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/footer-tense.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/header-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/header-max-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/footer-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/footer-min-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/footer-max-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3
@commitlint/rules:   ✖ src/footer-max-length.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/footer-leading-blank.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/footer-leading-blank.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/footer-empty.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/footer-empty.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-tense.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/body-tense.test.js exited with a non-zero exit code: 1
@commitlint/rules: module.js:442\n    throw err;\n    ^
@commitlint/rules: Error: Cannot find module '@commitlint/parse'\n    at Function.Module._resolveFilename (module.js:440:15)\n    at Function.Module._load (module.js:388:25)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/rules/src/body-min-length.test.js:2:1)\n    at Module._compile (module.js:541:32)\n    at extensions.(anonymous function) (/home/lc/Projects/commitlint/node_modules/require-precompiled/index.js:13:11)\n    at Object.require.extensions.(anonymous function) [as .js] (/home/lc/Projects/commitlint/node_modules/ava/lib/process-adapter.js:100:4)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.require (module.js:468:17)\n    at require (internal/module.js:20:19)\n    at Object.<anonymous> (/home/lc/Projects/commitlint/node_modules/ava/lib/test-worker.js:61:1)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:458:32)\n    at tryModuleLoad (module.js:417:12)\n    at Function.Module._load (module.js:409:3)\n    at Module.runMain (module.js:575:10)\n    at run (bootstrap_node.js:352:7)\n    at startup (bootstrap_node.js:144:9)\n    at bootstrap_node.js:467:3\n  ✖ src/body-min-length.test.js exited with a non-zero exit code: 1\n  0 tests passed [10:54:31]\n  33 uncaught exceptions
@commitlint/rules: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@commitlint/rules: error Command failed with exit code 1.
{ Error: Command failed: yarn run test

  ✖ Couldn't find any files to test

  0 tests passed [10:54:01]
  1 uncaught exception

error Command failed with exit code 1.

$ ava -c 4 --verbose
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    at Promise.all.then.arr (/home/lc/Projects/commitlint/node_modules/lerna/node_modules/execa/index.js:236:11)
    at process._tickCallback (internal/process/next_tick.js:103:7)
  code: 1,
  killed: false,
  stdout: '$ ava -c 4 --verbose\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n',
  stderr: '\n\u001b[31m  ✖ Couldn\'t find any files to test\u001b[39m\n\n  \u001b[32m0 tests passed\u001b[39m \u001b[90m\u001b[2m[10:54:01]\u001b[22m\u001b[39m\n  \u001b[31m1 uncaught exception\u001b[39m\n\nerror Command failed with exit code 1.\n',
  failed: true,
  signal: null,
  cmd: 'yarn run test',
  timedOut: false,
  exitCode: 1 }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@lc-soft
Copy link
Contributor Author

lc-soft commented Feb 1, 2018

OK, need to run npx yarn run build.

@lc-soft
Copy link
Contributor Author

lc-soft commented Feb 1, 2018

Why do not these newline string, but direct display \n ?

image

@lc-soft
Copy link
Contributor Author

lc-soft commented Feb 1, 2018

@marionebl

When I do not define an alias for "config" option, the npx yarn run commitlint --help command will to print errors. This is a bug?

yarn run v1.3.2
$ /home/lc/Projects/commitlint/node_modules/.bin/commitlint --help
/home/lc/Projects/commitlint/@commitlint/cli/lib/help.js:9
		}).map(function (entry) {
		  ^

TypeError: Cannot read property 'map' of undefined
    at /home/lc/Projects/commitlint/@commitlint/cli/lib/help.js:9:5
    at Array.map (native)
    at module.exports (/home/lc/Projects/commitlint/@commitlint/cli/lib/help.js:4:56)
    at Object.<anonymous> (/home/lc/Projects/commitlint/@commitlint/cli/lib/cli.js:57:76)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@marionebl
Copy link
Contributor

When I do not define an alias for "config" option, the npx yarn run commitlint --help command will to print errors. This is a bug?

Jep, that is the internal help text generator miss-firing. Works with the g alias, right?

Why do not these newline string, but direct display \n ?

Not sure, might be lerna/yarn/ava interfering

OK, need to run npx yarn run build.

I should document that, tripping over it myself everytime I touch cli

@marionebl
Copy link
Contributor

Released via 6.1.0, thanks @lc-soft!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants