Skip to main content

crap4rust/
function_report.rs

1// Copyright 2025 Umberto Gotti <umberto.gotti@umbertogotti.dev>
2// Licensed under the MIT License
3// SPDX-License-Identifier: MIT
4
5use serde::Serialize;
6
7use crate::verdict::Verdict;
8
9#[derive(Debug, Clone, Serialize)]
10pub struct FunctionReport {
11    pub package_name: String,
12    pub name: String,
13    pub relative_file: String,
14    pub line: usize,
15    pub complexity: u32,
16    pub coverage: f64,
17    pub crap_score: f64,
18    pub verdict: Verdict,
19}