chore(core): DSPX-4607 drop stale lib/fixtures nolint directives and reuse keycloakBoolTrue - #3971
Open
dmihalcik-virtru wants to merge 1 commit into
Open
chore(core): DSPX-4607 drop stale lib/fixtures nolint directives and reuse keycloakBoolTrue#3971dmihalcik-virtru wants to merge 1 commit into
dmihalcik-virtru wants to merge 1 commit into
Conversation
|
Warning Review limit reachedNext included review available in 42 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Contributor
dmihalcik-virtru
force-pushed
the
fix/lint-fixtures-nolint
branch
from
September 3, 2026 21:39
6bde4c7 to
c729b44
Compare
Contributor
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
This was referenced Sep 3, 2026
Contributor
jakedoublev
previously approved these changes
Sep 3, 2026
This was referenced Sep 4, 2026
…reuse keycloakBoolTrue
golangci-lint v2.13.2 reports 26 findings in lib/fixtures:
- 25 //nolint:sloglint directives that no longer suppress anything. sloglint
stopped flagging the emoji log messages they were added for, so nolintlint
now reports each as unused.
- 6 raw "true" map values that duplicate the existing keycloakBoolTrue
constant.
Signed-off-by: Dave Mihalcik <dmihalcik@virtru.com>
dmihalcik-virtru
force-pushed
the
fix/lint-fixtures-nolint
branch
from
September 4, 2026 13:13
c729b44 to
485c233
Compare
policy-bot-opentdf
Bot
dismissed
jakedoublev’s stale review
September 4, 2026 13:13
Invalidated by push of 485c233
Contributor
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Benchmark Statistics
Bulk Benchmark Results
TDF3 Benchmark Results:
|
Contributor
|
Contributor
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.
Part of the DSPX-4607 lint burndown, following the golangci-lint v2.13.2 bump (#3965, merged). Branched from
main, independent of the other burndown PRs.What
lib/fixtureshas 26 findings, all inkeycloak.go:25 ×
nolintlint—//nolint:sloglint // allow existing emojisdirectives that no longer suppress anything:sloglint's
msg-style: lowercasedno longer objects to messages that begin with an emoji ("✅ realm created","⏭️ realm already exists"), so every one of these directives is now dead. Deleted rather than kept, sincenolintlintis what flags them and a stale directive is worse than none — it silently suppresses future real findings.1 ×
goconst— six raw"true"map values duplicating thekeycloakBoolTrueconstant already declared at line 25. Replaced those six, plus the onegocloak.StringP("true")at line 274 thatgoconstskips (ignore-callsis on by default) — leaving a lone raw literal next to six converted ones would just be untidy.Net: 32 deletions, 7 insertions. No behaviour change — the emitted log messages and the Keycloak config values are byte-identical.
Testing
Pre-existing test failures (not from this PR)
go test ./...fails two tests, identically on unmodifiedmain:Verified by
jj restore --from main lib/fixtures/keycloak.goand re-running — same two failures. They're inkeycloak_token_manager.go, which this PR doesn't touch; the "adjusted token buffer for short token lifetime" clamp is overriding the configured buffer. Out of scope here, but worth a separate look.DSPX-4607 burndown index
.golangci.yamlgoconst tuning +gomodguard_v2migration (merged)otdfctl), fix(kas): DSPX-4607 use snake_case slog key in rewrap test fake #3970 (service/kas), fix(sdk): DSPX-4607 canonicalize DPoP headers and extract zipstream constants #3973 (sdk), fix(examples): DSPX-4607 clear goconst and SA1019 lint findings #3974 (examples), fix(ci): DSPX-4607 clear tests-bdd goconst, gosec, nestif and sloglint findings #3975 (tests-bdd), fix(policy): DSPX-4607 clear sloglint and SA1019 lint findings #3977 (service/policy), fix(core): DSPX-4607 clear sloglint, goconst, nolintlint and SA1019 findings #3978 (servicecore)