all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
@ 2020-06-05 23:33 Fredrik Salomonsson
  2020-06-06  7:44 ` Nicolas Goaziou
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Fredrik Salomonsson @ 2020-06-05 23:33 UTC (permalink / raw)
  To: 41731; +Cc: Fredrik Salomonsson

* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6110374281..73d030f239 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -992,6 +992,34 @@ different tools.  It highlights errors and warnings inline in the buffer, and
 provides an optional IDE-like error list.")
       (license license:gpl3+))))                     ;+GFDLv1.3+ for the manual
 
+(define-public emacs-flymake-shellcheck
+  ;; No tag, version grabbed from source .el file.
+  (let ((commit "78956f0e5bb9c4d35989657a55929e8e3f5691e6")
+        (revision "0"))
+    (package
+      (name "emacs-flymake-shellcheck")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/federicotdn/flymake-shellcheck.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "068mx5p4drwgppy4ry1rfq6qi79w6d82b4rnpl2jm37grsg94lix"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("shellcheck" ,shellcheck)))
+      (home-page "https://github.com/federicotdn/flymake-shellcheck")
+      (synopsis "Flymake backend for Bash/Sh powered by ShellCheck")
+      (description
+       "This package provides a backend for Flymake (emacs-26+) to use the
+tool @command{shellcheck} for static analyzing @command{bash} and @command{sh}
+scripts.  Please see the description on @command{shellcheck} for more
+information on what it can do.")
+      (license license:gpl3+))))
+
 (define-public emacs-a
   (package
     (name "emacs-a")
-- 
2.26.2





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

* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-05 23:33 [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck Fredrik Salomonsson
@ 2020-06-06  7:44 ` Nicolas Goaziou
  2020-06-06 16:55 ` Fredrik Salomonsson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2020-06-06  7:44 UTC (permalink / raw)
  To: Fredrik Salomonsson; +Cc: 41731

Hello,

Fredrik Salomonsson <plattfot@gmail.com> writes:

> * gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.

Thank you. Some comments follow.

> +      (propagated-inputs
> +       `(("shellcheck" ,shellcheck)))

I don't think we should do that. It is up to the user to install
ShellCheck if they want.

For example, installing `emacs-flycheck-haskell' doesn't pull GHC in
user's profile.

> +      (home-page "https://github.com/federicotdn/flymake-shellcheck")
> +      (synopsis "Flymake backend for Bash/Sh powered by ShellCheck")
> +      (description
> +       "This package provides a backend for Flymake (emacs-26+) to use the

Nitpick: you can remove the (emacs-26+) part.

> +tool @command{shellcheck} for static analyzing @command{bash} and @command{sh}

Nitpick: since you seem to talk about the tool as a whole, I suggest:

  @command{shellcheck} -> ShellCheck

> +scripts.  Please see the description on @command{shellcheck} for more
> +information on what it can do."

I think you can remove the last sentence.

Could you send an updated patch?

Regards,

-- 
Nicolas Goaziou




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

* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-05 23:33 [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck Fredrik Salomonsson
  2020-06-06  7:44 ` Nicolas Goaziou
