From 86376c80d68f3ef7a3e866f6d1739139704085dc Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 29 Jul 2024 15:56:50 -0400 Subject: [PATCH] Added stan to make file --- code/Makefile | 7 ++++++- code/stack.yaml | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/code/Makefile b/code/Makefile index 06a626d96f..6931f80c1d 100644 --- a/code/Makefile +++ b/code/Makefile @@ -197,7 +197,7 @@ debug: test ##@Examples Run test target with better debugging tools. # Debugging individual examples $(DEBUG_EXAMPLES): %$(DEBUG_E_SUFFIX): %$(TEST_E_SUFFIX) -pr_ready: all hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint`. +pr_ready: all stan hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint` and stan. @echo "Your build/ and stable/ match, and your code currently passes HLint tests." @echo "Feel free to create a PR for your code if you feel it's ready." @@ -534,6 +534,11 @@ clean: clean_artifacts ##@Cleaning Fully clean all generated builds, artifacts, #--- Help & Information ---# #--------------------------# +stan: ##@Stan Run Stan static analysis tool on the Drasil packages. + find . -type d -name 'drasil-*' -exec sh -c 'cd {} && stan > stan.log' \; + cat drasil-*/stan.log +#use to display stan logs, cat drasil-*/stan.log + # Credits to "nowox" from StackOverflow: https://stackoverflow.com/a/30796664/16760741 HELP_FUN = \ %help; while(<>){push@{$$help{$$2//'options'}},[$$1,$$3] \ diff --git a/code/stack.yaml b/code/stack.yaml index 66f889a564..3fb269e01d 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -69,9 +69,9 @@ packages: # Dependency packages to be pulled from upstream that are not in the resolver # (e.g., acme-missiles-0.3) extra-deps: -- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32 -- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 -- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 +- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32,1311 +- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2,470 +- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699,1000 # The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8. - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204