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

패키지 상세v0.0.2

flutterando_analysis

Flutterando 커뮤니티의 오픈소스 프로젝트를 위해 만든 Flutter 및 Dart용 린트 규칙.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
352
좋아요
24
Pub 점수
160

패키지 설치

flutter pub add flutterando_analysis

패키지 개요

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

Flutterando 커뮤니티 내 오픈소스 프로젝트를 위해 특별히 설계된 Flutter 및 Dart용 사용자 정의 린트 규칙 모음입니다. 이러한 규칙은 Flutter 애플리케이션에서 코드 일관성, 가독성 및 최선의 실천을 촉진합니다. 이 패키지는 Dart 분석 도구와 원활하게 통합되며 현대적인 Flutter 개발 기준을 지원하도록 조정되었습니다. 커뮤니티 주도 지침을 적용하고 개발 초기 단계에서 일반적인 문제를 조기에 포착함으로써 고품질 코드베이스를 유지하는 데 도움을 줍니다.

사용 사례

  • 오픈소스 플러터 프로젝트에서 일관된 코딩 스타일 적용하기
  • 커뮤니티 승인된 린트 규칙을 통해 코드 품질 향상
  • CI/CD 파이프라인에 표준화된 검사를 통합하기
  • 팀 전체의 코드베이스 일관성 지원
  • Flutter/Dart 코드 내의 악습 패턴 자동 탐지

주요 기능

  • 커뮤니티 주도의 린트 규칙
  • Flutter 및 Dart 최적의 실천 방식에 맞게 설계됨
  • pub add를 통한 간편한 통합
  • 모든 주요 플랫폼과 호환됩니다
  • 확장 가능하고 유지보수하기 쉬운 구성

적합한 대상

  • 오픈소스 플러터 개발자
  • 대규모 플러터 코드베이스를 유지 관리하는 팀
  • 높은 코드 품질을 목표로 하는 프로젝트
  • 정적 분석을 사용하는 CI/CD 환경
  • Flutterando의 코딩 기준을 따르는 개발자

고려 사항

  • Dart linter 구성 이해 필요
  • 비-Flutterando 프로젝트에 맞게 사용자 지정이 필요할 수 있습니다
  • analysis_options.yaml에 올바른 설정이 필요합니다
  • 추가 린트 설정 없이 별도로 사용하기 위한 것이 아님
  • flutter_lints와 같은 다른 품질 도구와 함께 사용하는 것이 가장 좋습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutterando Analysis


Logo

This package provides lint rules for Dart and Flutter which are used in Flutterando's packages and projects. For more information, see the complete list of options.

Report Bug · Request Feature


Version Pub Points Pub Points

Pub Publisher



Table of Contents
  1. About The Project
  2. Sponsors
  3. How to Use
  4. How to Supress Lints
  5. Badge
  6. Contributing
  7. Contact
  8. Acknowledgements


About The Project


Flutterando Analysis are a set of Flutter and Dart Lint rules that are the basis of our projects here at the community. They were inspired and selected from our work experience with other companies, and are backed up by several senior Flutter developers that can guarantee it's usefullness.

This project is distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Sponsors

Logo

(back to top)


How To Use

To use our linter rules import it to your project like this:

a) Adding the package as a dependency in your Pubspec.yaml:

# Add it as a dev dependency
dev_dependencies:
  flutterando_analysis: ^0.0.2

# Or as a normal dependency if you need to
dependencies: 
  flutterando_analysis: ^0.0.2

b) Alternatively, use Dart Pub. You can take out the tag --dev if you want to install as a normal dependency:

  dart pub add --dev flutterando_analysis

After importing it, add an include in your project's analysis_options.yaml:

include: package:flutterando_analysis/flutter.yaml

or, for Dart:

include: package:flutterando_analysis/dart.yaml

There are 4 sets of linter rules that you can choose from:

  • dart.yaml

  • flutter.yaml

  • dart_package.yaml

  • flutter_package.yaml (this second set has the rule "public_member_api_docs" set to True)

See also the analysis_options.0.0.1.yaml to know which rules we are using.


How To Suppress Lints

There may be cases where specific lint rules are undesirable. Lint rules can be suppressed at the line, file, or project level.

An example use case for suppressing lint rules at the file level is suppressing the prefer_const_constructors in order to achieve 100% code coverage. This is due to the fact that const constructors are executed before the tests are run, resulting in no coverage collection.

Line Level

To suppress a specific lint rule for a specific line of code, use an ignore comment directly above the line:

// ignore: public_member_api_docs
class A {}
File Level

To suppress a specific lint rule of a specific file, 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

To suppress a specific lint rule for an entire project, modify analysis_options.yaml:

Example (change flutterando_analysis.yaml for the analysis file you are using, like in the Getting Started section above):

include: package:flutterando_analysis/flutterando_analysis.yaml
linter:
  rules:
    public_member_api_docs: false

(back to top)


Badge

To indicate that your project is using flutterando_analysis you can use this badge:


Just copy and paste in your readme.md the code below:

[![style: Flutterando analysis](https://img.shields.io/badge/style-flutterando__analysis-blueviolet)](https://pub.dev/packages/flutterando_analysis)

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better or questions, please open an issue here, with the appropriate tag. Don't forget to give the project a star! Thanks!

Remember to include a tag, and to follow Conventional Commits and Semantic Versioning when uploading your commit and/or creating the issue.

(back to top)

Contact

Flutterando Community

(back to top)

Acknowledgements

Thanks to the people who contributed to this project.

Disclaimer: this project's readme was based on very_good_analysis' readme.


(back to top)

Maintaned by


Built and maintained by Flutterando.

카테고리

소스 저장소

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