|
|
@ -2419,20 +2419,19 @@ let process_iphoneos_target_sdk_version_path_regex args =
|
|
|
|
List.map ~f:process_iphoneos_target_sdk_version_path_regex args
|
|
|
|
List.map ~f:process_iphoneos_target_sdk_version_path_regex args
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type linter_doc_url = {linter: string; doc_url: string}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let process_linters_doc_url args =
|
|
|
|
let process_linters_doc_url args =
|
|
|
|
let linters_doc_url arg =
|
|
|
|
let linters_doc_url arg =
|
|
|
|
match String.lsplit2 ~on:':' arg with
|
|
|
|
match String.lsplit2 ~on:':' arg with
|
|
|
|
| Some (linter, doc_url) ->
|
|
|
|
| Some linter_doc_url_assoc ->
|
|
|
|
{linter; doc_url}
|
|
|
|
linter_doc_url_assoc
|
|
|
|
| None ->
|
|
|
|
| None ->
|
|
|
|
L.(die UserError)
|
|
|
|
L.(die UserError)
|
|
|
|
"Incorrect format for the option linters-doc-url. The correct format is linter:doc_url \
|
|
|
|
"Incorrect format for the option linters-doc-url. The correct format is linter:doc_url \
|
|
|
|
but got %s"
|
|
|
|
but got %s"
|
|
|
|
arg
|
|
|
|
arg
|
|
|
|
in
|
|
|
|
in
|
|
|
|
List.map ~f:linters_doc_url args
|
|
|
|
let linter_doc_url_assocs = List.rev_map ~f:linters_doc_url args in
|
|
|
|
|
|
|
|
fun ~linter_id -> List.Assoc.find ~equal:String.equal linter_doc_url_assocs linter_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(** Freeze initialized configuration values *)
|
|
|
|
(** Freeze initialized configuration values *)
|
|
|
@ -2637,6 +2636,8 @@ and gen_previous_build_command_script = !gen_previous_build_command_script
|
|
|
|
|
|
|
|
|
|
|
|
and generated_classes = !generated_classes
|
|
|
|
and generated_classes = !generated_classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and get_linter_doc_url = process_linters_doc_url !linters_doc_url
|
|
|
|
|
|
|
|
|
|
|
|
and html = !html
|
|
|
|
and html = !html
|
|
|
|
|
|
|
|
|
|
|
|
and icfg_dotty_outfile = !icfg_dotty_outfile
|
|
|
|
and icfg_dotty_outfile = !icfg_dotty_outfile
|
|
|
@ -2686,8 +2687,6 @@ and linters_def_file = !linters_def_file
|
|
|
|
|
|
|
|
|
|
|
|
and linters_def_folder = !linters_def_folder
|
|
|
|
and linters_def_folder = !linters_def_folder
|
|
|
|
|
|
|
|
|
|
|
|
and linters_doc_url = process_linters_doc_url !linters_doc_url
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and linters_developer_mode = !linters_developer_mode
|
|
|
|
and linters_developer_mode = !linters_developer_mode
|
|
|
|
|
|
|
|
|
|
|
|
and linters_ignore_clang_failures = !linters_ignore_clang_failures
|
|
|
|
and linters_ignore_clang_failures = !linters_ignore_clang_failures
|
|
|
|