pub struct Linter { /* private fields */ }
Expand description
メインのリンター構造体
Implementations§
Source§impl Linter
impl Linter
Sourcepub fn new(config: LinterConfig) -> Self
pub fn new(config: LinterConfig) -> Self
新しいリンターを作成
Sourcepub async fn from_config_file() -> Result<Self, Box<dyn Error>>
pub async fn from_config_file() -> Result<Self, Box<dyn Error>>
設定ファイルからリンターを作成
Sourcepub async fn lint_file(
&self,
file_path: &PathBuf,
) -> Result<LintResult, Box<dyn Error>>
pub async fn lint_file( &self, file_path: &PathBuf, ) -> Result<LintResult, Box<dyn Error>>
単一ファイルをチェック
Sourcepub async fn lint_files(
&self,
files: Vec<PathBuf>,
) -> Result<Vec<LintResult>, Box<dyn Error>>
pub async fn lint_files( &self, files: Vec<PathBuf>, ) -> Result<Vec<LintResult>, Box<dyn Error>>
複数のファイルをチェック
Sourcepub async fn lint_directory(
&self,
dir: PathBuf,
) -> Result<Vec<LintResult>, Box<dyn Error>>
pub async fn lint_directory( &self, dir: PathBuf, ) -> Result<Vec<LintResult>, Box<dyn Error>>
ディレクトリ内のファイルをチェック
Auto Trait Implementations§
impl Freeze for Linter
impl !RefUnwindSafe for Linter
impl !Send for Linter
impl !Sync for Linter
impl Unpin for Linter
impl !UnwindSafe for Linter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more