@r_masseater/fu4 0.3.9 → 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/README.md +7 -6
- package/dist/{app-BkrdDFcT.mjs → app-aXU9Rkpj.mjs} +2 -2
- package/dist/{app-BkrdDFcT.mjs.map → app-aXU9Rkpj.mjs.map} +1 -1
- package/dist/{cli-SlvFBz0A.mjs → cli-DJq7rcJu.mjs} +3 -3
- package/dist/{cli-SlvFBz0A.mjs.map → cli-DJq7rcJu.mjs.map} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/define-Dvnt_9zv.mjs +6 -0
- package/dist/define-Dvnt_9zv.mjs.map +1 -0
- package/dist/{index-DM3Q3-YV.d.mts → index-BJIbqoE-.d.mts} +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -2
- package/dist/presets.d.mts +2 -1
- package/dist/presets.mjs +455 -2000
- package/dist/presets.mjs.map +1 -1
- package/dist/rules.d.mts +295 -0
- package/dist/rules.mjs +1 -0
- package/dist/{source-CLFOyvUG.mjs → source-Cnghop8O.mjs} +2 -5
- package/dist/source-Cnghop8O.mjs.map +1 -0
- package/dist/vite.d.mts +1 -1
- package/dist/workflow-rule-C1TJLS9H.mjs +1592 -0
- package/dist/workflow-rule-C1TJLS9H.mjs.map +1 -0
- package/package.json +8 -4
- package/skills/apply-fu4-presets/SKILL.md +6 -2
- package/skills/lint-workflows/SKILL.md +6 -0
- package/dist/source-CLFOyvUG.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ fu4 parses workflows, `action.yml` files, the Dependabot config and pre-commit c
|
|
|
8
8
|
hands the YAML and tree-sitter trees to TypeScript rules without copying them, and runs those
|
|
9
9
|
rules. It ships no rules of its own. Take the official ones from
|
|
10
10
|
the `@r_masseater/fu4/presets` subpath: actionlint's
|
|
11
|
-
checks
|
|
11
|
+
checks, zizmor's audits and a few practices of GitHub Actions. A plugin that adds its own rules builds them with the `@r_masseater/fu4/rules` subpath.
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
npm install -D @r_masseater/fu4 effect
|
|
@@ -51,13 +51,14 @@ parsed source, can parse a `run:` script with `parseScript`, and reports positio
|
|
|
51
51
|
|
|
52
52
|
## Presets
|
|
53
53
|
|
|
54
|
-
List the presets you want in `extends`, or take
|
|
54
|
+
List the presets you want in `extends`, or take all of them with `recommended()`. Every rule of a chosen
|
|
55
55
|
preset is an error. Override one in `rules`, such as `"zizmor/stale-action-refs": "warn"`.
|
|
56
56
|
|
|
57
|
-
| Preset | Rules
|
|
58
|
-
| ------------ |
|
|
59
|
-
| `actionlint` | `actionlint/*`: what [actionlint](https://github.com/rhysd/actionlint) reports, with its shellcheck checks
|
|
60
|
-
| `zizmor` | `zizmor/*`: the audits of [zizmor](https://github.com/zizmorcore/zizmor), with its findings and positions
|
|
57
|
+
| Preset | Rules |
|
|
58
|
+
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
59
|
+
| `actionlint` | `actionlint/*`: what [actionlint](https://github.com/rhysd/actionlint) reports, with its shellcheck checks |
|
|
60
|
+
| `zizmor` | `zizmor/*`: the audits of [zizmor](https://github.com/zizmorcore/zizmor), with its findings and positions |
|
|
61
|
+
| `practices` | `practices/*`: `workflow-cancel` (a push-started workflow must not cancel runs) and `full-history-checkout` (`fetch-depth: 0` downloads more on every run) |
|
|
61
62
|
|
|
62
63
|
`actionlint()` takes the options of actionlint's `actionlint.yaml`.
|
|
63
64
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as sourceOf, o as baseName, r as sourceView } from "./source-
|
|
1
|
+
import { n as sourceOf, o as baseName, r as sourceView } from "./source-Cnghop8O.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { Array as Array$1, Boolean, Effect, Function, Match, Option, Order, Predicate, Record, Schema, String as String$1, pipe } from "effect";
|
|
4
4
|
// src/app/format.ts
|
|
@@ -2388,4 +2388,4 @@ const workflowPathspecs = pathspecsOf({
|
|
|
2388
2388
|
});
|
|
2389
2389
|
export { Fu4Error as a, lintText as i, workflowPathspecs as n, failedWith as o, lint as r, format as s, fu4Section as t };
|
|
2390
2390
|
|
|
2391
|
-
//# sourceMappingURL=app-
|
|
2391
|
+
//# sourceMappingURL=app-aXU9Rkpj.mjs.map
|