Skip to content

nogo: enable strings modern analyzers#11558

Merged
sluongng merged 3 commits intomasterfrom
sluongng/modern-analyzer-strings
Mar 14, 2026
Merged

nogo: enable strings modern analyzers#11558
sluongng merged 3 commits intomasterfrom
sluongng/modern-analyzer-strings

Conversation

@sluongng
Copy link
Contributor

@sluongng sluongng commented Mar 12, 2026

This PR enable a few "strings*" analyzers in the new modern package of x/tools
to help us migrate our code to newer+better Go syntax.

It will also prevent future style violations by enforcing through rules_go's nogo

The PR is split into 3 commits:

  • Enable the analyzers (rules/go/analyzer/def.bzl)
  • Apply all the style fixes
  • Manual fixes

@sluongng sluongng force-pushed the sluongng/modern-analyzer-strings branch from 8d03e7d to d2b326b Compare March 13, 2026 08:37
@sluongng sluongng marked this pull request as ready for review March 13, 2026 08:40
@sluongng sluongng changed the title enable strings modern analyzers nogo: enable strings modern analyzers Mar 13, 2026
@sluongng sluongng force-pushed the sluongng/modern-analyzer-strings branch from 0379837 to b5ce5a2 Compare March 14, 2026 21:10
@sluongng
Copy link
Contributor Author

Rebased to make sure everything passed before merging.

@sluongng sluongng merged commit 21563e4 into master Mar 14, 2026
12 checks passed
@sluongng sluongng deleted the sluongng/modern-analyzer-strings branch March 14, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants