Bug 1843532 - Refactor Statistics::computeMMU to make it easier to understand r=sfink
[gecko.git] / tools / lint / clippy.yml
blob960291b299ea1405cf7d2838d6c22f47662a4adc
1 ---
2 clippy:
3     description: Lint rust
4     include:
5         - build/workspace-hack/
6         - dom/midi/midir_impl/
7         - dom/media/gtest/
8         - dom/webauthn/libudev-sys/
9         - gfx/webrender_bindings/
10         - gfx/wr/peek-poke/
11         - gfx/wr/peek-poke/peek-poke-derive/
12         - gfx/wr/webrender_build/
13         - gfx/wr/wr_malloc_size_of/
14         - js/src/frontend/smoosh/
15         - js/src/rust/shared/
16         - modules/libpref/init/static_prefs/
17         - mozglue/static/rust/
18         - netwerk/base/mozurl/
19         - servo/components/derive_common/
20         - servo/components/selectors/
21         - servo/components/servo_arc/
22         - servo/components/style/
23         - servo/components/style_derive/
24         - servo/components/style_traits/
25         - servo/components/to_shmem/
26         - servo/components/to_shmem_derive/
27         - servo/tests/unit/style/
28         - testing/geckodriver/
29         - testing/mozbase/rust/mozdevice/
30         - testing/mozbase/rust/mozprofile/
31         - testing/mozbase/rust/mozrunner/
32         - testing/mozbase/rust/mozversion/
33         - testing/webdriver/
34         - third_party/rust/mp4parse/
35         - third_party/rust/mp4parse_capi/
36         - toolkit/crashreporter/mozannotation_client/
37         - toolkit/crashreporter/mozannotation_server/
38         - toolkit/components/kvstore/
39         - toolkit/components/glean/
40         - toolkit/library/rust/
41         - tools/fuzzing/rust/
42         - tools/profiler/rust-api/
43         - xpcom/rust/gtest/bench-collections/
44         - xpcom/rust/xpcom/xpcom_macros/
45     exclude:
46         # Many are failing for the same reasons:
47         # https://bugzilla.mozilla.org/show_bug.cgi?id=1606073
48         # https://bugzilla.mozilla.org/show_bug.cgi?id=1606077
49         - Cargo.toml
50         # nsstring
51         # derive_hash_xor_eq
52         - gfx/wr/
53         - gfx/wr/webrender/
54         - gfx/wr/examples/
55         # windows-only
56         - gfx/wr/example-compositor/compositor-windows/
57         - gfx/wr/webrender_api/
58         - gfx/wr/wrench/
59         - gfx/wgpu_bindings/
60         # not_unsafe_ptr_arg_deref
61         - modules/libpref/parser/
62         - tools/profiler/rust-helper/
63         - toolkit/library/rust/shared/
64         - toolkit/library/gtest/rust/
65         # not_unsafe_ptr_arg_deref
66         - remote/
67         - dom/media/webrtc/sdp/rsdparsa_capi/
68         - intl/encoding_glue/
69         # not_unsafe_ptr_arg_deref
70         - storage/rust/
71         - storage/variant/
72         # nsstring
73         - servo/ports/geckolib/tests/
74         - xpcom/rust/xpcom/
75         - xpcom/rust/nsstring/
76         - xpcom/rust/gtest/xpcom/
77         - xpcom/rust/gtest/nsstring/
78         - security/manager/ssl/cert_storage/
79         - intl/locale/rust/fluent-langneg-ffi/
80         - intl/locale/rust/unic-langid-ffi/
81         - toolkit/components/places/bookmark_sync/
82         - xpcom/rust/nserror/
83         - xpcom/rust/moz_task/
84         - xpcom/rust/gkrust_utils/
85         - netwerk/socket/neqo_glue/
86         - dom/media/webrtc/transport/mdns_service/
87         - tools/lint/test/files/clippy/
88         - servo/ports/geckolib/
89         - servo/ports/geckolib/tests/
90         - servo/tests/unit/malloc_size_of/
91         - servo/components/malloc_size_of/
92         - dom/media/webrtc/sdp/rsdparsa_capi/
93         - testing/geckodriver/marionette/
94         - toolkit/components/bitsdownload/bits_client/
95         - gfx/wr/example-compositor/compositor/
96         - toolkit/components/bitsdownload/bits_client/bits/
97         # mac and windows only
98         - security/manager/ssl/osclientcerts/
99     extensions:
100         - rs
101     support-files:
102         - 'tools/lint/clippy/**'
103     # the version of cargo-clippy is:
104     # clippy 0.1.65 (2019147 2022-09-19)
105     # we use the date instead to facilitate the check
106     # replacing - by . because Python StrictVersion expects this
107     min_clippy_version: 2022.09.19
108     type: external
109     payload: clippy:lint