@replikanti/flowlint-core 0.9.5 → 0.9.6
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/README.md +3 -11
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @replikanti/flowlint-core
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
|
-
Core
|
|
5
|
+
Core static analysis engine for [n8n](https://n8n.io) workflows. This package contains the parser, rules engine, and default rule definitions.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ const findings = runAllRules(workflow, {
|
|
|
26
26
|
|
|
27
27
|
// Process findings
|
|
28
28
|
findings.forEach(finding => {
|
|
29
|
-
console.log(
|
|
29
|
+
console.log([${finding.severity.toUpperCase()}] ${finding.rule}: ${finding.message});
|
|
30
30
|
});
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -50,14 +50,6 @@ findings.forEach(finding => {
|
|
|
50
50
|
|
|
51
51
|
- `validateN8nWorkflow(data: unknown): void` - Validate workflow structure
|
|
52
52
|
|
|
53
|
-
## Testing
|
|
54
|
-
|
|
55
|
-
Run tests with coverage reporting:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm run test:coverage
|
|
59
|
-
```
|
|
60
|
-
|
|
61
53
|
## Rules
|
|
62
54
|
|
|
63
55
|
This package includes 14 built-in rules:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replikanti/flowlint-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Core linting engine for n8n workflows",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "tsup
|
|
21
|
+
"build": "tsup",
|
|
22
22
|
"test": "vitest run",
|
|
23
|
-
"test:watch": "vitest",
|
|
24
23
|
"test:coverage": "vitest run --coverage",
|
|
25
|
-
"lint": "eslint
|
|
26
|
-
"
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"release": "release-please"
|
|
27
26
|
},
|
|
28
27
|
"keywords": [
|
|
29
28
|
"n8n",
|
|
@@ -52,7 +51,7 @@
|
|
|
52
51
|
"devDependencies": {
|
|
53
52
|
"@types/micromatch": "4.0.10",
|
|
54
53
|
"@types/node": "24.10.4",
|
|
55
|
-
"@vitest/coverage-v8": "4.0.16",
|
|
54
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
56
55
|
"tsup": "8.5.1",
|
|
57
56
|
"typescript": "5.9.3",
|
|
58
57
|
"vitest": "4.0.16"
|