[linters] Add a reset option for linters-def-folder

Reviewed By: jvillard

Differential Revision: D5573312

fbshipit-source-id: 9b69d40
master
Dulma Churchill 8 years ago committed by Facebook Github Bot
parent 7be5df384e
commit c435ba2c76

@ -1237,9 +1237,16 @@ and linters_def_file =
~meta:"file" "Specify the file containing linters definition (e.g. 'linters.al')" ~meta:"file" "Specify the file containing linters definition (e.g. 'linters.al')"
and linters_def_folder = and linters_def_folder =
CLOpt.mk_path_list ~default:[] ~long:"linters-def-folder" let linters_def_folder =
~in_help:CLOpt.([(Capture, manual_clang_linters)]) CLOpt.mk_path_list ~default:[] ~long:"linters-def-folder"
~meta:"dir" "Specify the folder containing linters files with extension .al" ~in_help:CLOpt.([(Capture, manual_clang_linters)])
~meta:"dir" "Specify the folder containing linters files with extension .al"
in
let _ =
CLOpt.mk_set linters_def_folder [] ~long:"reset-linters-def-folder"
"Reset the list of folders containing linters definitions to be empty (see $(b,linters-def-folder))."
in
linters_def_folder
and linters_ignore_clang_failures = and linters_ignore_clang_failures =
CLOpt.mk_bool ~long:"linters-ignore-clang-failures" CLOpt.mk_bool ~long:"linters-ignore-clang-failures"

Loading…
Cancel
Save