energy-state-analyzer 0.21.0 → 0.22.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: c0a6f5a8c518f40f6b98d2641aee901a3cf52182
2
+ last_commit_released: 8593287df3240c290e1718a2fbc68e3b6cb15c79
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,22 @@ 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.22.0 - 2026-10-27
18
+
19
+ ### 🚀 Features
20
+
21
+ * Add Erlang analysis support (#187) ([83d2f36](https://github.com/cardamomcode/energy-state-analyzer/commit/83d2f36193fd2bd020afc4332280838a58b3c701))
22
+
23
+ <strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/f9583492c270550eb172c5a8eb9477bcd6bbf9f5..8593287df3240c290e1718a2fbc68e3b6cb15c79)</small></strong>
24
+
25
+ ## 0.21.1 - 2026-10-03
26
+
27
+ ### 🐞 Bug Fixes
28
+
29
+ * Exempt opaque boolean literals in test files (#171) ([f958349](https://github.com/cardamomcode/energy-state-analyzer/commit/f9583492c270550eb172c5a8eb9477bcd6bbf9f5))
30
+
31
+ <strong><small>[View changes on Github](https://github.com/cardamomcode/energy-state-analyzer/compare/c0a6f5a8c518f40f6b98d2641aee901a3cf52182..f9583492c270550eb172c5a8eb9477bcd6bbf9f5)</small></strong>
32
+
17
33
  ## 0.21.0 - 2026-09-21
18
34
 
19
35
  ### 🏗️ Breaking changes
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#, and Erlang 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#, or Erlang 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.
@@ -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#, or Erlang 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 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,8 @@ 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 and parse-don't-validate analysis are not implemented for Erlang. Error-boundary
159
+ scoring currently skips `try ... of` because its success clauses need a separate work count.
156
160
  - Several detectors have per-language gaps beyond the above, see the "Known limitations" section of the relevant [detector doc](docs/detectors/README.md).