energy-state-analyzer 0.23.2 → 0.23.3

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.
@@ -28,6 +28,8 @@ If a file is still going to be flagged and its type signal is confidently measur
28
28
 
29
29
  The count is a dependency-surface signal, not proof that the file has multiple responsibilities. A cohesive cross-cutting test or composition root can legitimately use many dependencies, especially when one capability is exposed through several sibling modules. In that case, first consider a focused facade or qualified access through the common parent; do not split the file solely to reduce the count. A facade is appropriate only when its exports form a coherent capability — a catch-all re-export module just hides genuine coupling.
30
30
 
31
+ Recognized facade re-exports do not contribute to import breadth, member fan-out, or import scope pollution. Rust visibility-marked `pub use` declarations count as re-exports in declarative module facades; private `use` declarations and public uses alongside implementation work still count in `mod.rs`. Python relative `from` imports count as re-exports in an import-only `__init__.py` only when every binding appears in a static `__all__` or uses a same-name alias (`from .part import Name as Name`). Plain imports remain dependencies because tools using [mypy's `--no-implicit-reexport`](https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport) do not treat them as public exports. Absolute imports and initializers with executable work still count. TypeScript `export … from` declarations are already outside the import count, and an `import` followed by `export { … }` is treated as a re-export when every imported binding is exported and the file contains only imports and re-export statements. This syntax-level distinction does not establish that a public facade is cohesive or cheap to load; [Vite's barrel guidance](https://vite.dev/guide/performance#avoid-barrel-files) describes costs that depend on the consumer and its tooling.
32
+
31
33
  **Import member fan-out.** Ten or more explicitly imported declarations from one source are flagged, even when that source counts as only one dependency. Kotlin uses a fixed threshold of 30 because one-declaration-per-import syntax is idiomatic for large external APIs. The configurable threshold applies to other languages. This signal can also arise from Python `from` imports or TypeScript named imports. The message asks whether the file is an intentional composition boundary; it does not prescribe a split or a wildcard import.
32
34
 
33
35
  **Import scope pollution.** A wildcard import is flagged directly because it makes an external scope available without qualification. For F# specifically, the detector also reports **Import scope sprawl** when seven or more opened modules share a parent namespace: `open` brings each module's values into lexical scope, so names can shadow one another and an unqualified reference obscures its origin. Prefer qualified access (for example, `Energy.Languages.Python.pythonLanguageAdapter`) or a small named module alias. C++ `#include` does not have this meaning; `using namespace` is its corresponding scope construct and is outside this detector's current grammar coverage.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "energy-state-analyzer",
3
3
  "displayName": "Energy State Analyzer",
4
4
  "description": "Visualize code energy states in real-time (Python, F#, TypeScript, Kotlin, C++, C#, Erlang, Rust)",
5
- "version": "0.23.2",
5
+ "version": "0.23.3",
6
6
  "publisher": "cardamom-code",
7
7
  "license": "MIT",
8
8
  "icon": "images/icon.png",