energy-state-analyzer 0.21.1 → 0.23.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/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- last_commit_released: f9583492c270550eb172c5a8eb9477bcd6bbf9f5
2
+ last_commit_released: 30a9f7a268fc6d9809015b7bff37614cb4e8cd8b
3
3
  name: energy-state-analyzer
4
4
  updaters:
5
5
  - command: npm version {version} --no-git-tag-version --allow-same-version
@@ -14,6 +14,23 @@ All notable changes to the "energy-state-analyzer" extension are generated by
14
14
  [EasyBuild.ShipIt](https://github.com/easybuild-org/EasyBuild.ShipIt) from
15
15
  [Conventional Commits](https://www.conventionalcommits.org/).
16
16
 
17
+ ## 0.23.0 - 2026-10-29
18
+
19
+ ### 🚀 Features
20
+
21
+ * Detect discarded validation guarantees in Erlang (#189) ([b3f4984](https://github.com/cardamomcode/energy-state-analyzer/commit/b3f49842ab42a97c8858ddee2c8cdef9e23b1228))
22
+ * Add Rust analysis support (#191) ([30a9f7a](https://github.com/cardamomcode/energy-state-analyzer/commit/30a9f7a268fc6d9809015b7bff37614cb4e8cd8b))
23
+
24
+ <strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/8593287df3240c290e1718a2fbc68e3b6cb15c79..30a9f7a268fc6d9809015b7bff37614cb4e8cd8b)</small></strong>
25
+
26
+ ## 0.22.0 - 2026-10-27
27
+
28
+ ### 🚀 Features
29
+
30
+ * Add Erlang analysis support (#187) ([83d2f36](https://github.com/cardamomcode/energy-state-analyzer/commit/83d2f36193fd2bd020afc4332280838a58b3c701))
31
+
32
+ <strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/f9583492c270550eb172c5a8eb9477bcd6bbf9f5..8593287df3240c290e1718a2fbc68e3b6cb15c79)</small></strong>
33
+
17
34
  ## 0.21.1 - 2026-10-03
18
35
 
19
36
  ### 🐞 Bug Fixes
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Energy State Analyzer
2
2
 
3
- Visualizes "energy states" in Python, F#, TypeScript, Kotlin, C++, and C# code as you edit: parts of a file that are complex, deeply nested, or otherwise harder to understand and maintain get highlighted with colored gutter icons, inline decorations, and entries in the Problems panel.
3
+ Visualizes "energy states" in Python, F#, TypeScript, Kotlin, C++, C#, Erlang, and Rust code as you edit: parts of a file that are complex, deeply nested, or otherwise harder to understand and maintain get highlighted with colored gutter icons, inline decorations, and entries in the Problems panel.
4
4
 
5
5
  ![Energy State Analyzer screenshot](https://raw.githubusercontent.com/cardamomcode/energy-state-analyzer/99f806f/images/energy-state-analyzer.png)
6
6
 
7
7
  ## Features
8
8
 
9
- Real-time analysis of the active Python, F#, TypeScript, Kotlin, C++, or C# file, re-run on every edit and on editor focus change, via these detectors (see [docs/detectors](docs/detectors/README.md) for full detail on each):
9
+ Real-time analysis of the active Python, F#, TypeScript, Kotlin, C++, C#, Erlang, or Rust file, re-run on every edit and on editor focus change, via these detectors (see [docs/detectors](docs/detectors/README.md) for full detail on each):
10
10
 
11
11
  - [Cyclomatic complexity](docs/detectors/cyclomatic-complexity.md), too many independent execution paths.
12
12
  - [Cognitive complexity](docs/detectors/cognitive-complexity.md), too hard to read due to nesting.
@@ -53,7 +53,7 @@ interpreting code, and what the metrics reveal.
53
53
  The same detectors also run headlessly, without VS Code, useful for CI or for an AI coding agent fixing findings in code it just generated and verifying the result:
54
54
 
55
55
  ```bash
56
- npx energy-state-analyzer path/to/file.py # or .fs / .fsx / .ts / .kt / .cpp / .cs
56
+ npx energy-state-analyzer path/to/file.py # or .fs / .fsx / .ts / .kt / .cpp / .cs / .erl / .rs
57
57
  ```
58
58
 
59
59
  See [docs/cli.md](docs/cli.md) for scanning a whole repo, aggregated markdown/JSON/human reports, and diffing a PR against a base branch. See [docs/agent-integration.md](docs/agent-integration.md) for wiring the CLI into an AI coding agent's edit-and-verify loop.
@@ -74,7 +74,7 @@ for the current project, or run the command without agent flags to choose target
74
74
 
75
75
  ## Requirements
76
76
 
77
- The extension activates automatically when you open a Python, F#, TypeScript, Kotlin, C++, or C# file; it bundles its own grammars for parsing (via `web-tree-sitter`), so no compiler or external parser is required. F# files only get a `fsharp` language ID (and so trigger analysis) if you have an F# language extension installed (e.g. [Ionide](https://ionide.io/)), VS Code otherwise treats `.fs` files as plain text. The CLI recognizes the full VS Code C++ suffix set, including compound template suffixes such as `.hpp.in`; see [Command-Line Usage](docs/cli.md#supported-file-suffixes).
77
+ The extension activates automatically when you open a Python, F#, TypeScript, Kotlin, C++, C#, Erlang, or Rust file; it bundles its own grammars for parsing (via `web-tree-sitter`), so no compiler or external parser is required. F# files only get a `fsharp` language ID (and so trigger analysis) if you have an F# language extension installed (e.g. [Ionide](https://ionide.io/)), VS Code otherwise treats `.fs` files as plain text. Erlang `.erl` and `.hrl` files and Rust `.rs` files are registered by this extension. The CLI recognizes the full VS Code C++ suffix set, including compound template suffixes such as `.hpp.in`; see [Command-Line Usage](docs/cli.md#supported-file-suffixes).
78
78
 
79
79
  ## Development
80
80
 
@@ -153,4 +153,14 @@ To exclude files/folders (e.g. test fixtures, generated code) from both the exte
153
153
  direct anonymous-callable bindings are not yet treated as file or class responsibilities.
154
154
  - C++ analysis is syntax-only: it does not preprocess macros, resolve includes, instantiate
155
155
  templates, or perform type checking. Macro-generated callable syntax is therefore invisible.
156
+ - Erlang analysis is syntax-only. Each named function clause is analyzed independently; a
157
+ multi-clause function's complexity and parameter count are reported per clause. Type-based
158
+ parameter checks are not implemented for Erlang. Parse-don't-validate recognizes local
159
+ `case`/`if` validators with an explicit rejecting clause, but not validation spread across
160
+ function clauses. Error-boundary scoring currently skips `try ... of` because its success
161
+ clauses need a separate work count.
162
+ - Rust analysis is syntax-only. It recognizes functions, closures, typed parameters, `use`
163
+ imports, and branch expressions, including `match`. Macro-expanded code and type resolution
164
+ are outside the parser. Rust `Result`/`Option` validation and error propagation do not yet
165
+ participate in the parse-don't-validate or error-boundary rules.
156
166
  - Several detectors have per-language gaps beyond the above, see the "Known limitations" section of the relevant [detector doc](docs/detectors/README.md).