Debian Codegraph @

clippy.toml

raw symbols SCIP
1 avoid-breaking-exported-api = false
2 disallowed-macros = [
3 # Can also use an inline table with a `path` key.
4 { path = "std::print", reason = "no IO allowed" },
5 { path = "std::println", reason = "no IO allowed" },
6 { path = "std::format", reason = "no string allocation allowed" },
7 { path = "std::debug", reason = "debugging macros should not be present in any release" },
8 # NOTE: unimplemented is fine because this can be for intentionally disabled methods
9 { path = "std::todo", reason = "should never have TODO macros in releases" },
10 ]
11 disallowed-methods = [
12 { path = "std::io::stdout", reason = "no IO allowed" },
13 { path = "std::io::stdin", reason = "no IO allowed" },
14 { path = "std::io::stderr", reason = "no IO allowed" },
15 ]
16 disallowed-types = [
17 { path = "std::io::File", reason = "no IO allowed" },
18 { path = "std::io::BufReader", reason = "need our own abstractions for reading/writing" },
19 { path = "std::io::BufWriter", reason = "need our own abstractions for reading/writing" },
20 ]