add lints to changelog
This commit is contained in:
parent
722a3a6089
commit
3ce8cb9157
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user