パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.0

pyramid_lint

Dart および Flutter プロジェクトのための lint ツールで、良いコーディング慣習を促進します。

AndroidiOSmacOSWindowsLinux
30日間ダウンロード
8160
いいね数
13
Pub ポイント
150

パッケージをインストール

flutter pub add pyramid_lint

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Pyramid Lint は、Dart および Flutter のコードスタイルを統一し、コード品質を向上させるために設計されたラインターパッケージです。開発者がクリーンで保守性が高く読みやすいコードを書くのを助けるカスタマイズ可能なルールセットを提供し、開発プロセスの初期段階で一般的な問題を早期に検出します。このツールは Flutter ワークフローにシームレスに統合でき、Android、iOS、macOS、Windows、Linux など複数のプラットフォームをサポートしています。明確なフィードバックとカスタマイズ可能なオプションにより、チームやプロジェクト全体でのベストプラクティスの推進を実現します。

用途

  • チーム間で一貫したコードスタイルを適用する
  • 開発中に潜在的なバグを特定する
  • コードの可読性と保守性の向上
  • CI/CDパイプラインへのlintingの統合
  • 大規模なFlutterプロジェクトの保守をサポートする

主な機能

  • カスタマイズ可能な lint ルール
  • Flutter CLIとのシームレスな統合
  • クロスプラットフォーム対応
  • エラーメッセージをクリアする
  • YAML ファイルによって構成可能

適している対象

  • コード品質を最優先とするFlutterチーム
  • 自動コードレビューを使用する開発者
  • 厳格なコーディング規範を必要とするプロジェクト
  • CI/CD環境
  • オープンソース貢献者

注意事項

  • 最適な使用には設定が必要です
  • チームの好みに応じてルールの調整が必要になる場合があります
  • Dart分析ツールに依存しています
  • Lintingの必要がない基本的なプロジェクトには適していません
  • 初期設定には学習曲線が必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Pyramid Lint logo

Pub Version Build Status License

Custom lints, quick fixes, and assists for Dart and Flutter.

Pyramid Lint

Pyramid Lint extends the Dart analyzer with optional rules for general Dart code and Flutter widgets. Enable only the checks you want, apply quick fixes from your IDE, and run the same analysis from the command line with dart analyze or flutter analyze.

Built as an analyzer plugin on analysis_server_plugin.

Features

  • Lints — Opt-in rules for Dart and Flutter (see available lints).
  • Quick fixes — Automated corrections for many diagnostics in the IDE.
  • Assists — Refactorings such as wrap_with_stack and convert_to_for_in_iterable_indexed_loop.

Requirements

  • Dart 3.10+ or Flutter 3.38+

Installation

Analyzer plugins are configured in the root analysis_options.yaml of your package or workspace via the top-level plugins section (not the legacy analyzer.plugins list).

To add pyramid_lint to your project, add the following to your analysis_options.yaml file:

plugins:
  pyramid_lint: ^3.0.0 # replace with the latest version

Configuration

Enable lints

All Pyramid Lint rules are disabled by default. Turn them on under diagnostics:

plugins:
  pyramid_lint: ^3.0.0
    diagnostics:
      specific_lint_rule: true

Browse the full list in the documentation or copy the recommended preset.

Configure a lint

Some rules accept options under options:

plugins:
  pyramid_lint: ^3.0.0
    diagnostics:
      max_lines_for_file: true
    options:
      max_lines_for_file:
        max_lines: 300

Documentation

Full guides, rule reference, and assists: docs.page/charlescyt/pyramid_lint

Contributing

Contributions are welcome—issues, pull requests, and doc improvements.

See the contributing guide to get started.

License

MIT

カテゴリー

依存関係

依存関係一覧 9 件

ソースリポジトリ

このパッケージを使用しているプロジェクト