@mark1russell7/conventions 0.52.4 → 0.52.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 +5 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts +46 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-DfHH0aZb.js → run-DiufwTof.js} +215 -13
- package/build/run-DiufwTof.js.map +1 -0
- package/package.json +2 -2
- package/build/run-DfHH0aZb.js.map +0 -1
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
56
56
|
| `required-scripts` | The root `package.json` has the script `typecheck`. It also has `lint:ste` when the repository uses `ste-lint`: a dependency on `@mark1russell7/ste-lint`, or a `ste.config.json` at the root. The shared CI skips a missing script, so a removed script turns its check off with no sign. | client, coeval, crawler, private, headroom, Vex `ste-prose`. systems `lint-ste-in-ci`. coeval, crawler, headroom, Vex `tsconfig-test`. |
|
|
57
57
|
| `no-build-output` | Git keeps no file in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
|
|
58
58
|
| `no-local-paths` | No tracked file has the home folder of a user: `C:\Users\<name>`, `/Users/<name>` or `/home/<name>`. A CI user (`runner`), a name of one character and a placeholder (`<you>`) are not a break. The commit messages of the change (a pull request, or `--base`) and the title and the body of the pull request do not have one either. The same is true for each pattern of the option `patterns` and of the environment variable `CONVENTIONS_PRIVATE_PATTERNS`. A break of a private pattern shows only the line of the pattern in the variable, not the text. A line of the variable that is not a valid regular expression is a break of its own. | client `I12`. systems `no-identifying-names`, `no-private-identifiers`, `no-private-names`. coeval `no-private-names`. |
|
|
59
|
+
| `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `@mark1russell7/otel-ts`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). The rule is a ratchet. The check fails when the count is not the option `baseline`. Thus a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default day is 2027-01-20, the last day, and a repository can set only an earlier day. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
|
|
59
60
|
| `release-files` | A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a line `Release-Edit: <reason>` in a commit message or in the body of the pull request. The commits of the release bot (the sync of the template) need no reason. | coeval `no-release-edit`, `no-release-edits`. crawler `no-release-edit`, `no-release-edits`. headroom `no-release-edits`, `release-files-frozen`. |
|
|
60
61
|
| `unreleased-change` | A change does not set a version that npm has: the release skips such a version. The rule compares the version of the head of the change with the version of its merge base, so a version that only the base branch changed does not count. A repository where each pull request sets its version sets the option `versionEachChange`. Then a change of the shipped files also raises the version, when npm has that version already. The files that ship are the files of the folder of the package, without the tests, the fixtures, the Markdown files and the configs (the option `unshipped`). When the package has the field `files`, an entry that git tracks ships its files. An entry that git does not track is build output. Then the inputs of the build ship: each file of `src/`, and each script, module and JSON file. The files of `main` and `bin` also ship. A change of `package.json` ships when a field of the option `fields` changes, for example `exports`, but not the dependencies. On a push to the default branch, a version that the push sets breaks only when npm had it before the push. The release of the same push can publish it. An error of the registry makes the rule show `skip`. A repository with `.changeset/config.json`, a private package and a version `0.0.0` or `0.0.0-<stage>` are not examined. | rigor #18 and #20 (2026-11-02): two pull requests set the same version, and the second change did not get to npm. crawler, coeval, template `release.yml`. |
|
|
61
62
|
| `version-title` | A merge whose title names a version sets a version in a `package.json`. A title names a version in parentheses at its end, for example `(0.3.3)` before the `(#212)` of a squash, or after `Release` at its start. On a push to the default branch, the rule examines each commit of the first-parent line against its first parent. On a pull request, it reads the title of the event file and examines the merge commit against the base. On a dispatched run of a pull request, the file of `CONVENTIONS_PULL_REQUEST` gives the title. Then the rule examines the change from the merge base to the head. A version counts only when the base branch does not have it already. A title with no version passes. A title that names an other version than the version that the merge sets also passes, because the change gets a release. | template #212 (`5933b34`) and #215 (`e077054`), 2026-11-06: both set `site-pages` 0.3.3, so the squash of #215 changed no `package.json`, and no release started. Template #162 and #164 (2026-11-04) did the same with 0.2.5. crawler, coeval `release.yml`. |
|
|
@@ -146,6 +147,10 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
146
147
|
| `no-build-output.reports` | `["coverage"]` | The names of the folders of reports. Such a folder breaks the rule only next to a `package.json`. |
|
|
147
148
|
| `no-local-paths.allow` | `[]` | More user names that are not a break. |
|
|
148
149
|
| `no-local-paths.patterns` | `[]` | More regular expressions of text that no file has. The environment variable `CONVENTIONS_PRIVATE_PATTERNS` adds one on each line, so a private name stays out of `package.json`. The shared CI gives the variable from the secret of the same name. |
|
|
150
|
+
| `no-console.fail` | `false` | Each call fails the check also before the day `failFrom`. |
|
|
151
|
+
| `no-console.failFrom` | `2027-01-20` | The day from which each call fails. A day after 2027-01-20 fails the check. |
|
|
152
|
+
| `no-console.baseline` | `-1` (no baseline) | The count of the calls in the sources. The check fails when the count is not the baseline. |
|
|
153
|
+
| `no-console.skip` | the globs of tests, fixtures, scripts, benches and examples | The files that are not sources. |
|
|
149
154
|
| `release-files.paths` | `[".github/workflows/release.yml", "scripts/release/**"]` | The globs of the files of the release flow. |
|
|
150
155
|
| `release-files.trailer` | `Release-Edit` | The key of the line that gives the reason. |
|
|
151
156
|
| `release-files.authors` | `["mark1russell7-release-train[bot]"]` | The authors of the release flow. Their commits need no reason. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -59,6 +59,12 @@ interface OptionSpec {
|
|
|
59
59
|
}
|
|
60
60
|
/** A field of `package.json`, as the rules read it. */
|
|
61
61
|
type Manifest = Readonly<Record<string, unknown>>;
|
|
62
|
+
/** The state that the function `decide` of a rule reads: the breaks after the exceptions, and the day of the check. */
|
|
63
|
+
interface RuleState {
|
|
64
|
+
readonly breaks: readonly Break[];
|
|
65
|
+
/** The day of the check, `YYYY-MM-DD` (UTC). */
|
|
66
|
+
readonly today: string;
|
|
67
|
+
}
|
|
62
68
|
/** A `package.json` file of the repository. */
|
|
63
69
|
interface PackageInfo {
|
|
64
70
|
/** The folder, relative to the root, with `/`. The root is `""`. */
|
|
@@ -131,6 +137,18 @@ interface Rule {
|
|
|
131
137
|
*/
|
|
132
138
|
readonly failsFrom?: string;
|
|
133
139
|
check(context: RuleContext, options: Options): RuleOutcome;
|
|
140
|
+
/**
|
|
141
|
+
* This function gives a reason when the breaks of the rule are only warnings with these options. An example is a
|
|
142
|
+
* rule that warns until a repository sets an option. It gives undefined when a break fails the check. With no function, a
|
|
143
|
+
* break fails the check after the day `failsFrom`.
|
|
144
|
+
*/
|
|
145
|
+
warnOnly?(options: Options): string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* This function decides if the breaks of the rule fail the check. It gives the reason of a warning, or undefined when the
|
|
148
|
+
* breaks fail. With this function, the rule decides alone: the day `failsFrom` and `warnOnly` do not apply. A ratchet
|
|
149
|
+
* uses it, because it compares the count of the breaks with a baseline on the day of the check.
|
|
150
|
+
*/
|
|
151
|
+
decide?(options: Options, state: RuleState): string | undefined;
|
|
134
152
|
/**
|
|
135
153
|
* This function gives the reason when the rule cannot read a part of its cases, for example a private source that CI
|
|
136
154
|
* does not give. It gives undefined when the rule reads each part. The check then shows "no read" and the reason with
|
|
@@ -490,6 +508,33 @@ export declare const REAL_COMPARE = "process.argv[1] !== undefined && realpathSy
|
|
|
490
508
|
export declare function hasImportMetaMain(range: unknown): boolean;
|
|
491
509
|
export declare const mainCheck: Rule;
|
|
492
510
|
export declare const noBuildOutput: Rule;
|
|
511
|
+
/** The files that are not sources: tests, fixtures, scripts, benches and examples. The census of 2026-11-25 uses the same split. */
|
|
512
|
+
export declare const NOT_SOURCE: readonly string[];
|
|
513
|
+
/** The kind of a call of `console`. */
|
|
514
|
+
type ConsoleKind = "output" | "diagnostic";
|
|
515
|
+
/** This function tells if a source file is a CLI file: it starts with `#!`, its path names a CLI, or it reads `process.argv`. */
|
|
516
|
+
export declare function isCliFile(file: string, text: string): boolean;
|
|
517
|
+
/** This function gives the kind of a call of `console.<method>` in a file. */
|
|
518
|
+
export declare function consoleKind(cli: boolean, method: string): ConsoleKind;
|
|
519
|
+
/** This function gives a break for each call of `console` in the text of one source file. */
|
|
520
|
+
export declare function consoleBreaks(file: string, text: string): Break[];
|
|
521
|
+
/** The last day of the warnings: from this day each call fails in each repository. A repository cannot set a later day. */
|
|
522
|
+
export declare const CONSOLE_LAST_DAY = "2027-01-20";
|
|
523
|
+
/** The decision of the rule for one repository. */
|
|
524
|
+
interface ConsoleGate {
|
|
525
|
+
/** True when the calls fail the check. */
|
|
526
|
+
readonly fails: boolean;
|
|
527
|
+
/** The reason, in words for the owner of the repository. */
|
|
528
|
+
readonly why: string;
|
|
529
|
+
/** True when the reason is a problem of the options or the baseline, so the check gives it as a break of `package.json`. */
|
|
530
|
+
readonly summary: boolean;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* This function decides the rule for a repository: the options, the count of the calls in its sources and the day of the
|
|
534
|
+
* check. A baseline of -1 is no baseline.
|
|
535
|
+
*/
|
|
536
|
+
export declare function consoleGate(options: Options, count: number, today: string): ConsoleGate;
|
|
537
|
+
export declare const noConsole: Rule;
|
|
493
538
|
/**
|
|
494
539
|
* The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
|
|
495
540
|
* `schema/private-names.schema.json` tells its form. This module parses the list and finds its names in a line or in a
|
|
@@ -1277,5 +1322,5 @@ export declare function npmUrl(name: string, version: string): string;
|
|
|
1277
1322
|
* link to npm. The Releases page of `site-pages` reads each list item as a change.
|
|
1278
1323
|
*/
|
|
1279
1324
|
export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
|
|
1280
|
-
export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type EventClass, type ExpressionValue, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type JobPeak, type KeyLines, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PeakOptions, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type RunPart, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
|
|
1325
|
+
export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConsoleGate, type ConsoleKind, type ConventionsConfig, type Edit, type EventClass, type ExpressionValue, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type JobPeak, type KeyLines, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PeakOptions, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type RuleState, type RunPart, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
|
|
1281
1326
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;;;;;wBAmBzB,kBAAkB,KAAK,YAAY;;wBAsBnC,OAAO,cAAc;;wBAOrB,mBAAmB;;qBActB,UAAW,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAA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;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as requiredScripts, $n as
|
|
1
|
+
import { $ as requiredScripts, $n as SECURITY_SCAN_INPUTS, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as npmNames, Ar as codePackages, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as callsSharedCi, Br as repositoryOfRemote, Bt as privatePatterns, C as setVersions, Cn as HOMES, Cr as readWorkflow, Ct as pagesAfterRelease, D as trustPolicy, Dn as mapText, Dr as DEPENDENCY_FIELDS, Dt as pagesSite, E as TRAIN_SCOPES, En as mapMarkdown, Er as cuePreset, Et as pagesCalls, F as sourceMain, Fn as hasTests, Fr as matchesAny, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as securityGate, Gr as defaultOptions, Gt as isAllowedHit, H as calledJobs, Hn as setupCue, Hr as runGitShow, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as tsconfigTest, Ir as parseCatFileBatch, It as invalidPatternBreaks, J as evaluateExpression, Jn as addSummaryJob, Jt as lineNameHits, K as runsAtOnce, Kn as securityWorkflow, Kr as parseConfig, Kt as isCommonUse, L as blockHash, Ln as SHARED_ACTIONS, Lr as parseJsonc, Lt as noLocalPaths, M as testsRequired, Mn as SERVICE_PACKAGE, Mr as inFolder, Mt as HOME_PATTERNS, N as isSourcePath, Nn as runCalls, Nr as keyLine, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as mergeHomes, Or as RULE_WARN_DAYS, Ot as exportsRequire, P as pathsOf, Pn as serviceRunMain, Pr as lineOf, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as SECURITY_SCAN_COMMIT, Qt as pathNameHit, R as githubFetch, Rn as SHARED_CI, Rr as readJsonc, Rt as privateNamesFile, S as namedVersions, Sn as HOME_EXPORTS, Sr as readAction, St as siteCheckInCi, T as IGNORE_AFTER, Tn as findHomes, Tr as STRICT_OPTIONS, Tt as PAGES_WORKFLOWS, U as eventClass, Un as SECURITY_FILE, Ur as showFiles, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as sharedCi, Vr as runGit, Vt as privateTextBreaks, W as matrixPeak, Wn as isSecurityGate, Wr as specifiersOf, Wt as firstNameMatch, X as mayRun, Xn as startsOnPullRequest, Xt as nameMatches, Y as groupParts, Yn as hasSummaryJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as summaryJobRule, Zt as parsePrivateNames, _ as runPrePushArgs, _n as homePackage, _r as summaryJob, _t as swallowsTests, a as listRules, an as noConsole, ar as scheduleMinute, at as reachOf, b as GITHUB_YAML, bn as reposOf, br as MATRIX_EXPAND_MAX, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as licenseFile, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as repositoryIsPublic, dt as unreleasedChangeRule, en as NOT_SOURCE, er as SECURITY_TIMEOUT_MINUTES, et as releaseFiles, f as NO_READ_LINE, fn as homeModule, fr as ACTIONS_COMMIT, ft as playwrightInstall, g as prePush, gn as declaredName, gr as skippableJobs, gt as startsTests, h as parsePrePushArgs, hn as modulesOf, hr as prPathFilters, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as runnerBudget, it as publishedMinorRule, j as typedFiles, jn as readOverlay, jr as hasFile, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as npmDrift, kr as cleanPath, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as licenseFileOf, lt as npmLookup, m as installHook, mn as moduleUses, mr as gateTrigger, mt as jobFails, n as annotations, nn as consoleGate, nr as securityOneJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as LICENSE_TEXTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as moduleMessage, pr as convertGate, pt as hiddenFailures, q as workflowPeaks, qn as SUMMARY_GATES, qr as parseRuleConfig, qt as lineNameHit, r as createContext, rn as consoleKind, rr as withOneJob, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as authorOf, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as securityCallers, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as mitText, ut as unreleasedChange, v as RULES, vn as messageOf, vr as summaryName, vt as pipeFails, w as versionTitle, wn as MAP_RULE, wr as yamlFaults, wt as pushMainOnly, x as workflowParses, xn as signaturesOf, xr as parseWorkflow, xt as pinnedGitDeps, y as workspaceProtocol, yn as repoOf, yr as gateAfterCancel, yt as isGitSpecifier, z as sharedDocsRule, zn as SHARED_WORKFLOWS, zr as replaceLine, zt as privateNamesFiles } from "./run-DiufwTof.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
|
|
3
3
|
import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-_CIq-8ei.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
66
66
|
if (section.length <= 1e5) return section;
|
|
67
67
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
68
68
|
}
|
|
69
|
-
export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, calledJobs, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
|
+
export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, calledJobs, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -3607,7 +3607,7 @@ function importsService(text) {
|
|
|
3607
3607
|
/** A call of `run(` on a value, but not on `this`. */
|
|
3608
3608
|
const RUN_CALL = /(?<!\bthis)\.run\s*\(/;
|
|
3609
3609
|
/** The source files that the rule reads. */
|
|
3610
|
-
const SOURCE = /\.(c|m)?tsx?$/;
|
|
3610
|
+
const SOURCE$1 = /\.(c|m)?tsx?$/;
|
|
3611
3611
|
/**
|
|
3612
3612
|
* This function gives the lines (from 1) of the calls of `run(` in a source text that imports the service package. A
|
|
3613
3613
|
* text that imports only the tool entries (`/channel`, `/clock`, `/heartbeat`, `/backoff`, `/limiter`, `/rules`) has
|
|
@@ -3671,7 +3671,7 @@ const serviceRunMain = {
|
|
|
3671
3671
|
if (!dependsOnService(info.manifest) || !hasFile(info.dir, main)) continue;
|
|
3672
3672
|
const prefix = info.folder === "" ? "" : `${info.folder}/`;
|
|
3673
3673
|
const entry = inFolder(info.folder, main);
|
|
3674
|
-
const own = tracked.filter((path) => path.startsWith(`${prefix}src/`) && SOURCE.test(path) && !/\.d\.(c|m)?ts$/.test(path) && path !== entry && !isTestFile(path.slice(prefix.length)));
|
|
3674
|
+
const own = tracked.filter((path) => path.startsWith(`${prefix}src/`) && SOURCE$1.test(path) && !/\.d\.(c|m)?ts$/.test(path) && path !== entry && !isTestFile(path.slice(prefix.length)));
|
|
3675
3675
|
for (const file of own.sort(byCode)) {
|
|
3676
3676
|
let text;
|
|
3677
3677
|
try {
|
|
@@ -4862,7 +4862,7 @@ const HOMES = [
|
|
|
4862
4862
|
{
|
|
4863
4863
|
area: "plain-text",
|
|
4864
4864
|
title: "Plain text helpers",
|
|
4865
|
-
covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form). Escaping comes first",
|
|
4865
|
+
covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form), a printer of lines and tables to injected streams (entry /print: the output of a CLI for a person; a diagnostic goes to a log record of otel-ts). Escaping comes first",
|
|
4866
4866
|
packages: ["@mark1russell7/text"],
|
|
4867
4867
|
repo: "mark1russell7/text",
|
|
4868
4868
|
state: "published",
|
|
@@ -4883,7 +4883,11 @@ const HOMES = [
|
|
|
4883
4883
|
"secret",
|
|
4884
4884
|
"mask",
|
|
4885
4885
|
"error message",
|
|
4886
|
-
"thrown value"
|
|
4886
|
+
"thrown value",
|
|
4887
|
+
"printer",
|
|
4888
|
+
"cli output",
|
|
4889
|
+
"status line",
|
|
4890
|
+
"console"
|
|
4887
4891
|
],
|
|
4888
4892
|
signatures: [
|
|
4889
4893
|
"escapeHtml",
|
|
@@ -4896,7 +4900,8 @@ const HOMES = [
|
|
|
4896
4900
|
"snakeCase",
|
|
4897
4901
|
"pluralize",
|
|
4898
4902
|
"redactSecrets",
|
|
4899
|
-
"errorMessage"
|
|
4903
|
+
"errorMessage",
|
|
4904
|
+
"createPrinter"
|
|
4900
4905
|
]
|
|
4901
4906
|
},
|
|
4902
4907
|
{
|
|
@@ -17015,7 +17020,7 @@ function unpublishedNote(home) {
|
|
|
17015
17020
|
return home.state === "unpublished" ? ` (not on npm: use workspace:* inside ${home.repo}; elsewhere a github: specifier pinned to a commit works only if ${home.repo} keeps its built files in git, else wait for the first npm publish)` : "";
|
|
17016
17021
|
}
|
|
17017
17022
|
/** This function gives the message of a break: the home, and if the home already exports the name. */
|
|
17018
|
-
function messageOf(file, name, home) {
|
|
17023
|
+
function messageOf$1(file, name, home) {
|
|
17019
17024
|
const exporter = home.packages.find((pkg) => HOME_EXPORTS[pkg]?.names.includes(name) === true);
|
|
17020
17025
|
const where = home.packages.length === 0 ? home.repo : home.packages.map((pkg) => `\`${pkg}\``).join(", ");
|
|
17021
17026
|
const use = unpublishedNote(home);
|
|
@@ -17071,7 +17076,7 @@ const homePackage = {
|
|
|
17071
17076
|
if (signature !== void 0) breaks.push({
|
|
17072
17077
|
file,
|
|
17073
17078
|
line: index + 1,
|
|
17074
|
-
message: messageOf(file, name, signature.home)
|
|
17079
|
+
message: messageOf$1(file, name, signature.home)
|
|
17075
17080
|
});
|
|
17076
17081
|
});
|
|
17077
17082
|
}
|
|
@@ -17091,7 +17096,7 @@ const homePackage = {
|
|
|
17091
17096
|
*/
|
|
17092
17097
|
const STATIC = /^[ \t]*(?:import|export)[ \t]+(type[ \t]+)?(?:(?:(?!\b(?:import|export)\b)[^;=()"'`])*?\bfrom[ \t]*)?(["'])([^"'\r\n]+)\2/gm;
|
|
17093
17098
|
/** A call that loads a module: `import("x")`, `require("x")` or `process.getBuiltinModule("x")`. */
|
|
17094
|
-
const CALL = /\b(import|require|getBuiltinModule)[ \t]*\([ \t]*(["'`])([^"'`\r\n]+)\2[ \t]*\)/g;
|
|
17099
|
+
const CALL$1 = /\b(import|require|getBuiltinModule)[ \t]*\([ \t]*(["'`])([^"'`\r\n]+)\2[ \t]*\)/g;
|
|
17095
17100
|
/** The text after `import("x")` that makes it a type: a member that is not a method of a promise. */
|
|
17096
17101
|
const TYPE_MEMBER = /^[ \t]*\.[ \t]*(?!then\b|catch\b|finally\b)[A-Za-z_$]/;
|
|
17097
17102
|
/** This function gives the line (from 1) of each index of `text`, by the starts of the lines. */
|
|
@@ -17129,7 +17134,7 @@ function moduleUses(text) {
|
|
|
17129
17134
|
}
|
|
17130
17135
|
});
|
|
17131
17136
|
}
|
|
17132
|
-
for (const match of text.matchAll(CALL)) {
|
|
17137
|
+
for (const match of text.matchAll(CALL$1)) {
|
|
17133
17138
|
const start = text.lastIndexOf("\n", match.index) + 1;
|
|
17134
17139
|
const before = text.slice(start, match.index);
|
|
17135
17140
|
if (before.includes("//") || /^[ \t]*(?:\*|\/\*)/.test(before)) continue;
|
|
@@ -18082,6 +18087,192 @@ const noBuildOutput = {
|
|
|
18082
18087
|
}));
|
|
18083
18088
|
}
|
|
18084
18089
|
};
|
|
18090
|
+
// src/rules/no-console.ts
|
|
18091
|
+
/**
|
|
18092
|
+
* The rule `no-console`: no source file calls `console`. Each call is one of two kinds, and the break names the kind.
|
|
18093
|
+
*
|
|
18094
|
+
* - Output for a person: the text, the tables and the status lines of a command-line tool. It goes to the printer of
|
|
18095
|
+
* `@mark1russell7/text/print` (`createPrinter`), with the streams as parameters.
|
|
18096
|
+
* - A diagnostic of a library or a service: a warning, a debug line, a caught error. It goes to a log record through the
|
|
18097
|
+
* logger of `@mark1russell7/otel-ts` (`getLogger`), with its trace context, and not to a printer.
|
|
18098
|
+
*
|
|
18099
|
+
* A call in a CLI file is output, except `console.debug` and `console.trace`. A CLI file starts with `#!`, has the name
|
|
18100
|
+
* `cli`, `main` or a folder `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic,
|
|
18101
|
+
* except `console.table`, which is output.
|
|
18102
|
+
*
|
|
18103
|
+
* The rule is a ratchet. A repository writes its count in the option `baseline`. The check fails when the count is not
|
|
18104
|
+
* the baseline: a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default
|
|
18105
|
+
* day is `CONSOLE_LAST_DAY`, and a repository can set an earlier day, but not a later day.
|
|
18106
|
+
*/
|
|
18107
|
+
/** The files that the rule reads: the sources of JavaScript and TypeScript, and the pages and components that hold scripts. */
|
|
18108
|
+
const SOURCE = /\.(?:[cm]?[jt]s|[jt]sx|svelte|vue|html)$/;
|
|
18109
|
+
/** The files that are not sources: tests, fixtures, scripts, benches and examples. The census of 2026-11-25 uses the same split. */
|
|
18110
|
+
const NOT_SOURCE = [
|
|
18111
|
+
"**/*.d.ts",
|
|
18112
|
+
"**/*.test.*",
|
|
18113
|
+
"**/*.spec.*",
|
|
18114
|
+
"**/*.e2e.*",
|
|
18115
|
+
"**/*.probe.ts",
|
|
18116
|
+
"**/test/**",
|
|
18117
|
+
"**/tests/**",
|
|
18118
|
+
"**/__tests__/**",
|
|
18119
|
+
"**/e2e/**",
|
|
18120
|
+
"**/fixture/**",
|
|
18121
|
+
"**/fixtures/**",
|
|
18122
|
+
"**/script/**",
|
|
18123
|
+
"**/scripts/**",
|
|
18124
|
+
"**/bin/**",
|
|
18125
|
+
"**/tools/**",
|
|
18126
|
+
"**/bench/**",
|
|
18127
|
+
"**/benches/**",
|
|
18128
|
+
"**/benchmark/**",
|
|
18129
|
+
"**/benchmarks/**",
|
|
18130
|
+
"**/example/**",
|
|
18131
|
+
"**/examples/**",
|
|
18132
|
+
"**/demo/**"
|
|
18133
|
+
];
|
|
18134
|
+
/** A call of a method of `console`. The group `method` is the name of the method. */
|
|
18135
|
+
const CALL = /\bconsole\s*\.\s*(?<method>[A-Za-z]+)\s*\(/g;
|
|
18136
|
+
/** A line that is a comment: it starts with `//`, `/*` or `*`. */
|
|
18137
|
+
const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
|
|
18138
|
+
/** The path of a CLI file: a folder `cli`, `bin` or `commands`, or a file `cli.*` or `main.*`. */
|
|
18139
|
+
const CLI_PATH = /(?:^|\/)(?:cli|bin|commands?)(?:\/|\.)|(?:^|[/._-])(?:cli|main)\.[a-z]+$/;
|
|
18140
|
+
/** This function tells if a source file is a CLI file: it starts with `#!`, its path names a CLI, or it reads `process.argv`. */
|
|
18141
|
+
function isCliFile(file, text) {
|
|
18142
|
+
return text.startsWith("#!") || CLI_PATH.test(file) || /\bprocess\.argv\b/.test(text);
|
|
18143
|
+
}
|
|
18144
|
+
/** This function gives the kind of a call of `console.<method>` in a file. */
|
|
18145
|
+
function consoleKind(cli, method) {
|
|
18146
|
+
if (method === "table") return "output";
|
|
18147
|
+
return cli && method !== "debug" && method !== "trace" ? "output" : "diagnostic";
|
|
18148
|
+
}
|
|
18149
|
+
/** This function gives the message of a break: the call, its kind and where it goes. */
|
|
18150
|
+
function messageOf(file, method, kind) {
|
|
18151
|
+
return kind === "output" ? `${file} calls console.${method} for output to a person. Write it with createPrinter of @mark1russell7/text/print.` : `${file} calls console.${method} for a diagnostic. Emit a log record with the logger of @mark1russell7/otel-ts (getLogger), with its trace context.`;
|
|
18152
|
+
}
|
|
18153
|
+
/** This function gives a break for each call of `console` in the text of one source file. */
|
|
18154
|
+
function consoleBreaks(file, text) {
|
|
18155
|
+
const cli = isCliFile(file, text);
|
|
18156
|
+
const breaks = [];
|
|
18157
|
+
text.split(/\r?\n/).forEach((line, index) => {
|
|
18158
|
+
if (COMMENT.test(line)) return;
|
|
18159
|
+
for (const match of line.matchAll(CALL)) {
|
|
18160
|
+
const method = match.groups?.["method"] ?? "";
|
|
18161
|
+
breaks.push({
|
|
18162
|
+
file,
|
|
18163
|
+
line: index + 1,
|
|
18164
|
+
message: messageOf(file, method, consoleKind(cli, method))
|
|
18165
|
+
});
|
|
18166
|
+
}
|
|
18167
|
+
});
|
|
18168
|
+
return breaks;
|
|
18169
|
+
}
|
|
18170
|
+
/** The last day of the warnings: from this day each call fails in each repository. A repository cannot set a later day. */
|
|
18171
|
+
const CONSOLE_LAST_DAY = "2027-01-20";
|
|
18172
|
+
/** The file of the summary break of the ratchet: the options of the rule are in the root `package.json`. */
|
|
18173
|
+
const CONFIG_FILE$1 = "package.json";
|
|
18174
|
+
/**
|
|
18175
|
+
* This function decides the rule for a repository: the options, the count of the calls in its sources and the day of the
|
|
18176
|
+
* check. A baseline of -1 is no baseline.
|
|
18177
|
+
*/
|
|
18178
|
+
function consoleGate(options, count, today) {
|
|
18179
|
+
const failFrom = String(options["failFrom"] ?? "2027-01-20");
|
|
18180
|
+
const baseline = Number(options["baseline"] ?? -1);
|
|
18181
|
+
if (failFrom > "2027-01-20") return {
|
|
18182
|
+
fails: true,
|
|
18183
|
+
summary: true,
|
|
18184
|
+
why: `The option failFrom of no-console is ${failFrom}, after the last day ${CONSOLE_LAST_DAY}. Set a day on or before it.`
|
|
18185
|
+
};
|
|
18186
|
+
if (baseline >= 0 && count > baseline) return {
|
|
18187
|
+
fails: true,
|
|
18188
|
+
summary: true,
|
|
18189
|
+
why: `The sources have ${String(count)} console calls, more than the baseline ${String(baseline)} of no-console. Remove the new calls.`
|
|
18190
|
+
};
|
|
18191
|
+
if (baseline >= 0 && count < baseline) return {
|
|
18192
|
+
fails: true,
|
|
18193
|
+
summary: true,
|
|
18194
|
+
why: `The sources have ${String(count)} console calls, fewer than the baseline ${String(baseline)} of no-console. Set the option baseline to ${String(count)}.`
|
|
18195
|
+
};
|
|
18196
|
+
if (count === 0) return {
|
|
18197
|
+
fails: false,
|
|
18198
|
+
summary: false,
|
|
18199
|
+
why: ""
|
|
18200
|
+
};
|
|
18201
|
+
if (options["fail"] === true) return {
|
|
18202
|
+
fails: true,
|
|
18203
|
+
summary: false,
|
|
18204
|
+
why: "The option fail of no-console is set."
|
|
18205
|
+
};
|
|
18206
|
+
if (today >= failFrom) return {
|
|
18207
|
+
fails: true,
|
|
18208
|
+
summary: false,
|
|
18209
|
+
why: `Each console call fails from ${failFrom}.`
|
|
18210
|
+
};
|
|
18211
|
+
return {
|
|
18212
|
+
fails: false,
|
|
18213
|
+
summary: false,
|
|
18214
|
+
why: `Each console call fails from ${failFrom}. ${baseline >= 0 ? `The count ${String(count)} is the baseline.` : `Set the option baseline to ${String(count)}, so the count cannot grow.`}`
|
|
18215
|
+
};
|
|
18216
|
+
}
|
|
18217
|
+
const noConsole = {
|
|
18218
|
+
id: "no-console",
|
|
18219
|
+
title: "No source file calls `console`: output for a person goes to the printer of `@mark1russell7/text/print`, and a diagnostic goes to a log record of `@mark1russell7/otel-ts`.",
|
|
18220
|
+
reason: "A console line has no trace id, no level that a collector reads and no redaction of secrets. A diagnostic then does not join the trace of its request, and the output of a CLI cannot go to a buffer in a test. A census of 2026-11-25 found 1549 console calls in the sources of 36 repositories.",
|
|
18221
|
+
fix: "Write the output of a CLI with createPrinter({ out: process.stdout, err: process.stderr }) of @mark1russell7/text/print. Emit each diagnostic of a library or a service with the logger of @mark1russell7/otel-ts. After each fix, set the option baseline to the new count.",
|
|
18222
|
+
sources: [{
|
|
18223
|
+
repo: "private",
|
|
18224
|
+
rule: "no-console",
|
|
18225
|
+
doc: "a decision of 2026-11-25: no raw console, one printer for output and one logger for diagnostics"
|
|
18226
|
+
}],
|
|
18227
|
+
options: {
|
|
18228
|
+
fail: {
|
|
18229
|
+
type: "boolean",
|
|
18230
|
+
default: false,
|
|
18231
|
+
description: "Each call fails the check also before the day failFrom."
|
|
18232
|
+
},
|
|
18233
|
+
failFrom: {
|
|
18234
|
+
type: "string",
|
|
18235
|
+
default: CONSOLE_LAST_DAY,
|
|
18236
|
+
description: "The day from which each call fails. A repository can set an earlier day, but not a day after CONSOLE_LAST_DAY."
|
|
18237
|
+
},
|
|
18238
|
+
baseline: {
|
|
18239
|
+
type: "number",
|
|
18240
|
+
default: -1,
|
|
18241
|
+
description: "The count of the calls in the sources. The check fails when the count is not the baseline. -1 is no baseline."
|
|
18242
|
+
},
|
|
18243
|
+
skip: {
|
|
18244
|
+
type: "strings",
|
|
18245
|
+
default: NOT_SOURCE,
|
|
18246
|
+
description: "The globs of the files that are not sources: tests, fixtures, scripts, benches and examples."
|
|
18247
|
+
}
|
|
18248
|
+
},
|
|
18249
|
+
failsFrom: "2026-12-09",
|
|
18250
|
+
check(context, options) {
|
|
18251
|
+
const files = context.gitFiles();
|
|
18252
|
+
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
18253
|
+
const skip = options["skip"];
|
|
18254
|
+
const breaks = [];
|
|
18255
|
+
for (const file of files.filter((path) => SOURCE.test(path) && !matchesAny(path, skip)).sort(byCode)) {
|
|
18256
|
+
let text;
|
|
18257
|
+
try {
|
|
18258
|
+
text = readFileSync(join(context.root, file), "utf8");
|
|
18259
|
+
} catch {
|
|
18260
|
+
continue;
|
|
18261
|
+
}
|
|
18262
|
+
if (text.includes("console")) breaks.push(...consoleBreaks(file, text));
|
|
18263
|
+
}
|
|
18264
|
+
const gate = consoleGate(options, breaks.length, context.today ?? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10));
|
|
18265
|
+
return gate.summary ? [{
|
|
18266
|
+
file: CONFIG_FILE$1,
|
|
18267
|
+
message: gate.why
|
|
18268
|
+
}, ...breaks] : breaks;
|
|
18269
|
+
},
|
|
18270
|
+
decide(options, state) {
|
|
18271
|
+
const gate = consoleGate(options, state.breaks.filter((item) => item.file !== CONFIG_FILE$1).length, state.today);
|
|
18272
|
+
if (gate.fails) return void 0;
|
|
18273
|
+
return state.breaks.some((item) => item.file === CONFIG_FILE$1) ? void 0 : gate.why;
|
|
18274
|
+
}
|
|
18275
|
+
};
|
|
18085
18276
|
// src/private-names.ts
|
|
18086
18277
|
/**
|
|
18087
18278
|
* The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
|
|
@@ -24021,6 +24212,7 @@ const RULES = [
|
|
|
24021
24212
|
requiredScripts,
|
|
24022
24213
|
noBuildOutput,
|
|
24023
24214
|
noLocalPaths,
|
|
24215
|
+
noConsole,
|
|
24024
24216
|
apiReportScript,
|
|
24025
24217
|
releaseFiles,
|
|
24026
24218
|
unreleasedChange,
|
|
@@ -24793,8 +24985,18 @@ function runChecks(options) {
|
|
|
24793
24985
|
message: `The entry \`${glob}\` of \`${field}\` matches no break of this rule. Remove it from the field \`conventions\`.`
|
|
24794
24986
|
});
|
|
24795
24987
|
}
|
|
24796
|
-
const
|
|
24797
|
-
const
|
|
24988
|
+
const decides = rule.decide !== void 0;
|
|
24989
|
+
const beforeDay = !decides && rule.failsFrom !== void 0 && today < rule.failsFrom;
|
|
24990
|
+
const optIn = breaks.length === 0 ? void 0 : decides ? rule.decide?.(ruleConfig.options, {
|
|
24991
|
+
breaks,
|
|
24992
|
+
today
|
|
24993
|
+
}) : rule.warnOnly?.(ruleConfig.options);
|
|
24994
|
+
const warns = breaks.length > 0 && (beforeDay || optIn !== void 0);
|
|
24995
|
+
const reason = warns ? [
|
|
24996
|
+
ruleConfig.reason,
|
|
24997
|
+
beforeDay ? `The rule fails from ${rule.failsFrom ?? ""}.` : void 0,
|
|
24998
|
+
optIn
|
|
24999
|
+
].filter((text) => text !== void 0).join(" ") : ruleConfig.reason;
|
|
24798
25000
|
const note = reason === void 0 ? {} : { note: reason };
|
|
24799
25001
|
let noRead;
|
|
24800
25002
|
try {
|
|
@@ -25255,6 +25457,6 @@ function runHook(args, io) {
|
|
|
25255
25457
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
25256
25458
|
}, io);
|
|
25257
25459
|
}
|
|
25258
|
-
export { requiredScripts as $,
|
|
25460
|
+
export { requiredScripts as $, SECURITY_SCAN_INPUTS as $n, CONSOLE_LAST_DAY as $t, scriptsOf as A, npmNames as An, codePackages as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, callsSharedCi as Bn, repositoryOfRemote as Br, privatePatterns as Bt, setVersions as C, HOMES as Cn, readWorkflow as Cr, pagesAfterRelease as Ct, trustPolicy as D, mapText as Dn, DEPENDENCY_FIELDS as Dr, pagesSite as Dt, TRAIN_SCOPES as E, mapMarkdown as En, cuePreset as Er, pagesCalls as Et, sourceMain as F, hasTests as Fn, matchesAny as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, securityGate as Gn, defaultOptions as Gr, isAllowedHit as Gt, calledJobs as H, setupCue as Hn, runGitShow as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, tsconfigTest as In, parseCatFileBatch as Ir, invalidPatternBreaks as It, evaluateExpression as J, addSummaryJob as Jn, lineNameHits as Jt, runsAtOnce as K, securityWorkflow as Kn, parseConfig as Kr, isCommonUse as Kt, blockHash as L, SHARED_ACTIONS as Ln, parseJsonc as Lr, noLocalPaths as Lt, testsRequired as M, SERVICE_PACKAGE as Mn, inFolder as Mr, HOME_PATTERNS as Mt, isSourcePath as N, runCalls as Nn, keyLine as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, mergeHomes as On, RULE_WARN_DAYS as Or, exportsRequire as Ot, pathsOf as P, serviceRunMain as Pn, lineOf as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, SECURITY_SCAN_COMMIT as Qn, pathNameHit as Qt, githubFetch as R, SHARED_CI as Rn, readJsonc as Rr, privateNamesFile as Rt, namedVersions as S, HOME_EXPORTS as Sn, readAction as Sr, siteCheckInCi as St, IGNORE_AFTER as T, findHomes as Tn, STRICT_OPTIONS as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, SECURITY_FILE as Un, showFiles as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, sharedCi as Vn, runGit as Vr, privateTextBreaks as Vt, matrixPeak as W, isSecurityGate as Wn, specifiersOf as Wr, firstNameMatch as Wt, mayRun as X, startsOnPullRequest as Xn, nameMatches as Xt, groupParts as Y, hasSummaryJob as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, summaryJobRule as Zn, parsePrivateNames as Zt, runPrePushArgs as _, homePackage as _n, summaryJob as _r, swallowsTests as _t, listRules as a, noConsole as an, scheduleMinute as ar, reachOf as at, GITHUB_YAML as b, reposOf as bn, MATRIX_EXPAND_MAX as br, isPinned as bt, runCli as c, hasImportMetaMain as cn, licenseFile as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, apiReportScript as dn, repositoryIsPublic as dr, unreleasedChangeRule as dt, NOT_SOURCE as en, SECURITY_TIMEOUT_MINUTES as er, releaseFiles as et, NO_READ_LINE as f, homeModule as fn, ACTIONS_COMMIT as fr, playwrightInstall as ft, prePush as g, declaredName as gn, skippableJobs as gr, startsTests as gt, parsePrePushArgs as h, modulesOf as hn, prPathFilters as hr, parseAdvisory as ht, formatResult as i, isCliFile as in, runnerBudget as ir, publishedMinorRule as it, typedFiles as j, readOverlay as jn, hasFile as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, npmDrift as kn, cleanPath as kr, publishTextSafe as kt, runFix as l, mainCheck as ln, licenseFileOf as lr, npmLookup as lt, installHook as m, moduleUses as mn, gateTrigger as mr, jobFails as mt, annotations as n, consoleGate as nn, securityOneJob as nr, minorOf as nt, readConfig as o, noBuildOutput as on, LICENSE_TEXTS as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, moduleMessage as pn, convertGate as pr, hiddenFailures as pt, workflowPeaks as q, SUMMARY_GATES as qn, parseRuleConfig as qr, lineNameHit as qt, createContext as r, consoleKind as rn, withOneJob as rr, publishedMinor as rt, runChecks as s, REAL_COMPARE as sn, authorOf as sr, SHIPPED_FIELDS as st, USAGE as t, consoleBreaks as tn, securityCallers as tr, lockedVersions as tt, summaryMarkdown as u, coverageProvider as un, mitText as ur, unreleasedChange as ut, RULES as v, messageOf$1 as vn, summaryName as vr, pipeFails as vt, versionTitle as w, MAP_RULE as wn, yamlFaults as wr, pushMainOnly as wt, workflowParses as x, signaturesOf as xn, parseWorkflow as xr, pinnedGitDeps as xt, workspaceProtocol as y, repoOf as yn, gateAfterCancel as yr, isGitSpecifier as yt, sharedDocsRule as z, SHARED_WORKFLOWS as zn, replaceLine as zr, privateNamesFiles as zt };
|
|
25259
25461
|
|
|
25260
|
-
//# sourceMappingURL=run-
|
|
25462
|
+
//# sourceMappingURL=run-DiufwTof.js.map
|