flowlint 0.7.7 → 0.8.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/README.md CHANGED
@@ -1,88 +1,91 @@
1
- # FlowLint CLI
2
-
3
- Command-line tool for static analysis of n8n workflows.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install -g flowlint
9
- ```
10
-
11
- Or use npx:
12
-
13
- ```bash
14
- npx flowlint scan .
15
- ```
16
-
17
- ## Usage
18
-
19
- ### Scan workflows
20
-
21
- ```bash
22
- # Scan current directory
23
- flowlint scan
24
-
25
- # Scan specific directory
26
- flowlint scan ./workflows
27
-
28
- # Output as JSON
29
- flowlint scan --format json
30
-
31
- # Fail on errors (for CI)
32
- flowlint scan --fail-on-error
33
- ```
34
-
35
- ### Initialize configuration
36
-
37
- ```bash
38
- flowlint init
39
- ```
40
-
41
- Creates a `.flowlint.yml` file in the current directory.
42
-
43
- ## Configuration
44
-
45
- Create a `.flowlint.yml` file:
46
-
47
- ```yaml
48
- files:
49
- include:
50
- - "**/*.n8n.json"
51
- ignore:
52
- - "node_modules/**"
53
-
54
- rules:
55
- rate_limit_retry:
56
- enabled: true
57
- error_handling:
58
- enabled: true
59
- # ... more rules
60
- ```
61
-
62
- ## Rules
63
-
64
- | Rule | Description | Severity |
65
- |------|-------------|----------|
66
- | R1 | Rate limit retry | must |
67
- | R2 | Error handling | must |
68
- | R3 | Idempotency | should |
69
- | R4 | Secrets exposure | must |
70
- | R5 | Dead ends | nit |
71
- | R6 | Long running | should |
72
- | R7 | Alert/log enforcement | should |
73
- | R8 | Unused data | nit |
74
- | R9 | Config literals | should |
75
- | R10 | Naming convention | nit |
76
- | R11 | Deprecated nodes | should |
77
- | R12 | Unhandled error path | must |
78
- | R13 | Webhook acknowledgment | must |
79
- | R14 | Retry-After compliance | should |
80
-
81
- ## License
82
-
1
+ # FlowLint CLI
2
+
3
+ Command-line tool for static analysis of n8n workflows.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g flowlint
9
+ ```
10
+
11
+ Or use npx:
12
+
13
+ ```bash
14
+ npx flowlint scan .
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### Scan workflows
20
+
21
+ ```bash
22
+ # Scan current directory
23
+ flowlint scan
24
+
25
+ # Scan specific directory
26
+ flowlint scan ./workflows
27
+
28
+ # Scan single file
29
+ flowlint scan ./workflows/payment-flow.n8n.json
30
+
31
+ # Output as JSON
32
+ flowlint scan --format json
33
+
34
+ # Fail on errors (for CI)
35
+ flowlint scan --fail-on-error
36
+ ```
37
+
38
+ ### Initialize configuration
39
+
40
+ ```bash
41
+ flowlint init
42
+ ```
43
+
44
+ Creates a `.flowlint.yml` file in the current directory.
45
+
46
+ ## Configuration
47
+
48
+ Create a `.flowlint.yml` file:
49
+
50
+ ```yaml
51
+ files:
52
+ include:
53
+ - "**/*.n8n.json"
54
+ ignore:
55
+ - "node_modules/**"
56
+
57
+ rules:
58
+ rate_limit_retry:
59
+ enabled: true
60
+ error_handling:
61
+ enabled: true
62
+ # ... more rules
63
+ ```
64
+
65
+ ## Rules
66
+
67
+ | Rule | Description | Severity |
68
+ |------|-------------|----------|
69
+ | R1 | Rate limit retry | must |
70
+ | R2 | Error handling | must |
71
+ | R3 | Idempotency | should |
72
+ | R4 | Secrets exposure | must |
73
+ | R5 | Dead ends | nit |
74
+ | R6 | Long running | should |
75
+ | R7 | Alert/log enforcement | should |
76
+ | R8 | Unused data | nit |
77
+ | R9 | Config literals | should |
78
+ | R10 | Naming convention | nit |
79
+ | R11 | Deprecated nodes | should |
80
+ | R12 | Unhandled error path | must |
81
+ | R13 | Webhook acknowledgment | must |
82
+ | R14 | Retry-After compliance | should |
83
+
84
+ ## License
85
+
83
86
  MIT
84
-
85
-
86
- ## Dependencies
87
-
87
+
88
+
89
+ ## Dependencies
90
+
88
91
  This tool depends on [@replikanti/flowlint-core](https://www.npmjs.com/package/@replikanti/flowlint-core) for linting logic.