@@ -90,22 +90,22 @@ lint_flake8() {
9090 flake8 .
9191}
9292
93- lint_jsonlint () {
94- find . -name " *.json" -exec jsonlint -q {} \+
95- }
96-
9793lint_hadolint () {
9894 docker run -i --rm docker.io/hadolint/hadolint:v2.12.0 < Dockerfile
9995}
10096
101- lint_markdownlint () {
102- markdownlint-cli2 " **/*.md "
97+ lint_jsonlint () {
98+ find . -name " *.json " -exec jsonlint -q {} \+
10399}
104100
105101lint_manifest () {
106102 check-manifest
107103}
108104
105+ lint_markdownlint () {
106+ markdownlint-cli2 " **/*.md"
107+ }
108+
109109lint_pydocstyle () {
110110 pydocstyle reana_client
111111}
@@ -129,13 +129,14 @@ all() {
129129 docs_cli_commands
130130 docs_sphinx
131131 format_black
132+ format_prettier
132133 format_shfmt
133134 lint_commitlint
134135 lint_flake8
135136 lint_hadolint
136137 lint_jsonlint
137- lint_markdownlint
138138 lint_manifest
139+ lint_markdownlint
139140 lint_pydocstyle
140141 lint_shellcheck
141142 lint_yamllint
@@ -152,14 +153,15 @@ help() {
152153 echo " --docs-cli-commands Check CLI commands list"
153154 echo " --docs-sphinx Check Sphinx docs build"
154155 echo " --format-black Check formatting of Python code"
156+ echo " --format-prettier Check formatting of Markdown etc files"
155157 echo " --format-shfmt Check formatting of shell scripts"
156158 echo " --help Display this help message"
157159 echo " --lint-commitlint Check linting of commit messages"
158160 echo " --lint-flake8 Check linting of Python code"
159161 echo " --lint-hadolint Check linting of Dockerfiles"
160162 echo " --lint-jsonlint Check linting of JSON files"
161- echo " --lint-markdownlint Check linting of Markdown files"
162163 echo " --lint-manifest Check linting of Python manifest"
164+ echo " --lint-markdownlint Check linting of Markdown files"
163165 echo " --lint-pydocstyle Check linting of Python docstrings"
164166 echo " --lint-shellcheck Check linting of shell scripts"
165167 echo " --lint-yamllint Check linting of YAML files"
@@ -181,13 +183,14 @@ case $arg in
181183--docs-cli-commands) docs_cli_commands ;;
182184--docs-sphinx) docs_sphinx ;;
183185--format-black) format_black ;;
186+ --format-prettier) format_prettier ;;
184187--format-shfmt) format_shfmt ;;
185188--lint-commitlint) lint_commitlint " $@ " ;;
186189--lint-flake8) lint_flake8 ;;
187190--lint-hadolint) lint_hadolint ;;
188191--lint-jsonlint) lint_jsonlint ;;
189- --lint-markdownlint) lint_markdownlint ;;
190192--lint-manifest) lint_manifest ;;
193+ --lint-markdownlint) lint_markdownlint ;;
191194--lint-pydocstyle) lint_pydocstyle ;;
192195--lint-shellcheck) lint_shellcheck ;;
193196--lint-yamllint) lint_yamllint ;;
0 commit comments