Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Announcing zsh-scan, a zsh-linter



Also added: reporting on exact missing setopt options – till now it was showing all recommended options, now it filters out the already given.

On Sat, 28 Jan 2023 at 20:26, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
Added warncreateglobal like checking but statically 

sob., 28 sty 2023, 10:19 użytkownik Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> napisał:
Hi,
a zsh linter with 7 checks currently:


The checks are:
- whether emulate -L -o … or setopt has been used,
- whether fun-name() { preamble exists within an autoload function (it's good practice to help Ctags recognizing the function),
- whether certain, useful options has been given, like localoptions, typesetsilent, extendedglob, etc.
- whether -F option has been given to zparseopts (toggles error detection),
- whether -U option has been given to autoload,
- whether 0=… assignment exists,
- and whether 0= has a standard form,
- also, if variable being array is appended without (…), ie. arr+=elem instead  of arr+=(elem)

Does someone have any idea of some new checks to add?

--
Best regards,
Sebastian Gniazdowski



--
Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author