-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathlints_codes.ml
More file actions
93 lines (51 loc) · 1.65 KB
/
lints_codes.ml
File metadata and controls
93 lines (51 loc) · 1.65 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Codes = struct
(* 5501 - 5541 reserved for FB. *)
let deprecated = 5542
(* 5543 - 5548 reserved. *)
let include_use = 5549
(* 5550 - 5561 reserved. *)
let clone_use = 5562
(* 5563 - 5567 reserved. *)
let loop_variable_shadows_local_variable = 5568
(* 5569 - 5574 reserved. *)
let duplicate_key = 5575
(* 5576 - 5580 reserved. *)
let if_literal = 5581
(* 5582 reserved. *)
let await_in_loop = 5583
(* 5584 - 5607 reserved. *)
let non_equatable_comparison = 5607
let invalid_contains_check = 5608
let is_always_true = 5609
let is_always_false = 5610
let invalid_null_check = 5611
let invalid_switch_case_value_type = 5614
(* 5615 reserved. *)
let missing_override_attribute = 5616
let sketchy_null_check = 5618
let invalid_truthiness_test = 5622
let sketchy_truthiness_test = 5623
let redundant_generic = 5624
(* let deprecated_pocket_universes_reserved_syntax = 5625 *)
let as_invalid_type = 5626
let class_overrides_all_trait_methods = 5627
let as_always_succeeds = 5628
let as_always_fails = 5629
let redundant_nonnull_assertion = 5630
let bool_method_return_hint = 5631
let missing_via_label_attribute = 5632
let nullsafe_not_needed = 5633
let duplicate_property_enum_init = 5634
let duplicate_property = 5635
let loose_unsafe_cast_lower_bound = 5636
let loose_unsafe_cast_upper_bound = 5637
let invalid_disjointness_check = 5638
let inferred_variance = 5639
end