@@ -211,17 +211,19 @@ async fn setup(lib_root: &Path, test_params: &TestParams) {
211211 ) ;
212212 }
213213
214- let mut tool_ignore = "**/*.c" . to_string ( ) ;
214+ let mut format_ignore = "**/*.c" . to_string ( ) ;
215+ let mut tidy_ignore = format_ignore. clone ( ) ;
215216 if test_params. force_lgtm {
216- tool_ignore. push_str ( "|**/*.cpp|**/*.h" ) ;
217+ format_ignore. push_str ( "|**/*.cpp|**/*.h" ) ;
218+ tidy_ignore. push_str ( "|**/*.hpp" ) ;
217219 }
218220 let mut args = vec ! [
219221 "cpp-linter" . to_string( ) ,
220222 "-v=debug" . to_string( ) ,
221223 format!( "-V={}" , clang_version) ,
222224 format!( "-l={}" , test_params. lines_changed_only) ,
223- format!( "--ignore-tidy={}" , tool_ignore ) ,
224- format!( "--ignore-format={}" , tool_ignore ) ,
225+ format!( "--ignore-tidy={}" , tidy_ignore ) ,
226+ format!( "--ignore-format={}" , format_ignore ) ,
225227 format!( "--tidy-review={}" , test_params. tidy_review) ,
226228 format!( "--format-review={}" , test_params. format_review) ,
227229 format!( "--passive-reviews={}" , test_params. passive_reviews) ,
0 commit comments