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

What a Zsh linter should do?



Hello!
I'm wondering about functionality of a possible Zsh linter. Let's say
that the general idea is similar to shellcheck.

I think that the standard functionality – telling user to write a
nicer code – isn't a good one for Zshell. For example: telling user to
use `if' instead of [[ ... ]] && { ... ((1)); } || { ... } – I think
this is wrong for Zshell, where the "density" of code increases as
skills increase, and the programmer is e.g. being able to write a
"dense" one-liner utilizing :-, :+, :#, (M) instead of multi-line
if/else or even [[ ]] && { } || { }.

So what could a Zsh linter actually do?

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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