energy-state-analyzer 0.2.0 → 0.4.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/.esaignore +6 -0
- package/.markdownlint.json +4 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +7 -0
- package/AGENTS.md +84 -0
- package/CHANGELOG.md +24 -1
- package/README.md +40 -102
- package/action.yml +87 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/docs/cli.md +136 -0
- package/docs/detectors/README.md +30 -0
- package/docs/detectors/cognitive-complexity.md +45 -0
- package/docs/detectors/cyclomatic-complexity.md +50 -0
- package/docs/detectors/excessive-nesting.md +23 -0
- package/docs/detectors/file-coherence.md +34 -0
- package/docs/detectors/inversion-opportunities.md +39 -0
- package/docs/detectors/logical-operator-control-flow.md +24 -0
- package/docs/detectors/magic-numbers.md +32 -0
- package/docs/detectors/magic-strings.md +37 -0
- package/docs/detectors/match-opportunities.md +26 -0
- package/docs/detectors/opaque-boolean-literal.md +22 -0
- package/docs/detectors/parameter-explosion.md +21 -0
- package/docs/detectors/primitive-obsession.md +29 -0
- package/docs/detectors/suppression.md +60 -0
- package/docs/energy-and-entropy.md +14 -0
- package/grammars/tree-sitter-kotlin.wasm +0 -0
- package/package.json +11 -4
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "energy-state-analyzer",
|
|
3
3
|
"displayName": "Energy State Analyzer",
|
|
4
|
-
"description": "Visualize code energy states in real-time (Python, F#, TypeScript)",
|
|
5
|
-
"version": "0.
|
|
4
|
+
"description": "Visualize code energy states in real-time (Python, F#, TypeScript, Kotlin)",
|
|
5
|
+
"version": "0.4.0",
|
|
6
6
|
"publisher": "cardamom-code",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"icon": "images/icon.png",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"python",
|
|
23
23
|
"fsharp",
|
|
24
24
|
"typescript",
|
|
25
|
+
"kotlin",
|
|
25
26
|
"code quality",
|
|
26
27
|
"cyclomatic complexity",
|
|
27
28
|
"cognitive complexity",
|
|
@@ -32,7 +33,8 @@
|
|
|
32
33
|
"activationEvents": [
|
|
33
34
|
"onLanguage:python",
|
|
34
35
|
"onLanguage:fsharp",
|
|
35
|
-
"onLanguage:typescript"
|
|
36
|
+
"onLanguage:typescript",
|
|
37
|
+
"onLanguage:kotlin"
|
|
36
38
|
],
|
|
37
39
|
"main": "./dist/extension.js",
|
|
38
40
|
"bin": {
|
|
@@ -186,8 +188,11 @@
|
|
|
186
188
|
"watch-tests": "tsc -p . -w --outDir out",
|
|
187
189
|
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
|
188
190
|
"lint": "eslint src",
|
|
191
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
192
|
+
"format-check": "prettier --check \"src/**/*.ts\"",
|
|
189
193
|
"test": "vscode-test",
|
|
190
|
-
"analyze": "node dist/cli.js"
|
|
194
|
+
"analyze": "node dist/cli.js",
|
|
195
|
+
"license-check": "license-checker --production --onlyAllow \"MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;0BSD;CC0-1.0;Unlicense\" --excludePackages \"$npm_package_name@$npm_package_version\""
|
|
191
196
|
},
|
|
192
197
|
"devDependencies": {
|
|
193
198
|
"@types/mocha": "^10.0.10",
|
|
@@ -198,6 +203,8 @@
|
|
|
198
203
|
"@vscode/vsce": "^3.2.1",
|
|
199
204
|
"copy-webpack-plugin": "^14.0.0",
|
|
200
205
|
"eslint": "^10.9.0",
|
|
206
|
+
"license-checker": "^25.0.1",
|
|
207
|
+
"prettier": "^3.9.6",
|
|
201
208
|
"ts-loader": "^9.4.1",
|
|
202
209
|
"typescript": "^5.9.3",
|
|
203
210
|
"typescript-eslint": "^8.67.0",
|