Skip to content

lycb/go-params-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Params Linter

Detects if .go files contains multiple parameters with the same type

Usage

go install github.com/lycb/go-params-linter/cmd/go-params-linter 
cd <your-go-project>
go-params-linter ./...

run with the -fix flag to automatically merge params with the same type

Known Limitations with -fix use with caution 😅

  1. -fix flag current remove free-floating comments inside of a method
  2. does not fix everything that was flagged from the linting
  3. does not recursively fix params so need to run multiple times to fix

Demo

Screen.Recording.2022-09-20.at.5.39.08.PM.mov

About

Go linter for having multiple params with the same type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages