From 23479c61bdec87082849a17ebbaf2d6f1b830d9d Mon Sep 17 00:00:00 2001 From: Hensell Date: Sun, 28 Dec 2025 06:12:22 -0600 Subject: [PATCH] feat: add .dart_tool to project purge targets and disk analyzer (#179) --- cmd/analyze/cleanable.go | 1 + cmd/analyze/constants.go | 1 + lib/clean/project.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/cmd/analyze/cleanable.go b/cmd/analyze/cleanable.go index c74f7c7..b7ecae0 100644 --- a/cmd/analyze/cleanable.go +++ b/cmd/analyze/cleanable.go @@ -105,6 +105,7 @@ var projectDependencyDirs = map[string]bool{ "Pods": true, ".build": true, "Carthage": true, + ".dart_tool": true, // Other tools ".terraform": true, // Terraform plugins diff --git a/cmd/analyze/constants.go b/cmd/analyze/constants.go index b38e8de..cc65417 100644 --- a/cmd/analyze/constants.go +++ b/cmd/analyze/constants.go @@ -138,6 +138,7 @@ var foldDirs = map[string]bool{ ".build": true, "xcuserdata": true, "Carthage": true, + ".dart_tool": true, // Web frameworks ".angular": true, diff --git a/lib/clean/project.sh b/lib/clean/project.sh index ee67baa..5763c2c 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -21,6 +21,7 @@ readonly PURGE_TARGETS=( "obj" # C# / Unity ".turbo" # Turborepo cache ".parcel-cache" # Parcel bundler + ".dart_tool" # Flutter/Dart build cache ) # Minimum age in days before considering for cleanup