Skip to content

body-max-line-length and footer-max-line-length rules are not working on latest release #416

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

Closed
1 of 4 tasks
lucasrossini opened this issue Aug 22, 2018 · 1 comment
Closed
1 of 4 tasks

Comments

@lucasrossini
Copy link

As of #400, the body-max-line-length and footer-max-line-length rules, including it's documentation, has been added on master branch, while the latest available release of the package does not contain this options.

Expected Behavior

When I use the body-max-line-length and footer-max-line-length rules on my config file, the linter should run normally.

Current Behavior

When I use the body-max-line-length and footer-max-line-length rules on my config file, the linter raises the following error:

/usr/lib/node_modules/@commitlint/cli/lib/cli.js:103
	throw err;
	^

RangeError: Found missing rule names: body-max-line-length, footer-max-line-length. Supported rule names are: body-case, body-empty, body-leading-blank, body-max-length, body-min-length, body-tense, footer-empty, footer-leading-blank, footer-max-length, footer-min-length, footer-tense, header-max-length, header-min-length, lang, references-empty, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, signed-off-by, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, subject-tense, type-case, type-empty, type-enum, type-max-length, type-min-length
    at Object.<anonymous> (/usr/lib/node_modules/@commitlint/cli/node_modules/@commitlint/lint/lib/index.js:65:19)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Release a new version of the package using master branch as base.

Context

I want to set the body-max-line-length and footer-max-line-length rules.

Your Environment

Executable Version
commitlint --version 7.0.0
git --version 2.11.0
node --version 8.11.4
@marionebl
Copy link
Contributor

marionebl commented Sep 4, 2018

Thanks for the report - Should be part of the latest releases, e.g. >=7.1

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

No branches or pull requests

2 participants