2019-04-23 19:28:41 +02:00
|
|
|
;;; lang/sh/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! :checkers syntax)
|
2019-04-23 20:08:52 +02:00
|
|
|
(unless (executable-find "shellcheck")
|
|
|
|
(warn! "Couldn't find shellcheck. Shell script linting will not work")))
|
2021-10-19 19:26:26 +01:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! :editor format)
|
2022-07-12 06:38:47 +02:00
|
|
|
(unless (executable-find "shfmt")
|
|
|
|
(warn! "Couldn't find shfmt. Code formatting will not work.")))
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2021-10-19 19:26:26 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|