-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ignore commented lines? #7
Comments
I'd add to @eyefodder's point that anything that |
Yes, it would be lovely to have the This would shift the burden of maintaining the filtering of comments and diff's (in case of Unfortunately there seems to be no |
BTW: The conventional-changelog 's commit-lint also seems to do this job only half way ... ignoring comments by hardcoding the comment character as |
Similar to git itself, we now add a cleanup step before processing the commit message. Check `git-commit` man page for the `--cleanup` option. In contrast to `git` we do "strip" and "scissors" in one step. closes conventionalcommit#7
Similar to git itself, we now add a cleanup step before processing the commit message. Check `git-commit` man page for the `--cleanup` option. In contrast to `git` we do "strip" and "scissors" in one step. closes conventionalcommit#7
Is it possible to get commitlint to ignore commented lines? For example this commit message:
will fail because there's not an empty line after
ops: update CommitLint allowed types
but given the rest of the lines are all commented out, I think it should pass? I'm also finding the same thing if e.g. some of the commented lines are longer than the rules (this often happens if the path to a modified file is long)Cheers!
The text was updated successfully, but these errors were encountered: