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

패키지 상세v1.3.0

linteo

iteo에서 사용하는 Flutter 및 Dart 린트 규칙

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 환경
  • 공유된 린팅 규칙을 채택하는 팀

고려 사항

  • Dart 린트 규칙에 대한 이해가 필요합니다
  • 비-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

카테고리

소스 저장소

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