Crate kotoba_linter

Crate kotoba_linter 

Source
Expand description

Kotoba Code Linter

Denoの deno lint に似た使い勝手で、.kotoba ファイルの 静的解析と品質チェックを行います。

§使用方法

# ファイルのリンター実行
kotoba lint file.kotoba

# ディレクトリ内の全ファイルをチェック
kotoba lint .

# JSON形式で出力
kotoba lint --format json file.kotoba

# 特定のルールを無効化
kotoba lint --rules "no-unused-vars,no-shadowing" file.kotoba

Re-exports§

pub use config::*;
pub use rules::*;
pub use diagnostics::*;
pub use analyzer::*;
pub use reporter::*;

Modules§

analyzer
ASTベースの解析モジュール
config
リンター設定管理モジュール
diagnostics
診断結果処理モジュール
reporter
診断レポート出力モジュール
rules
リンターール定義モジュール

Structs§

Diagnostic
診断情報
LintResult
リンター実行結果
Linter
メインのリンター構造体
LinterConfig
リンター設定

Enums§

DiagnosticLevel
診断結果のレベル
OutputFormat
出力フォーマット

Functions§

lint_directory
lint_files
便利関数
print_stats
統計情報