Movatterモバイル変換


[0]ホーム

URL:


gorules

package
v1.0.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2025 License:AGPL-3.0Imports:1Imported by:0

Details

Repository

github.com/coder/preview

Links

Documentation

Overview

Package gorules defines custom lint rules for ruleguard.

golangci-lint runs these rules via go-critic, which includes supportfor ruleguard. All Go files in this directory define lint rulesin the Ruleguard DSL; see:

-https://go-ruleguard.github.io/by-example/-https://pkg.go.dev/github.com/quasilyte/go-ruleguard/dsl

You run one of the following commands to execute your go rules only:

golangci-lint rungolangci-lint run --disable-all --enable=gocritic

Note: don't forget to run `golangci-lint cache clean`!

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp