zsh-workers
 help / color / mirror / code / Atom feed
* What a Zsh linter should do?
@ 2018-11-23 15:17 Sebastian Gniazdowski
  2018-11-23 19:19 ` dana
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2018-11-23 15:17 UTC (permalink / raw)
  To: Zsh hackers list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-23 19:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23 15:17 What a Zsh linter should do? Sebastian Gniazdowski
2018-11-23 19:19 ` dana

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).