Skip to content

[NEW] subcommand check #18

@Bechma

Description

@Bechma

This new subcommand should contain checks for certain structural decisions that we recommend from cyberfabric. For instance:

  1. Cargo.toml exists in the path and has a [workspace] entry
  2. Cargo.toml has certain lints (let's say for now what I declared in

    cf-cli/Cargo.toml

    Lines 45 to 54 in ae427b9

    [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"
    )
  3. There is a folder called modules and it has rust crates inside, all of them with src/module.rs
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions