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
// This product includes software developed at Datadog (https://www.datadoghq.com/) Copyright 2024 Datadog, Inc.
use LintStore;
///
/// One of our lints. These are an abstraction over the top of the
/// core rustc 'LateLintPass' - which does the actual linting in the
/// compilation process.
///
/// They add:
/// * A name, which is used in the diagnostics to refer back to the configuration
/// item.
/// * The ability to check if certain items are targeted by our lint - for instance,
/// namespaces - so that we can print a diagnostic tree of what our rules are actually
/// doing.