@@ -209,10 +209,13 @@ fn get_subtrees() -> Vec<&'static str> {
209
209
]
210
210
}
211
211
212
- /// Return the pathspecs to exclude all subtrees
213
- fn get_pathspecs_exclude_subtrees ( ) -> Vec < String > {
212
+ /// Return the pathspecs to exclude by default
213
+ fn get_pathspecs_default_excludes ( ) -> Vec < String > {
214
214
get_subtrees ( )
215
215
. iter ( )
216
+ . chain ( & [
217
+ "doc/release-notes/release-notes-*" , // archived notes
218
+ ] )
216
219
. map ( |s| format ! ( ":(exclude){}" , s) )
217
220
. collect ( )
218
221
}
@@ -333,7 +336,7 @@ fn lint_py_lint() -> LintResult {
333
336
let files = check_output (
334
337
git ( )
335
338
. args ( [ "ls-files" , "--" , "*.py" ] )
336
- . args ( get_pathspecs_exclude_subtrees ( ) ) ,
339
+ . args ( get_pathspecs_default_excludes ( ) ) ,
337
340
) ?;
338
341
339
342
let mut cmd = Command :: new ( bin_name) ;
@@ -459,7 +462,7 @@ expected to follow the naming "/doc/release-notes-<PR number>.md".
459
462
460
463
/// Return the pathspecs for whitespace related excludes
461
464
fn get_pathspecs_exclude_whitespace ( ) -> Vec < String > {
462
- let mut list = get_pathspecs_exclude_subtrees ( ) ;
465
+ let mut list = get_pathspecs_default_excludes ( ) ;
463
466
list. extend (
464
467
[
465
468
// Permanent excludes
@@ -468,7 +471,6 @@ fn get_pathspecs_exclude_whitespace() -> Vec<String> {
468
471
"contrib/windeploy/win-codesign.cert" ,
469
472
"doc/README_windows.txt" ,
470
473
// Temporary excludes, or existing violations
471
- "doc/release-notes/release-notes-0.*" ,
472
474
"contrib/init/bitcoind.openrc" ,
473
475
"contrib/macdeploy/macdeployqtplus" ,
474
476
"src/crypto/sha256_sse4.cpp" ,
@@ -569,7 +571,7 @@ fn lint_includes_build_config() -> LintResult {
569
571
"*.cpp" ,
570
572
"*.h" ,
571
573
] )
572
- . args ( get_pathspecs_exclude_subtrees ( ) )
574
+ . args ( get_pathspecs_default_excludes ( ) )
573
575
. args ( [
574
576
// These are exceptions which don't use bitcoin-build-config.h, rather CMakeLists.txt adds
575
577
// these cppflags manually.
0 commit comments