From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: What a Zsh linter should do?
Date: Fri, 23 Nov 2018 16:17:09 +0100 [thread overview]
Message-ID: <CAKc7PVBrvLLF1w9WQeH2FjOSDV6gkyuPnG4nkG55B8kEmZPAWw@mail.gmail.com> (raw)
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
next reply other threads:[~2018-11-23 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-23 15:17 Sebastian Gniazdowski [this message]
2018-11-23 19:19 ` dana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKc7PVBrvLLF1w9WQeH2FjOSDV6gkyuPnG4nkG55B8kEmZPAWw@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).