From 315c4ae6b79fad9bd7c2bbefa073221af075b346 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Mon, 8 Sep 2025 11:03:46 +0530 Subject: [PATCH] Tell Claude to format after every code change --- mobile/apps/photos/CLAUDE.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mobile/apps/photos/CLAUDE.md b/mobile/apps/photos/CLAUDE.md index ccd188ff55..1dc576066d 100644 --- a/mobile/apps/photos/CLAUDE.md +++ b/mobile/apps/photos/CLAUDE.md @@ -31,7 +31,10 @@ The Photos app uses two types of packages: **CRITICAL: CI will fail if ANY of these checks fail. Run ALL commands and ensure they ALL pass.** ```bash -# 1. Analyze flutter code for errors and warnings +# 1. Format Dart code +dart format . + +# 2. Analyze flutter code for errors and warnings flutter analyze ``` @@ -164,11 +167,12 @@ lib/ ## Critical Coding Requirements ### 1. Code Quality - MANDATORY -**Every code change MUST pass `flutter analyze` with zero issues** +**Every code change MUST pass `dart format .` and `flutter analyze` with zero issues** +- Run `dart format .` first to format all Dart code - Run `flutter analyze` after EVERY code modification - Resolve ALL issues (info, warning, error) - no exceptions - The codebase has zero issues by default, so any issue is from your changes -- DO NOT commit or consider work complete until `flutter analyze` passes cleanly +- DO NOT commit or consider work complete until both commands pass cleanly ### 2. Component Reuse - MANDATORY **Always try to reuse existing components**