Skip to content

Commit 720c66a

Browse files
committed
add chplcheck linting to mason
Signed-off-by: Jade Abraham <[email protected]>
1 parent 3f18887 commit 720c66a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ jobs:
104104
- name: lint standard modules
105105
run: |
106106
CHPL_HOME=$PWD make DYNO_ENABLE_ASSERTIONS=1 lint-standard-modules -j`util/buildRelease/chpl-make-cpu_count`
107+
- name: lint mason
108+
run: |
109+
CHPL_HOME=$PWD make DYNO_ENABLE_ASSERTIONS=1 lint-mason -j`util/buildRelease/chpl-make-cpu_count`
107110
108111
make_check_llvm_none:
109112
runs-on: ubuntu-latest

Makefile.devel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ lint-standard-modules: chplcheck FORCE
107107
--disable-rule LineLength \
108108
$(MODULES_TO_LINT)
109109

110+
MASON_MODULES_TO_LINT = $(shell find $(CHPL_MAKE_HOME)/tools/mason -name '*.chpl')
111+
lint-mason: chplcheck FORCE
112+
tools/chplcheck/chplcheck $(MASON_MODULES_TO_LINT)
113+
110114
run-frontend-linters: FORCE
111115
@cd compiler && $(MAKE) run-frontend-linters
112116

0 commit comments

Comments
 (0)