@konvert7/klint 0.35.0 → 0.35.2

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/klint.schema.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v0.35.0/klint.schema.json",
3
+ "$id": "https://raw.githubusercontent.com/konvert7/klint/refs/tags/v0.35.2/klint.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "$schema": {
package/klint.schema.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  $schema: http://json-schema.org/draft-07/schema#
2
- $id: https://raw.githubusercontent.com/konvert7/klint/refs/tags/v0.35.0/klint.schema.json
2
+ $id: https://raw.githubusercontent.com/konvert7/klint/refs/tags/v0.35.2/klint.schema.json
3
3
  type: object
4
4
  properties:
5
5
  $schema:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konvert7/klint",
3
- "version": "0.35.0",
3
+ "version": "0.35.2",
4
4
  "description": "Architecture-as-Code linter for TypeScript. Enforce layer boundaries, import rules, and singleton patterns in YAML.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -70,10 +70,10 @@
70
70
  "zod": "^4.4.3"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@konvert7/klint-darwin-arm64": "0.35.0",
74
- "@konvert7/klint-darwin-x64": "0.35.0",
75
- "@konvert7/klint-linux-x64": "0.35.0",
76
- "@konvert7/klint-win32-x64": "0.35.0"
73
+ "@konvert7/klint-darwin-arm64": "0.35.2",
74
+ "@konvert7/klint-darwin-x64": "0.35.2",
75
+ "@konvert7/klint-linux-x64": "0.35.2",
76
+ "@konvert7/klint-win32-x64": "0.35.2"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@biomejs/biome": "2.4.7",
@@ -55,6 +55,18 @@ Wire it into `klint.yaml` for editor autocomplete and validation:
55
55
 
56
56
  7. **Write a break test** — prove the rule fires on a deliberate violation, and doesn't fire on clean code. Run the test suite to confirm.
57
57
 
58
+ ## Run tracking
59
+
60
+ Every run is recorded in `.klint/stats.json` next to the config. The folder ignores itself, so never add it to `.gitignore`.
61
+
62
+ | Command or flag | Use |
63
+ |---|---|
64
+ | `klint stats [--config <dir>]` | Print runs and errors prevented, in total and per rule. Use it to answer "how much has klint caught?" |
65
+ | `--hook` | Put it only in agent hook commands, e.g. `klint --json --hook`. Leave it off when you run klint yourself, so your runs count as direct. |
66
+ | `KLINT_NO_STATS=1` | Turn recording off for a run, e.g. in a throwaway fixture. |
67
+
68
+ An error counts as prevented once, when a later run no longer reports it. Errors match by rule, file and message, so moving code to another line is not a fix. Warnings are not tracked.
69
+
58
70
  ## Primitive reference
59
71
 
60
72
  ### Layers