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

パッケージ詳細v1.3.0

linteo

iteoで使用されているFlutterおよびDartのlintルール

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
382
いいね数
30
Pub ポイント
150

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

flutter pub add linteo

パッケージ概要

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

Linteо は iteo 内部で開発・利用されている Flutter および Dart のリントパッケージであり、一貫したコーディング基準とベストプラクティスを提供します。事前に定義されたリントルールを通じてコード品質を保証し、プロジェクト全体でクリーンで読みやすく、保守しやすいコードを維持するのを助けます。チームがコードスタイルや構造に一貫性を求めている場合、特に iteo エコシステム内では特に適しています。Android、iOS、Web、macOS、Windows、Linux といったすべての主要プラットフォームをサポートしています。linteo を統合することで、開発者は一般的な問題を早期に検出でき、標準化されたコードレビューを通じて協業を向上させることができます。

用途

  • チーム全体でのコードスタイルの適用
  • マルチプラットフォームアプリにおける一貫性の維持
  • コード品質チェックの自動化
  • CI/CDパイプラインのサポート
  • 新しい開発者のオンボーディングの改善

主な機能

  • iteo の標準からの事前定義された lint ルール
  • クロスプラットフォーム互換性
  • pub add を通じた簡単な統合
  • ベストプラクティスを反映するため定期的に更新されています
  • Flutter および Dart ツールの統合

適している対象

  • Flutter開発チーム
  • 標準化されたコーディング手法を使用する組織
  • 厳格なコード品質を必要とするプロジェクト
  • CI/CD環境
  • 共有のLintルールを採用するチーム

注意事項

  • Dartのlintルールの理解が必要です
  • 非-iteoワークフロー用のカスタマイズが必要になる可能性があります
  • GitHubホストのソースに依存しています
  • 構成なしではスタンドアロンアプリケーションには適していません
  • 共同開発の環境で最も効果的に使用される

元の README

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

linteo

License: MIT style: linteo


Provides set of Flutter and Dart linter rules used at iteo. By default, package enables all available lint rules (all_lint_rules.yaml) and disables some of them upon team agreement.

Install

  1. Depend on this package as a dev_dependency by running flutter pub add --dev linteo
  2. Create analysis_options.yaml file at the root of the package (alongside the pubspec.yaml file) and include: package:linteo/analysis_options.yaml from it.

Which version to use?

Dart Version Linteo Version
3.1 1.3.0
2.17 1.2.0
2.17 1.1.0
2.17 1.0.1
2.18 1.0.0
Example analysis_options.yaml file
include: package:linteo/analysis_options.yaml

linter:
  rules:
    # Adjust package to specific project needs
    # package_api_docs: true  # Uncomment to enable rule

Suppress lint

Your project may require special case. Lint rules can be suppressed at the line, file, or project level.

Line Level

Use an ignore: comment directly above the line

// ignore: public_member_api_docs
class A {}
File level

Use an ignore_for_file: comment at the top of the file


// ignore_for_file: public_member_api_docs

class A {}

class B {}
Project Level

Update root analysis_options.yaml according to your needs:

include: package:linteo/analysis_options.yaml
linter:
  rules:
    public_member_api_docs: true

Badge

Support the project using a badge in your repository

style:linteo

カテゴリー

ソースリポジトリ

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