File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Pre-commit quality checks for Agentic
3+
4+ echo " 🔍 Running pre-commit checks..."
5+
6+ echo " 📦 Building project..."
7+ cargo build || exit 1
8+
9+ echo " 🎨 Checking formatting..."
10+ cargo fmt --check || exit 1
11+
12+ echo " 📋 Running clippy lints..."
13+ cargo clippy -- -D warnings || exit 1
14+
15+ echo " 🧪 Running tests..."
16+ cargo test || exit 1
17+
18+ echo " ✅ All checks passed!"
Original file line number Diff line number Diff line change @@ -537,10 +537,8 @@ impl App {
537537 if self . state == AppState :: Main {
538538 self . state = AppState :: WaitingForConfig ;
539539 }
540- } else {
541- if self . state == AppState :: WaitingForConfig {
542- self . state = AppState :: Main ;
543- }
540+ } else if self . state == AppState :: WaitingForConfig {
541+ self . state = AppState :: Main ;
544542 }
545543 }
546544
You can’t perform that action at this time.
0 commit comments