Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Placeholder for improving the Dart fix function. Work in progress. #10

@udiedrichsen

Description

@udiedrichsen

udi@Mac dart_ment % dart run bin/ment.dart analyze
Starting code analysis in ....
✓ Found 25 Dart files (5ms)
✓ Found 1 issues in 1 files (16ms)

✓ Generated 0 suggestions (5.8s)

📊 Analysis Results:

📄 test/src/commands/fix_command_test.dart
[WARN] Issues (1):
❌ TODO(udi): Fix this test - it's failing after adding folder argument support
Summary:
Files analyzed: 25
Files with findings: 1
Total issues: 1

Run "ment fix" to automatically fix these issues.

Update available! 0.2.0 → 0.0.1
Run ment update to update
udi@Mac dart_ment % dart run bin/ment.dart analyze --applyFix
Could not find an option named "--applyFix".

Usage: analyze [path]
-h, --help Print this usage information.
-c, --config Path to configuration file
--api-key Google Gemini API key
-m, --model AI model to use for analysis
[gemini-1.5-flash (default), gemini-1.5-pro]
-s, --[no-]suggestions Generate AI-powered improvement suggestions
(defaults to on)
--all-files Generate AI suggestions for all files, not just those with issues
--apply-fixes Automatically apply fixes for found issues after analysis

Run "ment help" to see global options.
udi@Mac dart_ment % dart run bin/ment.dart analyze --apply-fixes
Starting code analysis in ....
✓ Found 25 Dart files (6ms)
✓ Found 1 issues in 1 files (15ms)

✓ Generated 0 suggestions (5.5s)

📊 Analysis Results:

📄 test/src/commands/fix_command_test.dart
[WARN] Issues (1):
❌ TODO(udi): Fix this test - it's failing after adding folder argument support
Summary:
Files analyzed: 25
Files with findings: 1
Total issues: 1

🛠️ Applying fixes...

📄 Fixing file 1/1: test/src/commands/fix_command_test.dart
✓ ✓ Fix generated (6.8s)
Iteration 2/3: 1 issue remaining
✓ ✓ Fix generated (7.0s)
Iteration 3/3: 1 issue remaining
✓ ✓ Fix generated (7.6s)
[WARN] ⚠️ Reached maximum iterations. 1 issues remaining.

✅ Fixed 3 issues. Run "dart analyze" to verify the fixes.

Update available! 0.2.0 → 0.0.1
Run ment update to update

Metadata

Metadata

Assignees

No one assigned

    Labels

    draftDraft version of an issue

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions