doctl icon indicating copy to clipboard operation
doctl copied to clipboard

🔧 Integrate golangci-lint for Static Code Analysis

Open Saurabh2402 opened this issue 1 year ago • 1 comments

To improve code quality and maintain consistency across the project, I'd like to propose adding golangci-lint to our development workflow.

This tool helps catch common bugs, enforces style guidelines, and ensures adherence to Go best practices—all with minimal setup and configuration.

Why this matters:

  • Identifies potential bugs early through static analysis
  • Maintains consistent code style and formatting
  • Reduces technical debt over time
  • Speeds up code reviews with automated checks

Proposed steps:

  • Add golangci-lint configuration file (.golangci.yml) to the root of the repository.
  • Define rules and linters we want to enforce.
  • Update documentation or contributing guide to include linting steps.
  • Integrate it into the CI pipeline to auto-run checks on PRs.

Let me know your thoughts or if you'd like help setting up the initial config. 🚀

Saurabh2402 avatar Jul 19 '25 09:07 Saurabh2402

Hi, Kindly assign this to me , would like to work on this .

bashSunny101 avatar Oct 08 '25 04:10 bashSunny101