Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
What a Zsh linter should do?
- X-seq: zsh-workers 43838
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: What a Zsh linter should do?
- Date: Fri, 23 Nov 2018 16:17:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=ZkN7isSHrAT0uyiQzhgdLd1WIHu0iup10VJCEZOgtBI=; b=vIpo4ErXM9k2c4HeKCpBl3CLI2Wn2r9BFOqle45Q7ZhwSLdcT7/6cynIo49Kq658lt FNDvEDvoK9OSyf5tkwLv8zpvfjzprxlJQ04bHfFy+TUewGR0Q1QztyQMEpqHXYncpo+n 3Xy2dXo2NuygUVQ4tvyWh2WKzZVR3IlzYUMWTstj4DW1nB38yyHI6XGgc/ptnFoMiZgi iZjgLLEZBSnAdkag6ZseLa+Q+KgIokDvawEUIEWXjkFug5F6/np6s8yoOjwSt8iWR/2z KxHftRuc7ERNGzks/nxcRIORe3CwfK1I+J6VtHLw+jQ/xCvLbd2I+i/zq1+J7t4bf7AQ +Z9Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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