Skip to content

Commit 9803b42

Browse files
committed
fix lint warnings
1 parent 615ca1d commit 9803b42

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

jcs-modeline.el

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,16 @@
192192
(ignore-errors (jcs-modeline--light-color-p (face-background 'default))))
193193

194194
(defun jcs-modeline-format (format &optional face window buffer)
195-
"Wrapper for function `format-mode-line'."
195+
"Wrapper for function `format-mode-line'.
196+
197+
Arguments FORMAT, FACE, WINDOW and BUFFER are parameters from the
198+
`format-mode-line' function."
196199
(string-trim (format-mode-line format face window buffer)))
197200

198201
(defun jcs-modeline--moody-tab (arg0 &rest _)
199-
"Override `moody-ta' function when inside the terminal."
202+
"Override the function `moody-tab' when inside the terminal.
203+
204+
Position argument ARG0."
200205
(concat " " arg0 " "))
201206

202207
;;
@@ -373,7 +378,7 @@ mouse-1: Toggle display of major mode name"
373378
(when-let ((current (project-current))) (project-root current)))
374379

375380
(defcustom jcs-modeline-show-project-name-virutal-buffer nil
376-
"If non-nil, display project-name in virutal buffer."
381+
"If non-nil, display project's name in the virutal buffer."
377382
:type 'boolean
378383
:group 'jcs-modeline)
379384

@@ -481,7 +486,7 @@ mouse-1: Reveal project in folder" project)
481486
'help-echo "UndoTree Parent Buffer"))))
482487

483488
(defun jcs-modeline--undo-tree-branch-height (root)
484-
"Return the total height of the current branch."
489+
"Return the total height of the current branch from ROOT."
485490
(let ((count 0))
486491
(while (setq root (nth (undo-tree-node-branch root)
487492
(undo-tree-node-next root)))
@@ -532,7 +537,7 @@ mouse-1: Reveal project in folder" project)
532537
;;; Flymake
533538

534539
(defun jcs-modeline--flymake-lighter (diags-by-type state running)
535-
"Return flycheck lighter by given STATE.
540+
"Return flycheck lighter by given DIAGS-BY-TYPE and STATE.
536541
537542
If argument RUNNING is non-nil, we turn lighter into question mark."
538543
(let* ((c-state (cl-case state

0 commit comments

Comments
 (0)