File tree Expand file tree Collapse file tree 2 files changed +16
-24
lines changed
Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Original file line number Diff line number Diff line change 1- .github/*
2- .rat-excludes
3- build
4- .git
5- .gitignore
1+ .github/**
2+ dev/.rat-excludes
63uv.lock
7- mkdocs/*
8- notebooks/*
4+ .ruff_cache/**
5+ .pytest_cache/**
6+ .mypy_cache/**
7+ mkdocs/**
8+ notebooks/**
Original file line number Diff line number Diff line change 5858 declare java_cmd=java
5959fi
6060
61- export RAT_VERSION=0.16.1
61+ export RAT_VERSION=0.17
6262export rat_jar=" $FWDIR " /lib/apache-rat-${RAT_VERSION} .jar
6363mkdir -p " $FWDIR " /lib
6464
@@ -67,20 +67,12 @@ mkdir -p "$FWDIR"/lib
6767 exit 1
6868}
6969
70- mkdir -p build
71- $java_cmd -jar " $rat_jar " --scan-hidden-directories -E " $FWDIR " /dev/.rat-excludes -d " $FWDIR " > build/rat-results.txt
70+ $java_cmd -jar " $rat_jar " \
71+ --input-exclude-file " $FWDIR " /dev/.rat-excludes \
72+ --input-exclude-std GIT IDEA MAC \
73+ --input-include-std HIDDEN_DIR \
74+ --output-style missing-headers \
75+ --log-level ERROR \
76+ -- " $FWDIR " || exit 1
7277
73- if [ $? -ne 0 ]; then
74- echo " RAT exited abnormally"
75- exit 1
76- fi
77-
78- ERRORS=" $( cat build/rat-results.txt | grep -e " ??" ) "
79-
80- if test ! -z " $ERRORS " ; then
81- echo " Could not find Apache license headers in the following files:"
82- echo " $ERRORS "
83- exit 1
84- else
85- echo -e " RAT checks passed."
86- fi
78+ echo " RAT checks passed."
You can’t perform that action at this time.
0 commit comments