forked from grandinetech/grandine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclippy.bash
executable file
·90 lines (83 loc) · 2.73 KB
/
clippy.bash
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
#!/usr/bin/env bash
# An array lets us have comments between options without abusing backticks.
options=(
# Check integration tests and benchmarks as well.
--all-targets
--profile test
--features eth2-cache
# TODO(Grandine Team): Clean up `dedicated_executor` and `eth2_libp2p`.
# Go back to linting all packages implicitly.
# Enable `clippy::mod_module_files`.
--no-deps
--package ad_hoc_bench
--package allocator
--package arithmetic
--package attestation_verifier
--package benches
--package binary_utils
--package block_producer
--package bls
--package builder_api
--package clock
--package database
--package deposit_tree
--package directories
--package doppelganger_protection
--package eip_2335
--package eip_7594
--package eth1
--package eth1_api
--package eth2_cache_utils
--package execution_engine
--package factory
--package features
--package fork_choice_control
--package fork_choice_store
--package genesis
--package grandine
--package grandine_version
--package hashing
--package helper_functions
--package http_api
--package http_api_utils
--package interop
--package keymanager
--package kzg_utils
--package liveness_tracker
--package logging
--package metrics
--package operation_pools
--package p2p
--package panics
--package predefined_chains
--package prometheus_metrics
--package runtime
--package serde_utils
--package shuffling
--package signer
--package slasher
--package slashing_protection
--package snapshot_test_utils
--package spec_test_utils
--package ssz
--package ssz_derive
--package state_cache
--package std_ext
--package transition_functions
--package try_from_iterator
--package types
--package validator
--package validator_key_cache
# The `--` lets callers pass `--deny warnings` to the script.
# Lint settings must be specified after a `--`.
--
# `clippy::lint_groups_priority` produces false positives.
# The `--allow` option seems to be the only way to suppress them.
# See <https://github.com/rust-lang/rust-clippy/issues/12270>. A fix was implemented in
# <https://github.com/rust-lang/rust-clippy/pull/12827> but did not make it into Rust 1.80.0.
# The issue used to be mitigated by <https://github.com/rust-lang/rust-clippy/issues/12729>
# until that was fixed in <https://github.com/rust-lang/rust-clippy/pull/12730>,
# which somehow did make into Rust 1.80.0 despite being merged in the same release cycle.
--allow clippy::lint_groups_priority
)
exec cargo clippy "${options[@]}" "$@"