Skip to content

Commit edb548b

Browse files
bneradtbneradt
andauthored
Upgrade bundled RAT to 0.17 (#13071)
This switches the bundled RAT tool to the official 0.17 release and updates the rat target to use the new exclude-file CLI. This rewrites the exclusion list for RAT 0.17 path matching so the existing ignored inputs still stay out of the report. It also excludes huge_resp_hdrs.conf because RAT 0.17 misclassifies that fixture as an unknown file type despite its ASF header. Co-authored-by: bneradt <bneradt@yahooinc.com>
1 parent 910f3e5 commit edb548b

6 files changed

Lines changed: 84 additions & 79 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ endif()
915915
add_custom_target(
916916
rat
917917
COMMENT "Running Apache RAT"
918-
COMMAND java -jar ${CMAKE_SOURCE_DIR}/ci/apache-rat-0.13-SNAPSHOT.jar -E ${CMAKE_SOURCE_DIR}/ci/rat-regex.txt -d
918+
COMMAND java -jar ${CMAKE_SOURCE_DIR}/ci/apache-rat-0.17.jar --input-exclude-file
919+
${CMAKE_SOURCE_DIR}/ci/rat-exclude.txt --input-include-file ${CMAKE_SOURCE_DIR}/ci/rat-include.txt --
919920
${CMAKE_SOURCE_DIR}
920921
)
921922

ci/apache-rat-0.13-SNAPSHOT.jar

-1.55 MB
Binary file not shown.

ci/apache-rat-0.17.jar

7.06 MB
Binary file not shown.

ci/rat-exclude.txt

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
BUILDS/**
2+
autom4te.cache/**
3+
m4/**
4+
build-aux/**
5+
**/body_factory/**
6+
**/config.log
7+
**/config.nice
8+
**/config.status
9+
**/libtool
10+
blib/**
11+
**/stamp-h1
12+
**/*.txt
13+
**/*uv.lock
14+
**/*.cfg
15+
**/*.in
16+
**/*.dot
17+
**/*.svg
18+
**/*.sed
19+
**/*.dtd
20+
**/*.json
21+
**/*.yaml
22+
**/*.md
23+
**/*.default
24+
**/*.default.in
25+
**/*.config
26+
**/*.gold
27+
**/*.hrw4u
28+
**/.gitignore
29+
**/.gitmodules
30+
**/.perltidyrc
31+
**/.indent.pro
32+
**/.vimrc
33+
**/.clang-*
34+
**/.ripgreprc
35+
**/Doxyfile
36+
**/CHANGES
37+
**/CHANGELOG*
38+
**/LAYOUT
39+
**/README*
40+
**/TODO
41+
**/REVIEWERS
42+
**/INSTALL.SKIP
43+
**/MANIFEST
44+
**/configure
45+
**/ink_rand.cc
46+
**/ink_rand.h
47+
**/ink_res_init.cc
48+
**/ink_res_mkquery.cc
49+
**/hashtable.cc
50+
**/logstats.summary
51+
**/test_AIO.sample
52+
**/stats.memo
53+
**/port.h
54+
**/diags.log
55+
**/pm_to_blib
56+
**/*rubbish*
57+
**/short
58+
%regex[.*/\[.+\]$]
59+
**/MurmurHash3.cc
60+
**/MurmurHash3.h
61+
**/HashFNV.cc
62+
**/HashSip.cc
63+
**/TsConfigGrammar.?
64+
**/*.crt
65+
**/*.key
66+
**/*.pem
67+
**/*.doc
68+
**/protocol_binary.h
69+
**/override.css
70+
**/catch.hpp
71+
**/configuru.hpp
72+
**/Catch2/**
73+
**/yamlcpp/**
74+
**/systemtap/**
75+
**/swoc/**
76+
tests/gold_tests/autest-site/min_cfg
77+
tests/gold_tests/h2/rules/huge_resp_hdrs.conf
78+
tools/http_load/**
79+
**/clang-tidy.conf
80+
build*/**
81+
cmake-build*/**

ci/rat-include.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/CMakeLists.txt

ci/rat-regex.txt

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)