패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.0.0

pyramid_lint

Dart 및 Flutter 프로젝트를 위한 린팅 도구로, 좋은 코딩 관행을 장려합니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
8.2천
좋아요
13
Pub 점수
150

패키지 설치

flutter pub add pyramid_lint

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Pyramid Lint는 일관된 코딩 관행을 적용하고 코드 품질을 향상시키기 위해 설계된 Dart 및 Flutter 린터 패키지입니다. 개발자가 깔끔하고 유지보수 용이하며 가독성이 좋은 코드를 작성할 수 있도록 도와주는 사용자 정의 가능한 규칙 세트를 제공하며, 개발 과정 초기에 일반적인 문제를 조기에 포착합니다. 이 도구는 Flutter 워크플로우에 원활하게 통합되며 Android, iOS, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 명확한 피드백과 구성 가능한 옵션을 통해 팀과 프로젝트 전반에서 최선의 실천 방식을 촉진합니다.

사용 사례

  • 팀 간에 일관된 코드 스타일을 적용하기
  • 개발 중 잠재적인 버그 식별
  • 코드의 가독성과 유지보수성 향상
  • CI/CD 파이프라인에 린팅 통합하기
  • 대규모 플러터 프로젝트 유지보수 지원

주요 기능

  • 사용자 정의 가능한 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 개

소스 저장소

이 패키지를 사용하는 프로젝트