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

Add gocritic linter #1324

Merged
merged 9 commits into from
Nov 27, 2023
Merged

Add gocritic linter #1324

merged 9 commits into from
Nov 27, 2023

Conversation

surik
Copy link
Contributor

@surik surik commented Nov 21, 2023

The gocritic provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

  • commentFormatting
  • captLocal
  • deprecatedComment

This PR contains many //nolint:gocritic to disable appendAssign.
We may want to address them separately.

Describe your changes

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@surik
Copy link
Contributor Author

surik commented Nov 24, 2023

This PR more likely needs to be updated after #1327

`gocritic` provides diagnostics that check for bugs, performance and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment
@surik surik merged commit d1a323f into netbirdio:main Nov 27, 2023
15 checks passed
surik added a commit that referenced this pull request Dec 14, 2023
* Add gocritic linter

`gocritic` provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment

This PR contains many `//nolint:gocritic` to disable `appendAssign`.
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
* Add gocritic linter

`gocritic` provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment

This PR contains many `//nolint:gocritic` to disable `appendAssign`.
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
* Add gocritic linter

`gocritic` provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment

This PR contains many `//nolint:gocritic` to disable `appendAssign`.
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

2 participants