Skip to content

Commit

Permalink
build: add lint command to makefile (datreeio#761)
Browse files Browse the repository at this point in the history
* build: add lint command to makefile

* build: add comment how to install
  • Loading branch information
myishay authored Aug 16, 2022
1 parent 3a492c0 commit 849b364
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ publish:

datree_test_to_JUnit_report: # install junit2html first: https://github.com/inorton/junit2html
make build && ./datree test ./internal/fixtures/kube/skipRule/k8s-demo-skip-two.yaml -o JUnit > ./internal/fixtures/junit_support/datree_test_junit.xml || true && junit2html ./internal/fixtures/junit_support/datree_test_junit.xml ./internal/fixtures/junit_support/datree_test_junit_report.html

lint: # install golangci-lint first: https://golangci-lint.run/usage/install/#local-installation
golangci-lint run

0 comments on commit 849b364

Please sign in to comment.