am-i-done 0.7.1 → 0.7.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/README.md +2 -1
- package/package.json +1 -1
- package/src/engine/engine.ts +6 -6
package/README.md
CHANGED
|
@@ -251,7 +251,8 @@ Turn them all off with `[rules] recommended = false`, or one with
|
|
|
251
251
|
[`samples/`](samples/README.md) holds rules and stages to copy into a project: tests that pass
|
|
252
252
|
without testing anything, workspace import boundaries, leaked home paths, a coverage ratchet, dead
|
|
253
253
|
modules, specs that registered no tests, and more. [docs/ideas.md](docs/ideas.md) lists more that
|
|
254
|
-
are not written yet.
|
|
254
|
+
are not written yet. [docs/bootstrap.md](docs/bootstrap.md) is the guide to setting a project up:
|
|
255
|
+
which rules and stages to pick, and how to move a gate of your own onto the package.
|
|
255
256
|
|
|
256
257
|
## Temp files: `am-i-done/tmp`
|
|
257
258
|
|
package/package.json
CHANGED
package/src/engine/engine.ts
CHANGED
|
@@ -121,12 +121,12 @@ export async function runEngine(config: Config, set: RuleSet, options: EngineOpt
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* Every rule's fixtures. A built-in rule's were written for the
|
|
125
|
-
* are judged by
|
|
126
|
-
* fixtures may claim.
|
|
124
|
+
* Every rule's fixtures. A built-in rule's were written for the package's defaults (`[rules]
|
|
125
|
+
* include`, `require_issue`), so they are judged by them: a project that changes its settings
|
|
126
|
+
* changes what the rules see, not what their fixtures may claim.
|
|
127
127
|
*/
|
|
128
128
|
function fixtureProblems(rules: readonly Rule[], set: RuleSet, config: Config, parser: Parser | undefined): string[] {
|
|
129
|
-
const
|
|
129
|
+
const parsed = parser === undefined ? {} : { parser };
|
|
130
130
|
const fixtures = loadFixtures(set.dirs);
|
|
131
131
|
const builtIn = (id: string) => set.builtin.has(id);
|
|
132
132
|
return [
|
|
@@ -134,13 +134,13 @@ function fixtureProblems(rules: readonly Rule[], set: RuleSet, config: Config, p
|
|
|
134
134
|
rules.filter((r) => builtIn(r.id)),
|
|
135
135
|
fixtures.filter((f) => builtIn(f.ruleId)),
|
|
136
136
|
set.known,
|
|
137
|
-
{ ...
|
|
137
|
+
{ ...parsed, requireIssue: true, include: DEFAULT_INCLUDE },
|
|
138
138
|
),
|
|
139
139
|
...checkFixtures(
|
|
140
140
|
rules.filter((r) => !builtIn(r.id)),
|
|
141
141
|
fixtures.filter((f) => !builtIn(f.ruleId)),
|
|
142
142
|
set.known,
|
|
143
|
-
{ ...
|
|
143
|
+
{ ...parsed, requireIssue: config.suppression.require_issue, include: config.rules.include },
|
|
144
144
|
),
|
|
145
145
|
];
|
|
146
146
|
}
|