Skip to content

Commit

Permalink
Print official linter names
Browse files Browse the repository at this point in the history
  • Loading branch information
totakke committed Jan 23, 2025
1 parent c3dfd4d commit c8da9d0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/bosslint/linter/checkstyle.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[bosslint.process :as process]))

(deflinter :linter/checkstyle
(name [] "checkstyle")
(name [] "Checkstyle")

(files [file-group]
(linter/select-files file-group [:java]))
Expand Down
2 changes: 1 addition & 1 deletion src/bosslint/linter/eastwood.clj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
:error)))

(deflinter :linter/eastwood
(name [] "eastwood")
(name [] "Eastwood")

(files [file-group]
(->> (linter/select-files file-group [:clj :cljc])
Expand Down
2 changes: 1 addition & 1 deletion src/bosslint/linter/flake8.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[bosslint.process :as process]))

(deflinter :linter/flake8
(name [] "flake8")
(name [] "Flake8")

(files [file-group]
(linter/select-files file-group [:python]))
Expand Down
2 changes: 1 addition & 1 deletion src/bosslint/linter/markdownlint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[bosslint.process :as process]))

(deflinter :linter/markdownlint
(name [] "markdownlint")
(name [] "markdownlint-cli")

(files [file-group]
(linter/select-files file-group [:markdown]))
Expand Down
2 changes: 1 addition & 1 deletion src/bosslint/linter/swiftlint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[bosslint.process :as process]))

(deflinter :linter/swiftlint
(name [] "swiftlint")
(name [] "Swiftlint")

(files [file-group]
(linter/select-files file-group [:swift]))
Expand Down
4 changes: 2 additions & 2 deletions src/bosslint/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@
;; linters

(defn linters-cmd [_]
(doseq [s (map linter/name (list-linters))]
(println s)))
(doseq [k (list-linters)]
(println (str (linter/name k) " (" (name k) ")"))))

;; main

Expand Down

0 comments on commit c8da9d0

Please sign in to comment.