aboutsummaryrefslogtreecommitdiff
path: root/internal/engine/match.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/engine/match.go')
-rw-r--r--internal/engine/match.go19
1 files changed, 9 insertions, 10 deletions
diff --git a/internal/engine/match.go b/internal/engine/match.go
index 25c05e5..9943073 100644
--- a/internal/engine/match.go
+++ b/internal/engine/match.go
@@ -51,7 +51,7 @@ type FileMatch struct {
// absolute; "" when none did. The reason text says the same thing the
// way it reads best - relative to the directory when it is inside it -
// which leaves a front end no way to act on the other copy, or even to
- // say where it is (his report, 2026-09-17).
+ // say where it is.
DuplicateOf string
}
@@ -64,7 +64,7 @@ type Result struct {
Warnings []string // directory-level, sorted; e.g. "duplicate: /x/y does not exist"
// Unscanned is every existing rule destination inside the root, which
// the walk leaves out (spec ยง8.1), so -v can say its files were not
- // counted (triage 4).
+ // counted.
Unscanned []string
Elapsed time.Duration
}
@@ -181,7 +181,7 @@ func evalFile(run *matchRun, file scan.File) FileMatch {
if r.Conf.Stop {
// A (stop) rule that cannot be decided ends the search too:
// it may be the rule written to keep this file from the
- // ones below (plan 12).
+ // ones below.
break
}
}
@@ -280,7 +280,7 @@ func (e *Engine) Explain(ctx context.Context, path string) (*Explanation, error)
// ExplainWithChain is Explain with Explanation.Chain filled in: the steps
// this file alone would get. Building them resolves conflicts against the
// disk, which can read files (a copy whose target holds the same bytes), so
-// the command line's explain does not ask for it (plan 13 review F1).
+// the command line's explain does not ask for it.
func (e *Engine) ExplainWithChain(ctx context.Context, path string) (*Explanation, error) {
return e.explain(ctx, path, true)
}
@@ -318,8 +318,7 @@ func (e *Engine) explain(ctx context.Context, path string, withChain bool) (*Exp
skip := explainSkip(d, sf, excl, now)
// The directory is walked only for a duplicate test - in a rule or in an
- // exclude - the one thing that needs its other files (triage 21, plan 11
- // review M3).
+ // exclude - the one thing that needs its other files.
files := []scan.File{sf}
if len(d.DupScopes) > 0 || excludesUseDuplicate(d) {
files = e.filesForExplain(d, sf, excl, now)
@@ -327,7 +326,7 @@ func (e *Engine) explain(ctx context.Context, path string, withChain bool) (*Exp
run := newMatchRun(e, d, ctx, now, files)
if len(d.ContentKeywords) > 0 {
// Loaded only: openCache would remove the cache of a directory with
- // no content tests, and Explain holds no lock (triage 28e).
+ // no content tests, and Explain holds no lock.
e.openCache(run)
}
f := newFacts(run, sf)
@@ -413,7 +412,7 @@ func (e *Engine) cacheFingerprint(d *Dir) string {
// excludedBy is what x sets a file aside as, given its evaluation: its text
// when it matched, its text marked "(content unreadable)" when a content
// test it reached could not read the file - an exclude protects files, so
-// it fails closed (review M11) - or "" when it does not hold.
+// it fails closed - or "" when it does not hold.
func excludedBy(x *Exclude, res cond.Result) string {
switch {
case res.Match:
@@ -438,7 +437,7 @@ func (e *Engine) openCache(run *matchRun) []string {
}
if len(run.d.ContentKeywords) == 0 {
// No content test left: a cache from an earlier configuration only
- // holds keywords this directory no longer uses (review cache F6).
+ // holds keywords this directory no longer uses.
if err := os.Remove(e.cacheFile(run.d)); err != nil && !os.IsNotExist(err) {
return []string{"cache: " + err.Error()}
}
@@ -556,7 +555,7 @@ func isBusy(path string, suffixes []string) bool {
// excludeDirs computes the directories Match and Explain never enter: each
// rule's copy/move destination, the Trash, and the directory holding the
// main config file - each kept only when it lies strictly inside d's root
-// (C3: root itself is not "inside" it here - a rule cannot exclude the very
+// (root itself is not "inside" it here - a rule cannot exclude the very
// directory being scanned. cmd/krino/render.go's relToRoot answers a
// different question, whether a destination is root or beneath it for
// display purposes, and there root does count as inside; the two are each