This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers
Didier A 58dcd6320b [clojure] Added support for joker linter and having mutliple active linters
The variable clojure-enable-linters can now be set to a list of linters:

'(clj-kondo joker)
  or
'(joker squiggly)
  or any other combination of the available linters.

In which case, all linters in the list will be active if they are
available to be. In that flycheck is configured so that each linter
in the list has as next-checker the next linter in the list.

The variable can also now be set to:

'joker

If only the newly added joker linter should be used.

This will pull down flycheck-joker and add Joker as a checker for
Clojure modes.

--

Implementation Details

The way it works is that for each Clojure linting mode, clj, cljc,
cljs and edn, a primary linter is chosen based on the order the
user specifies in clojure-enable-linters which support that mode.
It is made the primary linter for flycheck to use by being promoted
to the front of the flycheck-checkers list. All other linters specified
by the user which the mode also supports get added to it as a
next-checker.

Tested with clj-kondo, joker and squiggly. The only issue I saw was that
the way flycheck-clojure works, and the way I currently have setup the
logic for multiple checkers mean that we can't add to a mode multiple
checkers for the same linter. flycheck-clojure has eastwood, kibit and
core.typed. If you have it configured to use eastwood linter, then it
will all work, as eastwood gets added as the next-checker. But if you
have it disabled in flycheck-clojure, there won't be any
flycheck-clojure linters to activate. I'm not sure as of now how to best
support that. Ideally, we would not clubber linters into a single packge
like that, and so the layer would have instead of squiggly: eastwood,
kibit, core.typed. But that's not how flycheck-clojure works. Future
commit might be able to do something smarter about this.
2019-10-20 00:23:58 +02:00
..
+chat Update references to macOS 2019-10-13 12:04:40 +02:00
+checkers fix #12554 goto-flycheck-error-list 2019-07-24 14:17:53 +02:00
+completion [ivy] Add counsel colors and faces key bindings 2019-10-19 23:13:35 +02:00
+distributions Various documentation copy-edits 2019-10-13 12:04:59 +02:00
+emacs Unfold org headings from helm-ag and magit 2019-10-19 23:47:45 +02:00
+email Various documentation copy-edits 2019-10-13 12:04:59 +02:00
+filetree Allow users to enable treemacs-tag-follow-mode as initial setup. 2019-10-17 09:34:12 +02:00
+fonts/unicode-fonts Update references to macOS 2019-10-13 12:04:40 +02:00
+frameworks Make react layer respect js fmt on save 2019-10-09 18:29:23 +02:00
+fun Update references to macOS 2019-10-13 12:04:40 +02:00
+intl Various documentation copy-edits 2019-10-13 12:04:59 +02:00
+lang [clojure] Added support for joker linter and having mutliple active linters 2019-10-20 00:23:58 +02:00
+misc docstring 2019-09-16 17:41:15 +03:00
+music/spotify [spotify] Add notes for ivy search 2019-10-18 22:27:31 +02:00
+os Update NixOS layer banner 2019-10-19 11:55:56 +02:00
+pair-programming/floobits Switch to the new layers generator 2019-05-15 21:08:21 +03:00
+readers Various documentation copy-edits 2019-10-13 12:04:59 +02:00
+source-control Unfold org headings from helm-ag and magit 2019-10-19 23:47:45 +02:00
+spacemacs [ivy] Fix spacemacs/layouts-ts-close-other 2019-10-19 23:20:55 +02:00
+tags Fix GNU Global install instructions for macOS 2019-10-19 15:36:02 +02:00
+themes Revert "[themes-megapack] Add ewal-spacemacs-themes to themes-megapack layer." 2019-08-26 19:58:34 +02:00
+tools shell: Set initial shell state better 2019-10-19 22:58:22 +02:00
+vim [doc] Fix typos and add missing/remove extra ~ 2019-06-01 20:40:22 +02:00
+web-services [search-engine] Fix typo of "Hoogle" as "Hoggle" 2019-10-13 11:31:33 +02:00
auto-layer.el Add lazy-install to automatically install dart layer 2019-04-12 18:00:00 +02:00
LAYERS.org documentation formatting: Thu Sep 12 15:09:22 UTC 2019 2019-09-12 21:44:20 +02:00