This new subcommand should contain checks for certain structural decisions that we recommend from cyberfabric. For instance:
Cargo.toml exists in the path and has a [workspace] entry
Cargo.toml has certain lints (let's say for now what I declared in
|
[workspace.lints.rust] |
|
unsafe_code = "forbid" |
|
|
|
[workspace.lints.clippy] |
|
pedantic = { level = "warn", priority = -1 } |
|
nursery = { level = "warn", priority = -1 } |
|
struct_excessive_bools = "allow" |
|
missing_errors_doc = "allow" |
|
unwrap_used = "deny" |
|
expect_used = "deny" |
)
- There is a folder called
modules and it has rust crates inside, all of them with src/module.rs
- There is a folder called
config with yml or yaml files.
Please, make sure to make them in a generic way(fabric design), so we can easily plug more checks without changing much of the general logic.
Also make sure that this command must have checks that is not related to rust code. For rust code will be lint subcommand with dylint rules, that are made specifically for that purpose.
This new subcommand should contain checks for certain structural decisions that we recommend from cyberfabric. For instance:
Cargo.tomlexists in the path and has a[workspace]entryCargo.tomlhas certainlints(let's say for now what I declared incf-cli/Cargo.toml
Lines 45 to 54 in ae427b9
modulesand it has rust crates inside, all of them withsrc/module.rsconfigwithymloryamlfiles.Please, make sure to make them in a generic way(fabric design), so we can easily plug more checks without changing much of the general logic.
Also make sure that this command must have checks that is not related to rust code. For rust code will be
lintsubcommand with dylint rules, that are made specifically for that purpose.