Skip to content

Conversation

@sudo-suhas
Copy link

@sudo-suhas sudo-suhas commented May 30, 2023

  • There are two versions of the configuration file added - .golangci.toml and .golangci-prod.toml. The former is for local development and testing, while the latter is for continuous integration (CI). The difference is that the prod version includes some more intensive checks that may take longer to run, but are important for ensuring code quality and security.
  • Manage tools used to build, lint and format code using tools/go.mod. Set up the Makefile to use locally built versions of the tools using tools/go.mod.
  • Use remote plugin for buf build and use the latest available version.
  • Update the golang-lint-action workflow to use latest version of golangci-lint.

Note that the linter reports errors only for code that was changed since previous commit even with the updated configuration. This should allow us to gradually address all linter issues.

@sudo-suhas sudo-suhas requested a review from spy16 May 30, 2023 10:10
@sudo-suhas sudo-suhas force-pushed the configure-golangci-lint branch from ae56191 to 83ba3dd Compare May 31, 2023 01:49
- There are two versions of the configuration file added -
  .golangci.toml and .golangci-prod.toml. The former is for local
  development and testing, while the latter is for continuous
  integration (CI). The difference is that the prod version includes
  some more intensive checks that may take longer to run, but are
  important for ensuring code quality and security.
- Manage tools used to build, lint and format code using tools/go.mod.
  Set up the Makefile to use locally built versions of the tools using
  tools/go.mod.
- Use remote plugin for buf build and use the latest available version.
- Update the golang-lint-action workflow to use latest version of
  golangci-lint.
@sudo-suhas sudo-suhas force-pushed the configure-golangci-lint branch from 83ba3dd to 0fe31e2 Compare May 31, 2023 04:36
@sudo-suhas sudo-suhas merged commit 7278096 into main May 31, 2023
@sudo-suhas sudo-suhas deleted the configure-golangci-lint branch May 31, 2023 04:54
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.

3 participants