
Git Commit Message Plus
A git commit message highlighter being nicer than the built-in one.
Highlighting inspiration from https://cbea.ms/git-commit.
Features
- Inform about
git commit -v if it isn't being used
- Proper
git commit -v diff highlighting even when running git in
not-English.
- Highlight file names and what's happening to them
- Report > 72 characters subject lines as errors
- Report > 50 characters subject lines as warnings
- Report not-capitalized subject lines as errors (with Quick Fix)
- Report errors for trailing punctuation
- Report errors for non-blank second lines
- Quick Fixes for certain diagnostics

Internal
TODO
- Highlight current branch name in the Git metadata
- Mark commit message subject line with:
- DONE:
meta.scope.subject.git-commit
meta.scope.subject-after-50.git-commit from character 51 and onwards
meta.scope.subject-after-72.git-commit from character 73 and onwards
- Validate code formatting in CI and fail on violations
- Fail CI on linter warnings
- Have unit tests that don't launch VSCode
- Move all tests under the same top subdirectory
Development
To run the unit tests:
npm install && npm test
To install into VSCode:
npm run package
- In VSCode:
- Click Extensions
- Click the ... menu in the top right corner
- Click Install from VSIX...
To check highlighting in VSCode: "Developer: Inspect Editor Tokens and Scopes"
To publish a new version:
npm run publish
| |