summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/lintcommit.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-16test: lint naming conventions #39117Justin M. Keyes1
Problem: Naming conventions are not automatically checked. Solution: Add a check to the doc generator. Eventually we should extract this somehow, but that will require refactoring the doc generator... Note: this also checks non-public functions, basically anything that passes through `gen_eval_files.lua` and `gen_vimdoc.lua`. And that's a good thing.
2026-03-29ci(lintcommit): allow "NVIM vx.y.z" commit message #38563Justin M. Keyes1
2025-07-23refactor(lua): use vim.system #34707Yochem van Rosmalen1
2024-06-26ci(lintcommit): allow capitalized letter after colon in description (#29480)zeertzjq1
2024-06-07revert(commitlint): stop ignoring "fixup" commits (#29184)dundargoc1
This reverts 2875d45e79b80878af45c91702914f4f0d0e3dca. Allowing lintcommit to ignore "fixup" makes it too easy to fixup commits to be merged on master as the CI won't give any indications that something is wrong. Contributors can always squash their pull requests if it annoys them too much.
2023-12-04build: enable lintlua for scripts/ dir #26391Justin M. Keyes1
Problem: We don't enable stylua for many Lua scripts. Automating code-style is an important tool for reducing time spent on accidental (non-essential) complexity. Solution: - Enable lintlua for `scripts/` directory. - Specify `call_parentheses = "Input"`, we should allow kwargs-style function invocations.
2023-11-30ci(lintcommit): fix empty and period check with multiple colons (#26312)zeertzjq1
2023-04-22ci(lintcommit): fix error outputdundargoc1
Using print() alone doesn't work properly, toggling the verbose option is still required.
2023-04-22ci(lintcommit): use nvim -lLewis Russell1
2023-04-14fix(lint): use tbl_containsLewis Russell1
2023-04-14feat(lua): vim.tbl_contains supports general tables and predicates (#23040)Christian Clason1
* feat(lua): vim.tbl_contains supports general tables and predicates Problem: `vim.tbl_contains` only works for list-like tables (integer keys without gaps) and primitive values (in particular, not for nested tables). Solution: Rename `vim.tbl_contains` to `vim.list_contains` and add new `vim.tbl_contains` that works for general tables and optionally allows `value` to be a predicate function that is checked for every key.
2023-04-12ci(lintcommit): allow colon not followed by space in description (#23035)zeertzjq1
2023-03-22ci(lintcommit): allow colon in commit message scopeAnkit Goel1
Close #21464
2023-02-16fix(lintcommit): capitalized description #22282Justin M. Keyes1
Problem: The "Capitalized" check should only check the first word of a description. Solution: Specify "^".
2023-02-13ci(lintcommit): allow UPPER_CASE first word (#22245)Justin M. Keyes1
2023-02-10ci: simplify lintcommit output (#22204)dundargoc1
- Suggest reading CONTRIBUTING.md once, not for each commit failure - Suggest using "fix" type if none of the provided types are appropriate - Remove "dist" type. It's rarely used and can be replaced by using the "build" type
2022-10-24ci(lintcommit): enforce common scope names #20393dundargoc1
This is useful to ensure related commits aren't spread out when generating the changelog.
2022-05-17feat(lintcommit): remove "chore", add "dist" #18594dundargoc1
"chore" is never necessary, choose "fix" or "feat" if nothing else applies.
2022-05-13ci(commitlint): ignore "fixup" commits #18556dundargoc1
2022-02-11ci(commitlint): allow first non-space character to be a quoteDundar Göc1
2021-11-27chore: fix typos (#16361)dundargoc1
Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: István Donkó <istvan.donko@gmail.com> Co-authored-by: Julian Berman <Julian@GrayVines.com> Co-authored-by: bryant <bryant@users.noreply.github.com> Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com> Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com> Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com> Co-authored-by: Jesse Wertheim <jaawerth@gmail.com> Co-authored-by: dm1try <me@dmitry.it> Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl> Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com> Co-authored-by: Brede Yabo Sherling Kristensen <bredeyabo@hotmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: István Donkó <istvan.donko@gmail.com> Co-authored-by: Julian Berman <Julian@GrayVines.com> Co-authored-by: bryant <bryant@users.noreply.github.com> Co-authored-by: Michael Lingelbach <m.j.lbach@gmail.com> Co-authored-by: nlueb <9465658+nlueb@users.noreply.github.com> Co-authored-by: Leonhard Saam <leonhard.saam@yahoo.com> Co-authored-by: Jesse Wertheim <jaawerth@gmail.com> Co-authored-by: dm1try <me@dmitry.it> Co-authored-by: Jakub Łuczyński <doubleloop@o2.pl> Co-authored-by: Louis Lebrault <louis.lebrault@gmail.com>
2021-10-14ci: allow older git versions when using lintcommitDundar Göc1
More specifically, use "git rev-parse --abbrev-ref HEAD" instead of "git branch --show-current" to get current branch.
2021-09-26ci(lintcommit.lua): replace third-party commitlint #15747dundargoc1
2021-09-19build(lint): commit linter #15725Justin M. Keyes1
Example test failure: $ nvim -es +"lua require('scripts.lintcommit')._test()" [ FAIL ]: expected=true, got=false input: ":no type before colon 1" [ FAIL ]: expected=true, got=false input: "ci: tab after colon" Example main({trace=true}) output: $ nvim -es +"lua require('scripts.lintcommit').main()" run: { "git", "branch", "--show-current" } run: { "git", "merge-base", "origin/master", "master" } run: { "git", "merge-base", "upstream/master", "master" } run: { "git", "rev-list", "89db07556dbdce97c0c150ed7e47d80e1ddacad3..master" } run: { "git", "show", "-s", "--format=%s", "d2e6d2f5fc93b6da3c6153229135ba2f0b24f8cc" } Invalid commit message: "buildlint): commit linter #15620" Commit: d2e6d2f5fc93b6da3c6153229135ba2f0b24f8cc Invalid commit type "buildlint)". Allowed types are: { "build", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "test", "chore", "vim-patch" } See also: https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#commit-messages https://www.conventionalcommits.org/en/v1.0.0/
2021-09-19build(lint): commit linter #15620Justin M. Keyes1
2021-09-19build(lint): commit linter #15620dundargoc1