lint

Configure and execute golangci-lint for Go projects with custom linters and exclusions.

4|2|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/lazygophers/ccplugin --skill lint-lazygophers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lint
Source: https://github.com/lazygophers/ccplugin/tree/main/plugins/languages/golang/skills/lint
Command: npx skills add https://github.com/lazygophers/ccplugin --skill lint-lazygophers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes and enforces Go code quality by providing a robust configuration for golangci-lint, ensuring consistent code style, security, and best practices across projects.

Core Features & Use Cases

  • Automated Linting: Integrates golangci-lint for comprehensive code analysis.
  • Configurable Rules: Allows enabling/disabling specific linters and defining exclusion rules for targeted issues.
  • CI Integration: Provides a template for integrating linting into CI/CD pipelines.
  • Use Case: Ensure all Go projects adhere to the company's coding standards by automatically running golangci-lint with a predefined, optimized configuration before code merges.

Quick Start

Run the golangci-lint linter with the configured rules on the current project.

Frequently Asked Questions about lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure golangci-lint for a Go project?

You configure golangci-lint by enabling or disabling specific linters and defining exclusion rules to enforce coding standards. This setup provides comprehensive code analysis to identify security vulnerabilities and maintainability issues across your Go project.

What is golangci-lint used for in CI pipelines?

golangci-lint is used in CI pipelines to automate Go code analysis and enforce consistent coding standards before code merges. Integrating it provides automated linting to catch security vulnerabilities and maintainability issues continuously.

Can I disable specific linters in golangci-lint?

Yes, you can disable specific linters in golangci-lint. The configuration allows enabling and disabling individual linters and defining exclusion rules for targeted issues, letting you tailor code quality, security, and maintainability checks to your project requirements.

How do I enforce Go coding standards automatically?

You enforce Go coding standards automatically by running golangci-lint with a predefined, optimized configuration. Integrating this into CI pipelines ensures all projects adhere to consistent code style, security, and best practices before code merges.

Does golangci-lint address security vulnerabilities in Go?

Yes, golangci-lint addresses security vulnerabilities in Go. By running comprehensive code analysis with configured linters, it identifies potential security issues alongside code quality and maintainability problems to enforce best practices across projects.