summaryrefslogtreecommitdiffstats
path: root/tools/lint/clippy.yml
blob: 8eb8b60da932b3e11bb31ff1d5dabecb4f6db20c (plain)
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
clippy:
    description: Lint rust
    include:
        - build/workspace-hack/
        - dom/midi/midir_impl/
        - dom/media/gtest/
        - dom/webauthn/libudev-sys/
        - gfx/webrender_bindings/
        - gfx/wr/peek-poke/
        - gfx/wr/peek-poke/peek-poke-derive/
        - gfx/wr/webrender_build/
        - gfx/wr/wr_malloc_size_of/
        - js/src/frontend/smoosh/
        - js/src/rust/shared/
        - modules/libpref/init/static_prefs/
        - mozglue/static/rust/
        - netwerk/base/mozurl/
        - servo/components/derive_common/
        - servo/components/selectors/
        - servo/components/servo_arc/
        - servo/components/style/
        - servo/components/style_derive/
        - servo/components/style_traits/
        - servo/components/to_shmem/
        - servo/components/to_shmem_derive/
        - servo/tests/unit/style/
        - testing/geckodriver/
        - testing/mozbase/rust/mozdevice/
        - testing/mozbase/rust/mozprofile/
        - testing/mozbase/rust/mozrunner/
        - testing/mozbase/rust/mozversion/
        - testing/webdriver/
        - third_party/rust/mp4parse/
        - third_party/rust/mp4parse_capi/
        - toolkit/components/kvstore/
        - toolkit/components/glean/
        - toolkit/library/rust/
        - tools/fuzzing/rust/
        - tools/profiler/rust-api/
        - xpcom/rust/gtest/bench-collections/
        - xpcom/rust/xpcom/xpcom_macros/
    exclude:
        # Many are failing for the same reasons:
        # https://bugzilla.mozilla.org/show_bug.cgi?id=1606073
        # https://bugzilla.mozilla.org/show_bug.cgi?id=1606077
        - Cargo.toml
        # nsstring
        # derive_hash_xor_eq
        - gfx/wr/
        - gfx/wr/webrender/
        - gfx/wr/examples/
        # windows-only
        - gfx/wr/example-compositor/compositor-windows/
        - gfx/wr/webrender_api/
        - gfx/wr/wrench/
        - gfx/wgpu_bindings/
        # not_unsafe_ptr_arg_deref
        - modules/libpref/parser/
        - tools/profiler/rust-helper/
        - toolkit/library/rust/shared/
        - toolkit/library/gtest/rust/
        # not_unsafe_ptr_arg_deref
        - remote/
        - dom/media/webrtc/sdp/rsdparsa_capi/
        - intl/encoding_glue/
        # not_unsafe_ptr_arg_deref
        - storage/rust/
        - storage/variant/
        # nsstring
        - servo/ports/geckolib/tests/
        - xpcom/rust/xpcom/
        - xpcom/rust/nsstring/
        - xpcom/rust/gtest/xpcom/
        - xpcom/rust/gtest/nsstring/
        - security/manager/ssl/cert_storage/
        - intl/locale/rust/fluent-langneg-ffi/
        - intl/locale/rust/unic-langid-ffi/
        - toolkit/components/places/bookmark_sync/
        - xpcom/rust/nserror/
        - xpcom/rust/moz_task/
        - xpcom/rust/gkrust_utils/
        - netwerk/socket/neqo_glue/
        - dom/media/webrtc/transport/mdns_service/
        - tools/lint/test/files/clippy/
        - servo/ports/geckolib/
        - servo/ports/geckolib/tests/
        - servo/tests/unit/malloc_size_of/
        - servo/components/malloc_size_of/
        - dom/media/webrtc/sdp/rsdparsa_capi/
        - testing/geckodriver/marionette/
        - toolkit/components/bitsdownload/bits_client/
        - gfx/wr/example-compositor/compositor/
        - toolkit/components/bitsdownload/bits_client/bits/
        # mac and windows only
        - security/manager/ssl/osclientcerts/
    extensions:
        - rs
    support-files:
        - 'tools/lint/clippy/**'
    # the version of cargo-clippy is:
    # clippy 0.1.65 (2019147 2022-09-19)
    # we use the date instead to facilitate the check
    # replacing - by . because Python packaging.version.Version expects this
    min_clippy_version: 2022.09.19
    type: external
    payload: clippy:lint