Skip to content

Commit

Permalink
dev: megalinter_runner variable
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Jul 5, 2023
1 parent 0e45655 commit 449aa9a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# Column the target description is printed from
HELP-DESCRIPTION-SPACING := 24

# Tool Commands
MEGALINTER_RUNNER := npx mega-linter-runner --flavor documentation --env "'MEGALINTER_CONFIG=.github/config/megalinter.yaml'" --remove-container

# Makefile file and directory name wildcard
EDN-FILES := $(wildcard *.edn)

Expand All @@ -29,12 +32,11 @@ pre-commit-check: lint

lint: ## Run MegaLinter with custom configuration (node.js required)
$(info --------- MegaLinter Runner ---------)
npx mega-linter-runner --flavor documentation --release beta --env "'MEGALINTER_CONFIG=.github/config/megalinter.yaml'" --remove-container

$(MEGALINTER_RUNNER)

lint-fix: ## Run MegaLinter with custom configuration (node.js required)
$(info --------- MegaLinter Runner ---------)
npx mega-linter-runner --fix --flavor documentation --release beta --env "'MEGALINTER_CONFIG=.github/config/megalinter.yaml'" --remove-container
$(MEGALINTER_RUNNER) --fix

lint-clean: ## Clean MegaLinter report information
$(info --------- MegaLinter Clean Reports ---------)
Expand Down

0 comments on commit 449aa9a

Please sign in to comment.