diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-04-14 12:41:50 +0100 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2023-04-14 12:41:57 +0100 |
commit | 5465adcbab29b57d497d7260c6f85ddbf76c43ab (patch) | |
tree | 4bd392d8057ec3b1178e5ff878e43fe8a8f974e3 | |
parent | c15939c1f7479be6c1e0a73126b4d62aece28f74 (diff) | |
download | rneovim-5465adcbab29b57d497d7260c6f85ddbf76c43ab.tar.gz rneovim-5465adcbab29b57d497d7260c6f85ddbf76c43ab.tar.bz2 rneovim-5465adcbab29b57d497d7260c6f85ddbf76c43ab.zip |
fix(lint): use tbl_contains
-rw-r--r-- | scripts/lintcommit.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lintcommit.lua b/scripts/lintcommit.lua index 7f3dffd22c..f9a4631b7e 100644 --- a/scripts/lintcommit.lua +++ b/scripts/lintcommit.lua @@ -88,7 +88,7 @@ local function validate_commit(commit_message) -- Check if type is correct local type = vim.split(before_colon, "(", {plain = true})[1] local allowed_types = {'build', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'test', 'vim-patch'} - if not vim.list_contains(allowed_types, type) then + if not vim.tbl_contains(allowed_types, type) then return string.format( [[Invalid commit type "%s". Allowed types are: %s. |