zerum 0.1.0

Deterministic-first Python code governance: native checks (ZR001–ZR010), CLI, and SARIF/JSON reporters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::config::Config;
use crate::parser::ParsedFile;
use std::path::{Path, PathBuf};

pub struct CheckContext<'a> {
    pub path: &'a Path,
    pub source: &'a str,
    pub parsed: &'a ParsedFile,
    pub config: &'a Config,
}

impl<'a> CheckContext<'a> {
    pub fn file_path(&self) -> PathBuf {
        self.path.to_path_buf()
    }
}