From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28469 invoked from network); 28 Jan 2023 09:20:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Jan 2023 09:20:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674897653; b=i6E9kdn1nZIMsnOdkPpEXHC9bWxiRMjApF0aFXMZC3oeYVDCOF6xsQiZKlsXsfFlWea53WhI8n IiV5dJLhyMmJafuHa+MhS91K/5HnqqJXBG5mozuHZoXaTh8UMdOLidup2JPUBf8sZXSo3pm8h/ 2IT7a/a0OlwElR3DVwHXGrFm4s42ozwDbwoyj71nSz9TZZ2sjj/YR7y1YDxAaDWlEt2/TNiA0h Y689vmiQLC1oS0ce6N+1IJNwa1hUBMO6RByCY8a2fHaV0/78qs9N6uaXAQWNjJz6kELMYCeP1m YkZeJssF9TgZZCbQ4X/oM8YsBBaJNSRxXNxuq27rXPp27Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674897653; bh=HAMSu6/zNx+Ih9R5F/Xq1B5C2+TZEVXtBF7ESiCCjN8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=hCZGUJXdaLRaoAnjKcegJNsrCd6gm32LJhwJj3NqvE+yCSX54U8hRaNx7sFVcmhFQMFAaVStis 7AdruI9W8bWw8QuG5olIHysELc+yGVhW6roiBela2uwI6nH7sNJD5r4oCnAsr2X8/ya4Lvhw4Z sttpmphzySyOM3zK1g/3kK2r91+LxEeHlUN1QFcI/PAuH8chA+TxFhQ5QM3bZ/uHmJYSTZDXxc hHNpBavjP9tcaNsxlHoNECSY1NoeFceDAHCVUZZEzAwjrndWFjh4bbPsqg0WdP6hWFkrObgDgM 6t+s9lnoKTIiHvIb9+Ze3daYtLHTgXpSckuXcG88Qx/+zA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=kGikBj5HNlpl6F8SnzhtmKWdLa7vFTvCr3A5fhltNlQ=; b=AfCdvhacjsrr4c7yUUgE2lhKZj QiOvJGDUoCvi8eL5nSQPDHmc7UXrTLSllbzfvzIvG/rV7NMM5hLOQOf71YJlGhLI0OGedaPxEvqdm dRQ6Zaye5j8dNaJLzIonZ1J9fL2AIjb5HkAT03krDa5Ra3CX8Z1jTORmI5QwzouyoxyFHQJoB7ZUV XSOxNNks8GkXyEF08dzOdD9dLEXObIRnXARmyhZIkHvGqIvFVZnii+YvveUA+nR5FgdbUpjHTTKB4 1FcsVEBc57aGsQ6PI8EY5PYsiG3CVbBWBEVSV7B0k9bi7eHEu20i8wSVAWQFJkjazEgj5+YmlB2w0 BrjvaJ4Q==; Received: by zero.zsh.org with local id 1pLhOF-0009X0-Mj; Sat, 28 Jan 2023 09:20:51 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f41.google.com) smtp.remote-ip=209.85.167.41; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f41.google.com ([209.85.167.41]:36676) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pLhNM-0008pP-OG; Sat, 28 Jan 2023 09:19:57 +0000 Received: by mail-lf1-f41.google.com with SMTP id j17so11866933lfr.3 for ; Sat, 28 Jan 2023 01:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=kGikBj5HNlpl6F8SnzhtmKWdLa7vFTvCr3A5fhltNlQ=; b=Jo0BaYUyF6LQ0seIvrSLtpLSP73ZwXPzLHFgeuDcAZy+xlap2DR5cxVWgBPmmLEGVP ouzl0J5+njepwLevToGca5ImJfEP59yyGyrL5FFbVgx9bekRQItZlZHQz8+8KBqLqa4D HphzojyZmj+etSIajIM5HwVR6Up0lZyl9BBI2+goHvpEOJIAuqTsEKviIZziGGYqu1xf IbQOMytDvmt9LjQ8TlD2eExyJNw/zO0ufeUlMG+et0V5helmb7ETyCUca63r0NXziDzo KCwbe++isIz1kcICsEvn37FJxPnjwS81CgWbXMCdEnpzPXaC0SzFA59m22FnTtTF9EtY KRrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kGikBj5HNlpl6F8SnzhtmKWdLa7vFTvCr3A5fhltNlQ=; b=PX0ZLu/CxnZOB+Ky12byIQbNw0lpcBOTj6giqZuUYU0RcS7nwgdie2XJ/suKcdkqBF 2h4yR7ASqWxgpu/Og05MYiX5pSE4NuWcfb6msYcLl9RciDT6Q3A013K9+ZxeBgWYONUu w79wvRqEmrqdVVgUuEH6mnSpIdaMVACUkCc1/zS6N+5v41yWVOwP4REbWGUXelB1pgf4 2Ona0vQmm42ob1LR3r28mprNb53x09pWavfTX6zfpSJ97F/Q6ctcmMFYbGtoi0MFpUl+ yEjQPVJV07tqKYvXK9GRL5ap4aXzsIZVNkPEmaxuoOYyyspwOh8a/3xlycq/4bJ6B41X U9XA== X-Gm-Message-State: AFqh2ko24oBOZKYQFD2yVt5jfRjjNLdpjNrks2h3mAN3Q2a7rPC6tehA qWX+Z1vkTaPRFPS7nv06xd+u0KiTM9trKvv6nDaaM2GJ X-Google-Smtp-Source: AMrXdXv4Pr3VkvQHzHG525IyKvZ3Z3GUX0H7FYbXtpQIqedPxgcvN4/lSI/1uWerrAvn7LAsEpQnRrh6uNdvHlf63Dg= X-Received: by 2002:ac2:44b1:0:b0:4b5:7720:5fe6 with SMTP id c17-20020ac244b1000000b004b577205fe6mr2266200lfm.60.1674897595800; Sat, 28 Jan 2023 01:19:55 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sat, 28 Jan 2023 09:19:29 +0000 Message-ID: Subject: Announcing zsh-scan, a zsh-linter To: Zsh Users Content-Type: multipart/alternative; boundary="0000000000003ba30205f34f7cc9" X-Seq: 28837 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --0000000000003ba30205f34f7cc9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, a zsh linter with 7 checks currently: https://github.com/psprint/zsh-scan The checks are: - whether emulate -L -o =E2=80=A6 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=3D=E2=80=A6 assignment exists, - and whether 0=3D has a standard form, - also, if variable being array is appended without (=E2=80=A6), ie. arr+= =3Delem instead of arr+=3D(elem) Does someone have any idea of some new checks to add? --=20 Best regards, Sebastian Gniazdowski --0000000000003ba30205f34f7cc9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
a zsh linter with 7 checks currently:

https://githu= b.com/psprint/zsh-scan

The checks are:
- whether emulate -L -o =E2=80=A6 or se= topt has been used,
- whether fun-name() { preamble exists w= ithin an autoload function (it's good practice to help Ctags recognizin= g 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=3D=E2=80=A6 assignment exists,
- and whether= 0=3D has a standard form,
- also, if variable being array i= s appended without (=E2=80=A6), ie. arr+=3Delem instead=C2=A0 of arr+=3D(el= em)

Does someone have any idea of some n= ew checks to add?

--
Best regards,
<= div>Sebastian Gniazdowski

--0000000000003ba30205f34f7cc9--