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
- 診断情報
- Lint
Result - リンター実行結果
- Linter
- メインのリンター構造体
- Linter
Config - リンター設定
Enums§
- Diagnostic
Level - 診断結果のレベル
- Output
Format - 出力フォーマット