Skip to content

Commit 52b134f

Browse files
refactor(docs): code analysis engine
changes: - file: batch_processor.py area: cli modified: [BatchProcessor, _process_files] - file: output_formatters.py area: cli modified: [output_batch_toon, output_batch_yaml] stats: lines: "+975/-1527 (net -552)" files: 11 complexity: "Large structural change (normalized)"
1 parent bed68ec commit 52b134f

File tree

15 files changed

+993
-1530
lines changed

15 files changed

+993
-1530
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
124124
- **Tree-sitter for all** — syntax validation for 165+ languages
125125
- **Example 07** — comprehensive multi-language demo with 8 languages
126126

127+
## [0.1.13] - 2026-03-23
128+
129+
### Docs
130+
- Update README.md
131+
- Update TODO.md
132+
- Update project/context.md
133+
134+
### Other
135+
- Update project/analysis.toon
136+
- Update project/dashboard.html
137+
- Update project/flow.toon
138+
- Update project/map.toon
139+
- Update project/project.toon
140+
- Update project/project.yaml
141+
127142
## [0.1.12] - 2026-03-23
128143

129144
### Docs

README.md

Lines changed: 93 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ vallm info
139139
### Generate Validation Summary File
140140

141141
```bash
142-
# JSON summary for entire project
142+
# JSON summary for entire project (with per-file details and issues)
143143
vallm batch . --recursive --format json > validation-summary.json
144144

145-
# YAML summary for src/ directory
145+
# YAML summary for src/ directory (with per-file details and issues)
146146
vallm batch src/ --recursive --format yaml > validation-summary.yaml
147147

148-
# TOON format (compact) for CI/CD
148+
# TOON format (compact, human-readable) with per-file details
149149
vallm batch . --recursive --format toon > validation-summary.toon
150150

151151
# Text format with security checks
@@ -158,6 +158,96 @@ vallm batch . --recursive --semantic --model qwen2.5-coder:7b --format json > fu
158158
vallm batch . --recursive --format json | tee validation-summary.json
159159
```
160160

161+
**Output Structure (JSON/YAML/TOON formats now include per-file details):**
162+
163+
```json
164+
{
165+
"summary": {
166+
"total_files": 146,
167+
"passed": 145,
168+
"failed": 1
169+
},
170+
"files": [
171+
{
172+
"path": "src/proxym/config.py",
173+
"language": "python",
174+
"verdict": "fail",
175+
"score": 0.45,
176+
"issues_count": 3,
177+
"issues": [
178+
{
179+
"validator": "syntax",
180+
"severity": "error",
181+
"message": "Invalid syntax at line 42",
182+
"line": 42,
183+
"column": 15
184+
},
185+
{
186+
"validator": "imports",
187+
"severity": "error",
188+
"message": "Module 'requests' not found",
189+
"line": 5,
190+
"column": 0
191+
}
192+
]
193+
}
194+
],
195+
"failed_files": [
196+
{"path": "src/proxym/config.py", "error": "Validation fail"}
197+
]
198+
}
199+
```
200+
201+
```yaml
202+
---
203+
summary:
204+
total_files: 146
205+
passed: 145
206+
failed: 1
207+
208+
files:
209+
- path: src/proxym/config.py
210+
language: python
211+
verdict: fail
212+
score: 0.45
213+
issues_count: 3
214+
issues:
215+
- validator: syntax
216+
severity: error
217+
message: "Invalid syntax at line 42"
218+
line: 42
219+
column: 15
220+
- validator: imports
221+
severity: error
222+
message: "Module 'requests' not found"
223+
line: 5
224+
```
225+
226+
```toon
227+
# vallm batch | 146f | 145✓ 1✗
228+
229+
SUMMARY:
230+
total: 146
231+
passed: 145
232+
failed: 1
233+
234+
FILES:
235+
[python]
236+
✗ src/proxym/config.py
237+
verdict: fail
238+
score: 0.45
239+
issues: 2
240+
[error] syntax: Invalid syntax at line 42@42
241+
[error] imports: Module 'requests' not found@5
242+
✓ src/proxym/ctl.py
243+
verdict: pass
244+
score: 0.92
245+
issues: 0
246+
247+
FAILED:
248+
✗ src/proxym/config.py: Validation fail
249+
```
250+
161251
### Batch Command Options
162252
163253
| Option | Short | Description |

TODO.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868

6969
## Missing validators (from spec)
7070

71-
- [ ] **LogicalErrorValidator (Tier 1)** — integrate `pyflakes` (already a dependency, not wired up)
72-
- [ ] **LintValidator (Tier 1)** — integrate `ruff` for style/lint checks via subprocess JSON output
71+
- [x] **LogicalErrorValidator (Tier 1)** — integrate `pyflakes` (already a dependency, not wired up) ✅ Implemented
72+
- [x] **LintValidator (Tier 1)** — integrate `ruff` for style/lint checks via subprocess JSON output ✅ Implemented
7373
- [ ] **RegressionValidator (Tier 4)** — test execution + result comparison via `pytest-json-report`
7474
- [ ] **TypeCheckValidator (Tier 2)**`mypy`/`pyright` as optional fast correctness signal
7575

@@ -97,6 +97,7 @@
9797
- [x] **Plugin system tests** - added test coverage for plugin manager in `test_plugins.py`
9898
- [x] **LogicalErrorValidator** - implemented pyflakes integration in `validators/logical.py`
9999
- [x] **LintValidator** - implemented ruff integration in `validators/lint.py`
100+
- [x] **SemanticCache** - implemented caching layer for semantic validation
100101
- [ ] **Type annotations** — add return types to all public functions; run mypy in CI
101102
- [ ] **Docstrings** — several internal methods lack docstrings
102103
- [x] **Tests for semantic validator** - comprehensive test suite exists
@@ -109,4 +110,4 @@
109110
- [x] **Publish automation** — GitHub Actions workflow for PyPI release on tag
110111
- [x] **CONTRIBUTING.md** - comprehensive contribution guidelines ✅
111112

112-
Last updated: 2026-03-23
113+
Last updated: 2026-03-23 (refactoring completed)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.12
1+
0.1.13

0 commit comments

Comments
 (0)