energy-state-analyzer 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +10 -1
- package/README.md +2 -0
- package/dist/cli.js +1 -1
- package/docs/configuration.md +106 -0
- package/docs/detectors/file-coherence.md +6 -2
- package/docs/detectors/parameter-explosion.md +176 -3
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -36,7 +36,7 @@ webpack watch pipeline.
|
|
|
36
36
|
|
|
37
37
|
## Architecture
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Code-quality parameters such as function and import counts are enforced by the analyzer, not by hand-written limits here — the analyzer is authoritative on them, so AGENTS.md does not set those numbers. If the analyzer flags a file, fix it (or challenge the analyzer if you believe its verdict is wrong); otherwise treat its output as final. `src/EnergyState.fsproj` has
|
|
40
40
|
`EnableDefaultCompileItems=false` behavior, so add every new `.fs` file explicitly in dependency
|
|
41
41
|
order.
|
|
42
42
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
last_commit_released:
|
|
2
|
+
last_commit_released: 7951a86146ecb0068b5d308f8a7b80134b819a4f
|
|
3
3
|
name: energy-state-analyzer
|
|
4
4
|
updaters:
|
|
5
5
|
- command: npm version {version} --no-git-tag-version --allow-same-version
|
|
@@ -11,6 +11,15 @@ All notable changes to the "energy-state-analyzer" extension are generated by
|
|
|
11
11
|
[EasyBuild.ShipIt](https://github.com/easybuild-org/EasyBuild.ShipIt) from
|
|
12
12
|
[Conventional Commits](https://www.conventionalcommits.org/).
|
|
13
13
|
|
|
14
|
+
## 0.11.0 - 2026-09-03
|
|
15
|
+
|
|
16
|
+
### 🚀 Features
|
|
17
|
+
|
|
18
|
+
* Make Core.Config the single source of truth for thresholds and options (#74) ([42dcd1d](https://github.com/cardamomcode/energy-state-analyzer/commit/42dcd1d32c29a19fc16cba2c3d4860d0f42f74e3))
|
|
19
|
+
* *(core)* Make import-coherence thresholds configurable (#78) ([7951a86](https://github.com/cardamomcode/energy-state-analyzer/commit/7951a86146ecb0068b5d308f8a7b80134b819a4f))
|
|
20
|
+
|
|
21
|
+
<strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/b2795c89d9df95e46d26171a5393129c8f0208c3..7951a86146ecb0068b5d308f8a7b80134b819a4f)</small></strong>
|
|
22
|
+
|
|
14
23
|
## 0.10.1 - 2026-09-02
|
|
15
24
|
|
|
16
25
|
### 🐞 Bug Fixes
|
package/README.md
CHANGED
|
@@ -66,6 +66,8 @@ for the Extension Development Host.
|
|
|
66
66
|
|
|
67
67
|
Detector thresholds are configurable under **Settings → Energy State Analyzer**. See each detector's doc (linked under Features above) for what a setting does; the keys and defaults are:
|
|
68
68
|
|
|
69
|
+
For project-wide configuration shared between the editor and CLI, set thresholds in an `.esaconfig.json` file instead of — or on top of — these settings. See [docs/configuration.md](docs/configuration.md) for the schema, per-key defaults, and how the file layers over VS Code settings (`defaults < .esaconfig.json < host override`).
|
|
70
|
+
|
|
69
71
|
- `energyStateAnalyzer.cyclomaticComplexity.mediumThreshold` / `.highThreshold` (`10` / `15`)
|
|
70
72
|
- `energyStateAnalyzer.cognitiveComplexity.mediumThreshold` / `.highThreshold` (`15` / `25`)
|
|
71
73
|
- `energyStateAnalyzer.coherence.largeFunctionLines` (`20`)
|