@ 2020-06-06 16:55 ` Fredrik Salomonsson
  2020-06-06 16:58 ` Fredrik Salomonsson via web
  2020-06-06 17:01 ` [bug#41731] " Fredrik Salomonsson
  3 siblings, 0 replies; 7+ messages in thread
From: Fredrik Salomonsson @ 2020-06-06 16:55 UTC (permalink / raw)
  To: 41731; +Cc: Fredrik Salomonsson

* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.
---
 gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6110374281..73d030f239 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -992,6 +992,34 @@ different tools.  It highlights errors and warnings inline in the buffer, and
 provides an optional IDE-like error list.")
       (license license:gpl3+))))                     ;+GFDLv1.3+ for the manual
 
+(define-public emacs-flymake-shellcheck
+  ;; No tag, version grabbed from source .el file.
+  (let ((commit "78956f0e5bb9c4d35989657a55929e8e3f5691e6")
+        (revision "0"))
+    (package
+      (name "emacs-flymake-shellcheck")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/federicotdn/flymake-shellcheck.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "068mx5p4drwgppy4ry1rfq6qi79w6d82b4rnpl2jm37grsg94lix"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("shellcheck" ,shellcheck)))
+      (home-page "https://github.com/federicotdn/flymake-shellcheck")
+      (synopsis "Flymake backend for Bash/Sh powered by ShellCheck")
+      (description
+       "This package provides a backend for Flymake (emacs-26+) to use the
+tool @command{shellcheck} for static analyzing @command{bash} and @command{sh}
+scripts.  Please see the description on @command{shellcheck} for more
+information on what it can do.")
+      (license license:gpl3+))))
+
 (define-public emacs-a
   (package
     (name "emacs-a")
-- 
2.26.2





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

* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-05 23:33 [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck Fredrik Salomonsson
  2020-06-06  7:44 ` Nicolas Goaziou
  2020-06-06 16:55 ` Fredrik Salomonsson
@ 2020-06-06 16:58 ` Fredrik Salomonsson via web
  2020-06-07 19:22   ` bug#41731: " Nicolas Goaziou
  2020-06-06 17:01 ` [bug#41731] " Fredrik Salomonsson
  3 siblings, 1 reply; 7+ messages in thread
From: Fredrik Salomonsson via web @ 2020-06-06 16:58 UTC (permalink / raw)
  To: 41731

Thanks for the feedback.
I was debating to myself whether to include shellcheck or not. As when I looked around in emacs-xyz.scm, for example `emacs-ag' does propagate the-silver-searcher but `emacs-direnv' does not.

Anyway, I removed it in the latest patch.





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

* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-05 23:33 [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck Fredrik Salomonsson
                   ` (2 preceding siblings ...)
  2020-06-06 16:58 ` Fredrik Salomonsson via web
@ 2020-06-06 17:01 ` Fredrik Salomonsson
  2020-06-06 17:04   ` Fredrik Salomonsson
  3 siblings, 1 reply; 7+ messages in thread
From: Fredrik Salomonsson @ 2020-06-06 17:01 UTC (permalink / raw)
  To: 41731; +Cc: Fredrik Salomonsson

* gnu/packages/emacs-xyz.scm (emacs-flymake-shellcheck): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6110374281..d957497a06 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -992,6 +992,31 @@ different tools.  It highlights errors and warnings inline in the buffer, and
 provides an optional IDE-like error list.")
       (license license:gpl3+))))                     ;+GFDLv1.3+ for the manual
 
+(define-public emacs-flymake-shellcheck
+  ;; No tag, version grabbed from source .el file.
+  (let ((commit "78956f0e5bb9c4d35989657a55929e8e3f5691e6")
+        (revision "0"))
+    (package
+      (name "emacs-flymake-shellcheck")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/federicotdn/flymake-shellcheck.git")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "068mx5p4drwgppy4ry1rfq6qi79w6d82b4rnpl2jm37grsg94lix"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/federicotdn/flymake-shellcheck")
+      (synopsis "Flymake backend for Bash/Sh powered by ShellCheck")
+      (description
+       "This package provides a backend for Flymake to use the
+tool ShellCheck for static analyzing @command{bash} and @command{sh}
+scripts.")
+      (license license:gpl3+))))
+
 (define-public emacs-a
   (package
     (name "emacs-a")
-- 
2.26.2





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

* [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-06 17:01 ` [bug#41731] " Fredrik Salomonsson
@ 2020-06-06 17:04   ` Fredrik Salomonsson
  0 siblings, 0 replies; 7+ messages in thread
From: Fredrik Salomonsson @ 2020-06-06 17:04 UTC (permalink / raw)
  To: 41731

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]

Sorry, sent the old patch again. The last one should be the correct one.

-- 
s/Fred[re]+i[ck]+/Fredrik/g

[-- Attachment #2: Type: text/html, Size: 235 bytes --]

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

* bug#41731: [PATCH] gnu: Add emacs-flymake-shellcheck.
  2020-06-06 16:58 ` Fredrik Salomonsson via web
@ 2020-06-07 19:22   ` Nicolas Goaziou
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2020-06-07 19:22 UTC (permalink / raw)
  To: Fredrik Salomonsson via web; +Cc: 41731-done

Hello,

Fredrik Salomonsson via web <issues.guix.gnu.org@elephly.net> writes:

> I was debating to myself whether to include shellcheck or not. As when
> I looked around in emacs-xyz.scm, for example `emacs-ag' does
> propagate the-silver-searcher but `emacs-direnv' does not.

emacs-ag package contains a comment explaining why the propagated inputs
is required.

Sometimes, it is unavoidable, but usage of propagated-inputs should be
as limited as possible.

> Anyway, I removed it in the latest patch.

Thank you. I applied your patch.

Regards,

-- 
Nicolas Goaziou




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

end of thread, other threads:[~2020-06-07 19:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 23:33 [bug#41731] [PATCH] gnu: Add emacs-flymake-shellcheck Fredrik Salomonsson
2020-06-06  7:44 ` Nicolas Goaziou
2020-06-06 16:55 ` Fredrik Salomonsson
2020-06-06 16:58 ` Fredrik Salomonsson via web
2020-06-07 19:22   ` bug#41731: " Nicolas Goaziou
2020-06-06 17:01 ` [bug#41731] " Fredrik Salomonsson
2020-06-06 17:04   ` Fredrik Salomonsson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.