-
Notifications
You must be signed in to change notification settings - Fork 1
/
.hhconfig
76 lines (66 loc) · 2.32 KB
/
.hhconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ignored_paths = [ "vendor/.+/tests/.+", "vendor/.+/bin/.+"]
; ;---------------------;
; ; Known good settings ;
; ;---------------------;
disallow_toplevel_requires = true
disable_static_closures = true
disable_halt_compiler = true
unsafe_rx = false
disallow_invalid_arraykey = true
disallow_byref_dynamic_calls = true
disallow_byref_calls = true
typecheck_xhp_cvars = true
check_xhp_attribute = true
disallow_invalid_arraykey_constraint = true
disable_legacy_soft_typehints = true
disable_unset_class_const = true
check_attribute_locations = true
disallow_func_ptrs_in_constants = true
disable_xhp_element_mangling=true
enable_xhp_class_modifier=true
disable_xhp_children_declarations=true
disallow_scrutinee_case_value_type_mismatch = true
new_inference_lambda = true
disallow_array_literal = true
const_default_func_args = true
disallow_silence = true
disable_lval_as_an_expression = true
error_php_lambdas = true
disallow_invalid_arraykey=true
disallow_array_literal=true
new_inference_lambda=true
disable_xhp_children_declarations=true
disallow_fun_and_cls_meth_pseudo_funcs = true
;------------------------------;
; Setting that I am working on ;
;------------------------------;
allowed_decl_fixme_codes=2053,4045,4047
allowed_fixme_codes_strict=2011,2049,2050,2053,2083,3084,4026,4027,4045,4047,4104,4106,4107,4108,4009,4053,4110,4128,4135,4188,4200,4223,4240,4248,4259,4281,4323,4387,4390,4401
disable_modes=true
enable_strict_string_concat_interp=true
;------------------;
; Failing settings ;
;------------------;
; disable_partially_abstract_typeconsts = true
; disable_hh_ignore_error=true
; deregister_php_stdlib = true
; disallow_array_typehint = true
; disable_legacy_attribute_syntax = true
;-------------------------------------------;
; Settings that don't appear to do anything ;
;-------------------------------------------;
; allow_goto = false
; disallow_execution_operator = true
; disable_nontoplevel_declarations = true
; disallow_ambiguous_lambda = true
; disallow_unresolved_type_variables = true
;------------------------------------------------;
; Settings which I don't know what they might do ;
;------------------------------------------------;
; union_intersection_type_hints = false
; simple_pessimize = ??
; complex_coercion = ??
; infer_missing = ??
; const_static_props = ??
; const_attribute = ??
; abstract_static_props = ??