[linters] Disable filtering by path in debug or no-filtering mode

Reviewed By: ryanrhee

Differential Revision: D5369250

fbshipit-source-id: 88e5289
master
Dulma Churchill 7 years ago committed by Facebook Github Bot
parent a5c999db1e
commit 431b5c6ede

@ -52,7 +52,9 @@ let filter_parsed_linters_by_path parsed_linters source_file =
let filter_parsed_linters parsed_linters source_file = let filter_parsed_linters parsed_linters source_file =
let linters = filter_parsed_linters_developer parsed_linters in let linters = filter_parsed_linters_developer parsed_linters in
filter_parsed_linters_by_path linters source_file if (Config.debug_mode || not Config.filtering) then
linters (* do not filter by path if in debug or no filtering mode *)
else filter_parsed_linters_by_path linters source_file
let pp_linters fmt linters = let pp_linters fmt linters =
let pp_linter fmt {issue_desc={name}} = let pp_linter fmt {issue_desc={name}} =

@ -9,7 +9,7 @@ TESTS_DIR = ../../..
ANALYZER = linters ANALYZER = linters
CLANG_OPTIONS = -fobjc-arc -c CLANG_OPTIONS = -fobjc-arc -c
INFER_OPTIONS = --cxx --linters-def-file linters_example.al --no-filtering --debug-exceptions --project-root $(TESTS_DIR) --no-failures-allowed INFER_OPTIONS = --cxx --linters-def-file linters_example.al --project-root $(TESTS_DIR) --no-failures-allowed
INFERPRINT_OPTIONS = --issues-tests INFERPRINT_OPTIONS = --issues-tests
SOURCES = \ SOURCES = \

Loading…
Cancel
Save