Conversation
…what it left out
A repository that has read its inventory of uncaptured columns does not
want it on every run: RefuseRadar prints 161 source-column-not-captured
lines and set 2026-10-21 to decide whether they stay. --disable RULE
(comma-separated or repeated) drops a rule's findings from the output
and from the exit code.
A filter must not make a run look cleaner than it was, so the text
output ends with what was left out ("not shown (--disable):
source-column-not-captured 161"), a run whose every finding was hidden
says "ok: nothing to report outside the disabled rules" rather than
that the files agree, and --format json keeps its array shape and puts
the same note on stderr. An unknown rule name is an error listing the
rules, not a filter that silently hides nothing; engine.Rules is that
list, and the corpus test fails if any finding's rule is missing from
it.
Disabling schema-before-connector skips the base altogether, as if
--base were not given. Filtering its findings afterwards would also
lose the columns it raised, because source-column-not-captured leaves
raised columns out of its inventory, so they would appear nowhere.
The action gains a disable input. run() now takes its output streams,
so the tests drive the real command line: hiding a rule, a disabled
error no longer failing the run, commas and repeats, an unknown name,
the base skipped, and JSON's stderr note.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it changes
--disable RULE[,RULE](comma-separated or repeated) drops a rule's findings from the output and from the exit code. It is the output filter RefuseRadar'stools/cdclint.shasks for, to decide by 2026-10-21 whether its 161source-column-not-capturedlines stay.On RefuseRadar today:
(161, not the 159 in the notes: RefuseRadar's #994 to #998 added columns;
mainwithout this change also reports 161.)Design choices
ok: nothing to report outside the disabled rules, notsource, connector and sink agree, which would claim more than was checked.engine.Rulesis the list, and the corpus test fails if any finding's rule is missing from it, so a new rule cannot be missed.schema-before-connectorskips the base, exactly as leaving out--base. Filtering its findings afterwards would lose the columns it raised, becausesource-column-not-capturedleaves raised columns out of its inventory; they would appear nowhere.disableinput.What this does not solve, on purpose
RefuseRadar's script also says to go back to
--fail-on warningat the PR gate "when that filter is pinned here". A per-rule filter cannot do that job: a column left off the include list on purpose (PII) and one forgotten raise the sameschema-before-connectorwarning, and disabling the rule at the gate would switch off the check that exists to stop the forgotten one. That needs a per-column acknowledgement, which is a separate design question raised with the owner, not folded in here.Verified
run()now takes its output streams, andcmd/cdclint/main_test.godrives the real command line against corpus entries: a rule hidden with the note, a disabled error no longer failing the run (exit 1 to 0), commas and repeats giving the same output, an unknown name (exit 2, rules listed),--base no-such-reffailing unless the diff rule is disabled, and JSON's stderr note with an unchanged array.engine.Rules.action.ymlparses (checked with Ruby's YAML loader, since a YAML mistake fails the action in 0 seconds).gofmt -l .clean,go vet,go test ./...pass. RefuseRadar as shown above.Next for you
Merge when happy. It ships in the next release; RefuseRadar can then pass
--disable source-column-not-capturedfromtools/cdclint.shif the 2026-10-21 decision goes that way.