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

feat: rename logrlint to loggercheck #3144

Merged
merged 16 commits into from Sep 6, 2022
Merged

Conversation

timonwong
Copy link
Contributor

@timonwong timonwong commented Aug 26, 2022

Since logrlint reaches v0.1.0, more loggers are supported (klog, zap).

So as suggested in #3140, logrlint is now deprecated, but since it's just a repo rename, so logrlint is renamed to loggercheck using alternate names.

New features:

  • checks for klog and zap
  • allow custom rules
  • allow disabling checks individually
  • allow check for logging key (require string literal/constant, ascii string)
  • allow check for printf-like specifiers (%s, %d, etc)

@timonwong timonwong marked this pull request as ready for review August 26, 2022 14:12
@ldez

This comment was marked as outdated.

@ldez ldez self-requested a review August 26, 2022 14:17
@ldez ldez added the blocked Need's direct action from maintainer label Aug 26, 2022
@ldez

This comment was marked as outdated.

@ldez ldez added linter: update version Update version of linter linter: update Update the linter implementation inside golangci-lint labels Aug 26, 2022
@timonwong timonwong force-pushed the add-loggercheck branch 3 times, most recently from 6fc71f1 to 80dc3cf Compare August 26, 2022 14:29
@timonwong timonwong changed the title feat: rename logrlint to loggercheck feat: add loggercheck; deprecate logrlint Aug 26, 2022
@ldez
Copy link
Member

ldez commented Aug 26, 2022

Please wait, I haven't seen that you have used the alternative names.

So you can "rename".

@ldez
Copy link
Member

ldez commented Aug 26, 2022

@timonwong you can do the rename, read my previous message

@timonwong
Copy link
Contributor Author

Please wait, I haven't seen that you have used the alternative names.

So you can "rename".

@ldez Ok, I'll do it right now

@timonwong timonwong changed the title feat: add loggercheck; deprecate logrlint feat: rename logrlint to loggercheck Aug 26, 2022
.golangci.reference.yml Outdated Show resolved Hide resolved
@ldez
Copy link
Member

ldez commented Aug 29, 2022

just a quick note about klog and kubernetes https://github.com/kubernetes-sigs/logtools/tree/main/logcheck

.golangci.reference.yml Show resolved Hide resolved
@timonwong
Copy link
Contributor Author

just a quick note about klog and kubernetes https://github.com/kubernetes-sigs/logtools/tree/main/logcheck

Hmmm, if knowing this before i may not create another linter myself 😂

@ldez ldez mentioned this pull request Aug 31, 2022
@timonwong timonwong requested a review from ldez September 6, 2022 05:19
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
timonwong and others added 13 commits September 6, 2022 22:23
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Signed-off-by: Timon Wong <timon86.wang@gmail.com>
Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez merged commit 3a2ad90 into golangci:master Sep 6, 2022
@timonwong timonwong deleted the add-loggercheck branch September 7, 2022 14:34
SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.50 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: update version Update version of linter linter: update Update the linter implementation inside golangci-lint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants