Skip to content

Commit

Permalink
Fix: [AEA-0000] - correct lint of sam templates (#338)
Browse files Browse the repository at this point in the history
## Summary

- Routine Change

### Details

- ensure lint of sam templates checks all files and errors if there is a
problem
  • Loading branch information
anthony-nhs authored Aug 29, 2024
1 parent f85b428 commit eea18c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
SHELL = /bin/bash
.SHELLFLAGS = -o pipefail -c

guard-%:
@ if [ "${${*}}" = "" ]; then \
echo "Environment variable $* not set"; \
Expand Down Expand Up @@ -110,7 +113,7 @@ lint-node: compile-node
npm run lint --workspace packages/common/testing

lint-samtemplates:
poetry run cfn-lint -t SAMtemplates/*.yaml
poetry run cfn-lint -I "SAMtemplates/**/*.y*ml" 2>&1 | awk '/Run scan/ { print } /^[EW][0-9]/ { print; getline; print }'

lint-python:
poetry run flake8 scripts/*.py --config .flake8
Expand Down

0 comments on commit eea18c8

Please sign in to comment.