Skip to content

Commit d7b5486

Browse files
Appease linter gods
1 parent 4ae51e7 commit d7b5486

12 files changed

+92
-97
lines changed

cider-browse-ns.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ list of items."
268268
(let* ((max-length (cider-browse-ns--column-width items)))
269269
(cl-labels
270270
((keys-from-pred
271-
(pred items)
272-
(nrepl-dict-keys (nrepl-dict-filter (lambda (_ var-meta)
273-
(funcall pred var-meta))
274-
items))))
271+
(pred items)
272+
(nrepl-dict-keys (nrepl-dict-filter (lambda (_ var-meta)
273+
(funcall pred var-meta))
274+
items))))
275275
(cond
276276
((eql cider-browse-ns-group-by 'type)
277277
(let* ((func-keys (keys-from-pred #'cider-browse-ns--meta-function-p items))

cider-client.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,15 @@ Assuming this is the Clojure map you want to use as `cljfmt' options:
249249
250250
you need to encode it as the following plist:
251251
252-
'((\"indents\" ((\"org.me/foo\" ((\"inner\" 0))))) (\"alias-map\" ((\"me\" \"org.me\"))))"
252+
\\='((\"indents\" ((\"org.me/foo\" ((\"inner\" 0))))) (\"alias-map\" ((\"me\" \"org.me\"))))"
253253
:type 'list
254254
:group 'cider
255255
:package-version '(cider . "1.1.0"))
256256

257257
(defun cider--nrepl-format-code-request-map (&optional format-options)
258258
"Map to merge into requests that require code formatting.
259259
If non-nil, FORMAT-OPTIONS specifies the options cljfmt will use to format
260-
the code. See `cider-format-code-options` for details."
260+
the code. See `cider-format-code-options' for details."
261261
(when format-options
262262
(let* ((indents-dict (when (assoc "indents" format-options)
263263
(thread-last
@@ -320,7 +320,7 @@ nil."
320320
"A map of options that will be passed to `cider-print-fn'.
321321
Here's an example for `pprint':
322322
323-
'((\"length\" 50) (\"right-margin\" 70))"
323+
\\='((\"length\" 50) (\"right-margin\" 70))"
324324
:type 'list
325325
:group 'cider
326326
:package-version '(cider . "0.21.0"))

cider-connection.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ We look only at the major and minor components. When the major
264264
version is 0, only check that the minor versions match. When the major version
265265
is > 0, first check that the major version matches, then that the minor
266266
version is >= the required minor version.
267-
VER the 'installed' version,
267+
VER the `installed' version,
268268
REQUIRED-VER the version required by cider."
269269
(let ((ver* (cider--strip-version-patch ver))
270270
(required-ver* (cider--strip-version-patch required-ver)))
@@ -785,7 +785,7 @@ Session name can be customized with `cider-session-name-template'."
785785
;;; REPL Buffer Init
786786

787787
(defvar-local cider-cljs-repl-type nil
788-
"The type of the ClojureScript runtime ('browser, 'node, 'figwheel, etc.).")
788+
"The type of the ClojureScript runtime (browser, node, figwheel, etc.).")
789789

790790
(defvar-local cider-repl-type nil
791791
"The type of this REPL buffer, usually either clj or cljs.")

cider-doc.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ in a COMPACT format is specified, FOR-TOOLTIP if specified."
448448
(cider--help-setup-xref (list #'cider-doc-lookup (format "%s/%s" ns name)) nil buffer)
449449
(with-current-buffer buffer
450450
(cl-flet ((emit (text &optional face sep)
451-
(insert (if face
452-
(propertize text 'font-lock-face face)
453-
text)
454-
(or sep "\n"))))
451+
(insert (if face
452+
(propertize text 'font-lock-face face)
453+
text)
454+
(or sep "\n"))))
455455
(emit (if class java-name clj-name) 'font-lock-function-name-face)
456456
(when super
457457
(emit (concat "Extends: " (cider-font-lock-as 'java-mode super))))

cider-eval.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ _ARG and _RESET are ignored, as there is only ever one compilation error.
222222
They exist for compatibility with `next-error'."
223223
(interactive)
224224
(cl-labels ((goto-next-note-boundary
225-
()
226-
(let ((p (or (cider-find-property 'cider-note-p)
227-
(cider-find-property 'cider-note-p t))))
228-
(when p
229-
(goto-char p)
230-
(message "%s" (get-char-property p 'cider-note))))))
225+
()
226+
(let ((p (or (cider-find-property 'cider-note-p)
227+
(cider-find-property 'cider-note-p t))))
228+
(when p
229+
(goto-char p)
230+
(message "%s" (get-char-property p 'cider-note))))))
231231
;; if we're already on a compilation error, first jump to the end of
232232
;; it, so that we find the next error.
233233
(when (get-char-property (point) 'cider-note-p)

cider-mode.el

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -789,40 +789,41 @@ with the given LIMIT."
789789
deprecated enlightened
790790
macros functions vars instrumented traced)
791791
(cl-labels ((handle-plist
792-
(plist)
793-
;; Note that (memq 'function cider-font-lock-dynamically) and similar statements are evaluated differently
794-
;; for `core' - they're always truthy for `core' (see related core-handling code some lines below):
795-
(let ((do-function (memq 'function cider-font-lock-dynamically))
796-
(do-var (memq 'var cider-font-lock-dynamically))
797-
(do-macro (memq 'macro cider-font-lock-dynamically))
798-
(do-deprecated (memq 'deprecated cider-font-lock-dynamically)))
799-
(while plist
800-
(let ((sym (pop plist))
801-
(meta (pop plist)))
802-
(pcase (nrepl-dict-get meta "cider/instrumented")
803-
(`nil nil)
804-
(`"\"breakpoint-if-interesting\""
805-
(push sym instrumented))
806-
(`"\"light-form\""
807-
(push sym enlightened)))
808-
;; The ::traced keywords can be inlined by MrAnderson, so
809-
;; we catch that case too.
810-
;; FIXME: This matches values too, not just keys.
811-
(when (seq-find (lambda (k) (and (stringp k)
812-
(string-match (rx "orchard.trace/traced" eos) k)))
813-
meta)
814-
(push sym traced))
815-
(when (and do-deprecated (nrepl-dict-get meta "deprecated"))
816-
(push sym deprecated))
817-
(let ((is-macro (nrepl-dict-get meta "macro"))
818-
(is-function (or (nrepl-dict-get meta "fn")
819-
(nrepl-dict-get meta "arglists"))))
820-
(cond ((and do-macro is-macro)
821-
(push sym macros))
822-
((and do-function is-function)
823-
(push sym functions))
824-
((and do-var (not is-function) (not is-macro))
825-
(push sym vars)))))))))
792+
(plist)
793+
;; Note that (memq 'function cider-font-lock-dynamically) and similar statements are evaluated differently
794+
;; for `core' - they're always truthy for `core' (see related core-handling code some lines below):
795+
(let ((do-function (memq 'function cider-font-lock-dynamically))
796+
(do-var (memq 'var cider-font-lock-dynamically))
797+
(do-macro (memq 'macro cider-font-lock-dynamically))
798+
(do-deprecated (memq 'deprecated cider-font-lock-dynamically)))
799+
(while plist
800+
(let ((sym (pop plist))
801+
(meta (pop plist)))
802+
(pcase (nrepl-dict-get meta "cider/instrumented")
803+
(`nil nil)
804+
(`"\"breakpoint-if-interesting\""
805+
(push sym instrumented))
806+
(`"\"light-form\""
807+
(push sym enlightened)))
808+
;; The ::traced keywords can be inlined by MrAnderson, so
809+
;; we catch that case too.
810+
;; FIXME: This matches values too, not just keys.
811+
(when (seq-find (lambda (k)
812+
(and (stringp k)
813+
(string-match (rx "orchard.trace/traced" eos) k)))
814+
meta)
815+
(push sym traced))
816+
(when (and do-deprecated (nrepl-dict-get meta "deprecated"))
817+
(push sym deprecated))
818+
(let ((is-macro (nrepl-dict-get meta "macro"))
819+
(is-function (or (nrepl-dict-get meta "fn")
820+
(nrepl-dict-get meta "arglists"))))
821+
(cond ((and do-macro is-macro)
822+
(push sym macros))
823+
((and do-function is-function)
824+
(push sym functions))
825+
((and do-var (not is-function) (not is-macro))
826+
(push sym vars)))))))))
826827
;; For core members, we override `cider-font-lock-dynamically', since all core members should get the same treatment:
827828
(when (memq 'core cider-font-lock-dynamically)
828829
(let ((cider-font-lock-dynamically '(function var macro core deprecated)))

cider-ns.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ presenting the error message as an overlay."
166166
"Refresh LOG-BUFFER with RESPONSE."
167167
(nrepl-dbind-response response (out err reloading progress status error error-ns after before)
168168
(cl-flet* ((log (message &optional face)
169-
(cider-emit-into-popup-buffer log-buffer message face t))
169+
(cider-emit-into-popup-buffer log-buffer message face t))
170170

171171
(log-echo (message &optional face)
172-
(log message face)
173-
(unless cider-ns-refresh-show-log-buffer
174-
(let ((message-truncate-lines t))
175-
(message "cider-ns-refresh: %s" message)))))
172+
(log message face)
173+
(unless cider-ns-refresh-show-log-buffer
174+
(let ((message-truncate-lines t))
175+
(message "cider-ns-refresh: %s" message)))))
176176
(cond
177177
(out
178178
(log out))

cider-repl.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ description transform) where transform is called with the param-value if
348348
present."
349349
(cl-labels
350350
((emit-comment
351-
(contents)
352-
(insert-before-markers
353-
(propertize
354-
(if (string-blank-p contents) ";;\n" (concat ";; " contents "\n"))
355-
'font-lock-face 'font-lock-comment-face))))
351+
(contents)
352+
(insert-before-markers
353+
(propertize
354+
(if (string-blank-p contents) ";;\n" (concat ";; " contents "\n"))
355+
'font-lock-face 'font-lock-comment-face))))
356356
(let ((jack-in-command (plist-get cider-launch-params :jack-in-cmd))
357357
(cljs-repl-type (plist-get cider-launch-params :cljs-repl-type))
358358
(cljs-init-form (plist-get cider-launch-params :repl-init-form)))

cider-selector.el

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ selects a buffer.
104104
BODY is a series of forms which are evaluated when the selector
105105
is chosen. The returned buffer is selected with
106106
`switch-to-buffer'."
107+
(declare (indent 1))
107108
(let ((method `(lambda ()
108109
(let ((buffer (progn ,@body)))
109110
(cond ((not (and buffer (get-buffer buffer)))
@@ -135,41 +136,33 @@ is chosen. The returned buffer is selected with
135136
(cl-pushnew (list ?4 "Select in other window" (lambda () (cider-selector t)))
136137
cider-selector-methods :key #'car)
137138

138-
(def-cider-selector-method ?c
139-
"Most recently visited clojure-mode buffer."
139+
(def-cider-selector-method ?c "Most recently visited clojure-mode buffer."
140140
(cider-selector--recently-visited-buffer '(clojure-mode clojure-ts-mode)))
141141

142-
(def-cider-selector-method ?e
143-
"Most recently visited emacs-lisp-mode buffer."
142+
(def-cider-selector-method ?e "Most recently visited emacs-lisp-mode buffer."
144143
(cider-selector--recently-visited-buffer 'emacs-lisp-mode))
145144

146145
(def-cider-selector-method ?q "Abort."
147146
(top-level))
148147

149-
(def-cider-selector-method ?r
150-
"Current REPL buffer or as a fallback, the most recently
148+
(def-cider-selector-method ?r "Current REPL buffer or as a fallback, the most recently
151149
visited cider-repl-mode buffer."
152150
(or (cider-current-repl)
153151
(cider-selector--recently-visited-buffer 'cider-repl-mode)))
154152

155-
(def-cider-selector-method ?m
156-
"Current connection's *nrepl-messages* buffer."
153+
(def-cider-selector-method ?m "Current connection's *nrepl-messages* buffer."
157154
(nrepl-messages-buffer (cider-current-repl)))
158155

159-
(def-cider-selector-method ?x
160-
"*cider-error* buffer."
156+
(def-cider-selector-method ?x "*cider-error* buffer."
161157
cider-error-buffer)
162158

163-
(def-cider-selector-method ?p
164-
"*cider-profile* buffer."
159+
(def-cider-selector-method ?p "*cider-profile* buffer."
165160
cider-profile-buffer)
166161

167-
(def-cider-selector-method ?d
168-
"*cider-doc* buffer."
162+
(def-cider-selector-method ?d "*cider-doc* buffer."
169163
cider-doc-buffer)
170164

171-
(def-cider-selector-method ?s
172-
"*cider-scratch* buffer."
165+
(def-cider-selector-method ?s "*cider-scratch* buffer."
173166
(cider-scratch-find-or-create-buffer))
174167

175168
(provide 'cider-selector)

cider-stacktrace.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ filters for the resulting machinery."
346346
(save-excursion
347347
(goto-char (point-min))
348348
(cl-flet ((next-detail (end)
349-
(when-let* ((pos (next-single-property-change (point) 'detail)))
350-
(when (< pos end)
351-
(goto-char pos)))))
349+
(when-let* ((pos (next-single-property-change (point) 'detail)))
350+
(when (< pos end)
351+
(goto-char pos)))))
352352
(let ((inhibit-read-only t))
353353
;; For each cause...
354354
(while (cider-stacktrace-next-cause)

0 commit comments

Comments
 (0)