Skip to main content

sofie_check/
lib.rs

1mod date;
2mod density;
3mod god_type;
4mod lines;
5mod rules;
6mod screens;
7mod structure;
8mod workspace;
9
10pub use date::Date;
11pub use density::CommentDensity;
12pub use god_type::{GodType, rank_god_types};
13pub use rules::{
14    ALLOW_FILE, AllowList, Finding, MAX_UNUSED_PUBLIC_RATIO, MigratedSchema, Rule, check,
15    check_client_feature, check_dead_code, check_flag_ages, missing_gen_exports, report,
16    sort_findings,
17};
18pub use screens::{Screen, Screens};
19pub use structure::{MAX_COMMENT_RATIO, MAX_GOD_TYPE_SCORE, check_structure};
20pub use workspace::{CrateSource, load_workspace_crates};
21
22#[expect(
23    clippy::cast_precision_loss,
24    reason = "line and method counts stay far below 2^52"
25)]
26fn count_as_f64(count: usize) -> f64 {
27    count as f64
28}