Skip to content

chore: 린트 강화 — strict 모드·버그성 규칙 활성화 + 위반 313건 정리#151

Merged
seizeh merged 1 commit into
mainfrom
chore/lint-hardening
Jul 21, 2026
Merged

chore: 린트 강화 — strict 모드·버그성 규칙 활성화 + 위반 313건 정리#151
seizeh merged 1 commit into
mainfrom
chore/lint-hardening

Conversation

@seizeh

@seizeh seizeh commented Jul 21, 2026

Copy link
Copy Markdown
Owner

요약

'린트가 기본값 그대로' 지적 해소 — 규칙을 실질적으로 강화하고 위반을 전수 정리합니다.

활성화

  • strict-casts(위반 0 — 캐스트 위생이 이미 좋았음) · strict-raw-types
  • unawaited_futures cancel_subscriptions avoid_slow_async_io only_throw_errors prefer_single_quotes(위반 0) directives_ordering
  • strict-inference의도적으로 제외 — 위반 133건 대부분이 타입 인자 표기 강제로 실익 대비 소음

정리 (313건 → 0건*)

유형 건수 방법
directives_ordering·null-aware 122 dart fix 자동
unawaited_futures 30 전부 unawaited() 명시 래핑 — await 추가는 타이밍 의미가 바뀔 수 있어 배제, 현재 동작 보존 + fire-and-forget 의도 명시
strict_raw_type 13 MapMap<dynamic, dynamic> (호출부가 비제네릭 Map 을 넘겨 <String, dynamic> 으로 좁히면 컴파일 파괴)
deprecated 1 테스트 헬퍼 anonKey → publishableKey

* 잔여 6건(전부 info)은 post_create_screen.dart — 진행 중 작업(PR #143·WIP)과 겹쳐 보류. 정리되면 --no-fatal-infos 를 떼고 analyze 완전 게이트로 전환할 수 있습니다.

테스트 104건 통과(동작 무변화 확인), 포맷 게이트 통과.

🤖 Generated with Claude Code

analysis_options 가 flutter_lints 기본값 그대로라는 지적 해소:
- analyzer strict-casts(위반 0)·strict-raw-types 활성화.
  strict-inference 는 위반 133건 대부분이 타입 인자 표기 강제(소음)라 제외
- 규칙 추가: unawaited_futures(await 누락 검출), cancel_subscriptions,
  avoid_slow_async_io, only_throw_errors, prefer_single_quotes,
  directives_ordering
- 정리: directives_ordering 등 122건 dart fix 자동 적용,
  unawaited_futures 30건은 전부 unawaited() 명시 래핑(현재 동작 보존 —
  await 추가는 타이밍 의미가 바뀔 수 있어 배제),
  strict_raw_type 13건은 Map<dynamic, dynamic> 타입 인자 명시,
  테스트 헬퍼의 deprecated anonKey → publishableKey
- 잔여 6건(전부 info)은 post_create_screen.dart — 진행 중 작업과 겹쳐
  보류, 정리 후 analyze fatal-infos 전환 가능

테스트 104건 통과(동작 무변화 확인).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@seizeh
seizeh merged commit e3dc6e6 into main Jul 21, 2026
1 check passed
@seizeh
seizeh deleted the chore/lint-hardening branch July 21, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant