Skip to content

RangeError: Found invalid rule names: header-trim. #24

Closed as not planned
@lien-dkseo

Description

@lien-dkseo
header-trim:
  - 2
  - always
> git commit
✔ No staged files matched
Unhandled exception:
RangeError: Found invalid rule names: header-trim. 
Supported rule names are: type-case, type-empty, type-enum, type-max-length, type-min-length, scope-case, scope-empty, scope-enum, scope-max-length, scope-min-length, subject-case, subject-empty, subject-full-stop, subject-max-length, subject-min-length, header-case, header-full-stop, header-max-length, header-min-length, body-case, body-empty, body-full-stop, body-leading-blank, body-max-length, body-max-line-length, body-min-length, footer-case, footer-empty, footer-leading-blank, footer-max-length, footer-max-line-length, footer-min-length, references-empty
#0      lint (package:commitlint_cli/src/lint.dart:38:5)
#1      CommitLintRunner.runCommand.<anonymous closure> (package:commitlint_cli/src/runner.dart:49:66)
#2      MappedListIterable.elementAt (dart:_internal/iterable.dart:442:31)
#3      ListIterator.moveNext (dart:_internal/iterable.dart:371:26)
#4      Future.wait (dart:async/future.dart:523:26)
#5      CommitLintRunner.runCommand (package:commitlint_cli/src/runner.dart:49:23)
<asynchronous suspension>
#6      main
<asynchronous suspension>
husky - commit-msg hook exited with code 255 (error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions