signify-rs 0.4.0

OpenBSD-compatible file signing & verification tool
# signify-rs's clippy configuration
# please use cargo +nightly clippy if/when you can

cognitive-complexity-threshold = 10
max-fn-params-bools = 0
type-complexity-threshold = 150
disallowed-macros = [
    'std::dbg',
    'std::todo',
    'std::unimplemented',
]
disallowed-methods = [
    # Panics on invalid UTF-8, use var_os instead.
    "std::env::var",

    # Panics on invalid UTF-8, use syd::compat::getdents64 instead.
    "std::fs::read_dir",
    "std::fs::read_to_string",

    # Use proper error handling.
    "std::option::Option::expect",
    "std::option::Option::unwrap",
    "std::result::Result::expect",
    "std::result::Result::unwrap",

    # Use the tempdir crate instead.
    "std::env::temp_dir",

    # Use `std::thread::Builder` and name the thread.
    "std::thread::spawn",

    # We compile with panic = "abort".
    "std::panic::catch_unwind",

    # Panicing UTF-8 validation in environment variables.
    # use std::env::var_os instead.
    "std::env::var",

    # Use OpenOptions with explicit intent.
    "std::fs::File::open",
    "std::fs::File::create",
]
disallowed-types = [
]
doc-valid-idents = [
    "..",
]