add lints to changelog

This commit is contained in:
XeroOl 2025-07-12 16:44:32 -05:00
parent 722a3a6089
commit 3ce8cb9157
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,10 @@
# Changelog
### Features
* New lint for replacing (let [] ...) with (do ...)
* New lint `empty-let` for replacing (let [] ...) with (do ...)
* New lint `duplicate-table-keys` for detecting duplicate keys (eg. `{:a 1 :a 2}`)
* New lint `mismatched-argument-count` for ensuring function calls have the right argument count
* Disabled by default because it gives false positives when your arglist doesn't follow fennel's naming conventions
### Changes
* Updated to dkjson 2.8

View File

@ -310,7 +310,8 @@ the `file.diagnostics` field, filling it with diagnostics."
nil
last-required-argument
last-required-argument
(not= (string.sub s 1 1) "?")
(let [first-char (string.sub s 1 1)]
(and (not= first-char "?") (not= first-char "_")))
i)
(or vararg m))))
;; exception: (- a b) only needs 1 argument