@@ -28,7 +28,7 @@ type options = {
28
28
gen_saved_ignore_type_errors : bool ;
29
29
ignore_hh_version : bool ;
30
30
enable_ifc : string list ;
31
- enable_global_access_check : string list ;
31
+ enable_global_access_check_files : string list ;
32
32
enable_global_access_check_functions : SSet .t ;
33
33
saved_state_ignore_hhconfig : bool ;
34
34
json_mode : bool ;
@@ -78,11 +78,11 @@ module Messages = struct
78
78
let enable_ifc =
79
79
" run IFC analysis on any file whose path is prefixed by the argument (format: comma separated list of path prefixes)"
80
80
81
- let enable_global_access_check =
82
- " run global write checker on any file whose path is prefixed by the argument (format: comma separated list of path prefixes)"
81
+ let enable_global_access_check_files =
82
+ " run global access checker on any file whose path is prefixed by the argument (format: comma separated list of path prefixes)"
83
83
84
84
let enable_global_access_check_functions =
85
- " run global write checker on functions listed in the JSON file"
85
+ " run global access checker on functions listed in the JSON file"
86
86
87
87
let from = " so we know who's invoking - e.g. nuclide, vim, emacs, vscode"
88
88
@@ -159,7 +159,7 @@ let parse_options () : options =
159
159
let custom_telemetry_data = ref [] in
160
160
let dump_fanout = ref false in
161
161
let enable_ifc = ref [] in
162
- let enable_global_access_check = ref [] in
162
+ let enable_global_access_check_files = ref [] in
163
163
let enable_global_access_check_functions = ref SSet. empty in
164
164
let from = ref " " in
165
165
let from_emacs = ref false in
@@ -195,8 +195,8 @@ let parse_options () : options =
195
195
let set_with_saved_state s = with_saved_state := Some s in
196
196
let set_write_symbol_info s = write_symbol_info := Some s in
197
197
let set_enable_ifc s = enable_ifc := String_utils. split ',' s in
198
- let set_enable_global_access_check s =
199
- enable_global_access_check := String_utils. split ',' s
198
+ let set_enable_global_access_check_files s =
199
+ enable_global_access_check_files := String_utils. split ',' s
200
200
in
201
201
let set_enable_global_access_check_functions s =
202
202
let json_obj = Hh_json. json_of_file s in
@@ -236,9 +236,9 @@ let parse_options () : options =
236
236
(" --daemon" , Arg. Set should_detach, Messages. daemon);
237
237
(" --dump-fanout" , Arg. Set dump_fanout, Messages. dump_fanout);
238
238
(" --enable-ifc" , Arg. String set_enable_ifc, Messages. enable_ifc);
239
- ( " --enable-global-access-check" ,
240
- Arg. String set_enable_global_access_check ,
241
- Messages. enable_global_access_check );
239
+ ( " --enable-global-access-check-files " ,
240
+ Arg. String set_enable_global_access_check_files ,
241
+ Messages. enable_global_access_check_files );
242
242
( " --enable-global-access-check-functions" ,
243
243
Arg. String set_enable_global_access_check_functions,
244
244
Messages. enable_global_access_check_functions );
@@ -355,7 +355,7 @@ let parse_options () : options =
355
355
custom_telemetry_data = ! custom_telemetry_data;
356
356
dump_fanout = ! dump_fanout;
357
357
enable_ifc = ! enable_ifc;
358
- enable_global_access_check = ! enable_global_access_check ;
358
+ enable_global_access_check_files = ! enable_global_access_check_files ;
359
359
enable_global_access_check_functions = ! enable_global_access_check_functions;
360
360
from = ! from;
361
361
gen_saved_ignore_type_errors = ! gen_saved_ignore_type_errors;
@@ -391,7 +391,7 @@ let default_options ~root =
391
391
custom_telemetry_data = [] ;
392
392
dump_fanout = false ;
393
393
enable_ifc = [] ;
394
- enable_global_access_check = [] ;
394
+ enable_global_access_check_files = [] ;
395
395
enable_global_access_check_functions = SSet. empty;
396
396
from = " " ;
397
397
gen_saved_ignore_type_errors = false ;
@@ -441,7 +441,8 @@ let dump_fanout options = options.dump_fanout
441
441
442
442
let enable_ifc options = options.enable_ifc
443
443
444
- let enable_global_access_check options = options.enable_global_access_check
444
+ let enable_global_access_check_files options =
445
+ options.enable_global_access_check_files
445
446
446
447
let enable_global_access_check_functions options =
447
448
options.enable_global_access_check_functions
@@ -531,7 +532,7 @@ let to_string
531
532
custom_telemetry_data;
532
533
dump_fanout;
533
534
enable_ifc;
534
- enable_global_access_check ;
535
+ enable_global_access_check_files ;
535
536
enable_global_access_check_functions;
536
537
from;
537
538
gen_saved_ignore_type_errors;
@@ -626,8 +627,10 @@ let to_string
626
627
let enable_ifc_str =
627
628
Printf. sprintf " [%s]" (String. concat ~sep: " ," enable_ifc)
628
629
in
629
- let enable_global_access_check_str =
630
- Printf. sprintf " [%s]" (String. concat ~sep: " ," enable_global_access_check)
630
+ let enable_global_access_check_files_str =
631
+ Printf. sprintf
632
+ " [%s]"
633
+ (String. concat ~sep: " ," enable_global_access_check_files)
631
634
in
632
635
let enable_global_access_check_functions_str =
633
636
Printf. sprintf
@@ -663,8 +666,8 @@ let to_string
663
666
" enable_ifc: " ;
664
667
enable_ifc_str;
665
668
" , " ;
666
- " enable_global_access_check : " ;
667
- enable_global_access_check_str ;
669
+ " enable_global_access_check_files : " ;
670
+ enable_global_access_check_files_str ;
668
671
" , " ;
669
672
" enable_global_access_check_functions: " ;
670
673
enable_global_access_check_functions_str;
0 commit comments