Repository navigation
Expand file tree
/
Copy pathclippy.toml
More file actions
26 lines (23 loc) · 1.8 KB
/
Copy pathclippy.toml
File metadata and controls
26 lines (23 loc) · 1.8 KB
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
# Policy, checks and scoped exceptions:
# https://teamdman.github.io/teamy-docs/code-standards.html
disallowed-methods = [
{ path = "std::env::set_var", reason = "Avoid setting global environment variables; use helpers (tempfile/TempEnv) or design APIs that accept configuration explicitly" },
{ path = "serde_json::from_str", reason = "Use facet_json::from_str instead." },
{ path = "serde_json::from_slice", reason = "Use facet_json::from_slice instead." },
{ path = "serde_json::to_string", reason = "Use facet_json::to_string instead." },
{ path = "serde_json::to_string_pretty", reason = "Use facet_json::to_string_pretty instead." },
{ path = "serde_json::to_writer", reason = "Use facet_json::to_writer_std instead." },
{ path = "serde_json::to_writer_pretty", reason = "Use facet_json::to_writer_std_pretty instead." },
]
disallowed-types = [
{ path = "serde::Serialize", reason = "Use facet::Facet instead of serde derives/traits." },
{ path = "serde::Deserialize", reason = "Use facet::Facet instead of serde derives/traits." },
]
disallowed-macros = [
{ path = "std::print", reason = "Send diagnostics through tracing; render command results into a caller-supplied std::io::Write sink." },
{ path = "std::println", reason = "Send diagnostics through tracing; render command results into a caller-supplied std::io::Write sink." },
{ path = "std::eprint", reason = "Send diagnostics through tracing so filters, log files and terminal ownership apply." },
{ path = "std::eprintln", reason = "Send diagnostics through tracing so filters, log files and terminal ownership apply." },
{ path = "std::ptr::addr_of_mut", reason = "Use `&raw mut` or `&const` instead." },
{ path = "serde_json::json", reason = "Use facet_json value construction or typed Facet models instead." },
]