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 15732 invoked from network); 28 Jan 2023 20:27:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Jan 2023 20:27:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674937628; b=gVR4qEtBdcMX3n8uAfllrn0XBHp+JnMC1ZlXo99yxBVrRLbmTk30kKMBEZYY7rrQP3FOQzudGp H1n9k+iRBNm5vNOxaDoEHIOnxnWqeMjxjfru/SdrezPxl3yfliuDZJ1KkFWwrWaP23j11ik6JW w1O4HBDHCgyWnRCJYHFiwvI5ZPLrgFEk8MC66tm079/jRzWwy0VEQ6NxTjgDg0eaHZMeNNuN4W MaX0ot6tbKA8aHnr5wzqvf04F9Nnm8MwmGCKc2tIcak4h6Rw0gcRO/4qnEQCGClwYJOc4EN0GC kbLqxFtvSgjmSKF0mMoajp5t25PkSkkofXmpTf0F8THcdw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f180.google.com) smtp.remote-ip=209.85.208.180; 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=1674937628; bh=0q6XvzYEHgigMhebBBKKQN+CTTZg7w9OonAeP6UKHFg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=Ut85gbYyA/ft/noGN7GBoUSa9DL5YfuQywHktcU281BBAMg7IfE47ERV3PO6jsGt+K4qQy4G8H 4QrbM6HNVdIu5Ye1w/6zs8Cn1XFRgP45OBakPc5trFqxwaIK6zl4gQqY9KjQm7Ie+V3uteMVQ/ 2aS0xfgEHZfutfR21p6gIpDAhu4nD58ODrlnbz8O/fCW2RW4G96HYcbXxfWyUO0vvpzIHNDUAL 0Z7j9aZZnxI568GLaYlarLP8W6q2fq2W4lH4ychWDxUxEpwcVCtn58c0pAeGpCLvQuTmKbipz3 uwuS8VuTAltGFGoxuvu9hRTgrevTA0MimCUFVsLWGwQKeQ==; 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:In-Reply-To:References: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; bh=n93WiLgaGujArHN/pZcc7iJiEil6Y3UKJp7U2zX7+vM=; b=m99zl66mTEt83GOv9TNnmpOWhz dlQ/jpPao9fm5IHqtUwHT9wTwaYw9Mp2Q8+0TcyEkCEOkiW196eRzb//jeTersBJ3Oy55JehuZt35 XhNTFXk4pf+EKTdIXmm4TcAfZ7XTKgH1Wv44LHQR/0QaTWZu4UsLBpdkcFfx3EtRurAGud26kVlD+ 0EaYQQv+LHFejmPPa7YtN2GhMkfBfQQKtflFoHayk6OBus03OT1bC14Z2+mf7usYp7Ib50dRGeThI EuBefIfmRccb0ktGCzPGefgBzpH7XaU9S5wj07NI+0RkH2w1gXnNDwbO0gaMmlNVplTdO1N1khAeq w2zd+aJw==; Received: by zero.zsh.org with local id 1pLrn1-000124-Qw; Sat, 28 Jan 2023 20:27:07 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f180.google.com) smtp.remote-ip=209.85.208.180; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f180.google.com ([209.85.208.180]:33293) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pLrmD-0000M4-Kz; Sat, 28 Jan 2023 20:26:18 +0000 Received: by mail-lj1-f180.google.com with SMTP id a37so9106200ljq.0 for ; Sat, 28 Jan 2023 12:26:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=n93WiLgaGujArHN/pZcc7iJiEil6Y3UKJp7U2zX7+vM=; b=T1zKJyVVrlveG6Xy8x9wxjCIN3eIglgT7DEzhHElygV60s1GK8K2ndSywGuaAkYTgK 3weenRWuu/kmU7FEXNNgtrSyY1bYA3WCtjkjT3Yd359Tmx6I398dDznA0H1i/hx+wMXL Fk7gKddzL5IJFNE8C6gL0osKPopgEnAWuof/EGMomkj7bOaeb6o+eggyilkULohO4X15 k1K5k7dMqAzzoRc9R01yHsKtlr1L+9nmAeqYR37wzflq1ZPQDIhgdB+CxsAv9XF2Pys+ evVkxGmM4LHiatZaI1xILKBKNUQmc1POBkrXZQ8/WgDCEow2wiHgE1zBlvtH4kiujKAE rs+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n93WiLgaGujArHN/pZcc7iJiEil6Y3UKJp7U2zX7+vM=; b=WuZneI4RMMQcMERd+WyGMZicJfbN7HCble0oXf6O26l/LeFAI6i/UvrGOwsu/Rjkxw ZLMsVKfNdm8Es5qIBprMmjw3hT3MCo7/T7tkRylIkIsaXx1khXUZJyAi2cNSIpi1GIro 7o7TM92aTjG8a9CrsWg1bVLA9wDu8HM1RYCmYpFAZZUZtnO6TuYc9sKjLaabLC0QG53H 1BF/S/XZL4CKDWnO6sw8QW06a4NjxZYPvJBWGBEtFcWRJsNp2/qYIcVgT3wqcxiziJIL rKrFHSGt37RsJfs78M5194BwW+3QgY059j+5Sn/PQU9LMNMeUIXZc+Ljbqw1cr8YTwcU pqSg== X-Gm-Message-State: AO0yUKU1xvIofyr/hLng8koV/J4GMPY6hRmBw57Vm6cCF7aiLawVcdg4 fEyRcenHsKVyIXgsEY4oRq8VwjBCbZdHGAbJGDqAJSNS X-Google-Smtp-Source: AK7set9BJwOh8lCQdkNyB3sAfAHWVIp079aNe9HuktRvr0PqD4hXsLN2NfTE5eIJX878qQVSgkPtJm7mM9Q8IKAiLl4= X-Received: by 2002:a2e:a162:0:b0:28d:e4ec:15ee with SMTP id u2-20020a2ea162000000b0028de4ec15eemr1427286ljl.275.1674937576468; Sat, 28 Jan 2023 12:26:16 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sat, 28 Jan 2023 21:26:03 +0100 Message-ID: Subject: Re: Announcing zsh-scan, a zsh-linter To: Zsh Users Content-Type: multipart/alternative; boundary="0000000000004435df05f358cbda" X-Seq: 28839 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: --0000000000004435df05f358cbda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Added warncreateglobal like checking but statically sob., 28 sty 2023, 10:19 u=C5=BCytkownik Sebastian Gniazdowski < sgniazdowski@gmail.com> napisa=C5=82: > 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? > > -- > Best regards, > Sebastian Gniazdowski > > --0000000000004435df05f358cbda Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Added warncreateglobal like checking but statically=C2=A0=

= sob., 28 sty 2023, 10:19 u=C5=BCytkownik Sebastian Gniazdowski <sgniazdowski@gmail.com> napisa=C5= =82:
Hi,
a zsh li= nter with 7 checks currently:


The ch= ecks are:
- whether emulate -L -o =E2=80=A6 or setopt has be= en used,
- whether fun-name() { preamble exists within an au= toload function (it's good practice to help Ctags recognizing the funct= ion),
- 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,
- wheth= er 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=C2=A0 of arr+=3D(elem)

Does someone have any idea of some new checks t= o add?

--
Best regards,
Sebasti= an Gniazdowski

--0000000000004435df05f358cbda--