Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move out embedded rules from checkers/checkers.go #1186

Conversation

JuozasVainauskas
Copy link
Contributor

Move out embedded rules from checkers/checkers.go to checkers/embedded_rules.go

Issue: #1177

cristaloleg
cristaloleg previously approved these changes Jan 2, 2022
Copy link
Member

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM 🚀

checkers/checkers.go Show resolved Hide resolved
checkers/embedded_rules.go Show resolved Hide resolved
@quasilyte
Copy link
Member

Nice. I was always struggling to remember where do we keep the code related to the embedded rules.

@quasilyte quasilyte merged commit 1958124 into go-critic:master Jan 2, 2022
tony2001 added a commit to tony2001/go-critic that referenced this pull request Jan 4, 2022
…01/go-critic into ignore_labeled_continue_in_select

* 'ignore_labeled_continue_in_select' of github.com:tony2001/go-critic:
  checkers: move out embedded rules from checkers.go (go-critic#1186)
  cmd/gocritic: add -cpuprofile and -memprofile flags (go-critic#1185)
  checker/whyNoLint: compile regex when it is needed (go-critic#1182)
  checkers: add enable/disable flags to ruleguard checker (go-critic#1181)
  checkers: add io.WriteString patterns to preferFprint (go-critic#1180)
  checkers: fix equalFold rules autofix templates (go-critic#1178)
  checkers: rename undefinedFormatting to dynamicFmtString (go-critic#1174)
  checkers: add dynamicFmtString checker (go-critic#1156)
  update ruleguard (go-critic#1173)
  checkers: add tests for go-critic#1166 (go-critic#1172)
  checkers): treat //noinspection as pragma in commentFormatting (go-critic#1166)
  checkers: add At() for httpNoBody checker (go-critic#1164)
  tools: move tools into own module (go-critic#1162)
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.

None yet

3 participants