Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Golangci-lint-action and Custom Linter (Plugins) Example

NotificationsYou must be signed in to change notification settings

golangci/golangci-lint-action-plugin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is an example to explain how to usecustom linters (plugins) with theGitHub Action of golangci-lint.

Build and Install Plugins

      -name:Build and install pluginsrun:|          git clone https://github.com/golangci/example-plugin-linter.git          cd example-plugin-linter          go build -o '${{ github.workspace }}/.plugins/example.so' -buildmode=plugin plugin/example.goworking-directory:${{ runner.temp }}env:CGO_ENABLED:1

Install and Run golangci-lint

      -name:golangci-lintuses:golangci/golangci-lint-action@v7with:version:v2.1.1# The installation mode `goinstall` always uses `CGO_ENABLED=1`.install-mode:goinstall

Full Example

TheWorkflow.

About

Golangci-lint-action and Custom Linter (Plugins) Example

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp