Skip to content

A fast linter for Go, written in Rust 🥇

License

Notifications You must be signed in to change notification settings

brianstrauch/gold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gold 🥇

Gold

A fast linter for Go, written in Rust.

Usage

gold [path] [--fix]

Rules

Rule Description Fix
F001 No redundant parameter types ✅
F002 No unsorted imports ✅

Configuration

  • Gold searches the root directory of your Go modules for a .gold.yml file
  • Gold can also read .golangci.yml configuration files, if they exist
  • The following is an example of a .gold.yml configuration file:
# rules to enable, default: [] (all rules)
enable:
    - F001
    - F002

# rule-specific settings
settings:
    # order to sort imports by, default: [standard, default]
    F002:
        - standard
        - default
        - prefix(github.com/brianstrauch/gold/tests)

# directories to ignore, default: []
ignore:
    - mock

About

A fast linter for Go, written in Rust 🥇

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published