Skip to content

S7evinK/dendrite-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dendrite-lint

Simple linter to check if all defined endpoints are used on the server side. (inspired by this tutorial)

Only checks the inthttp package at the moment.

Usage

Clone this repository:

cd dendrite-lint
go install ./cmd/...

cd $yourDendritePath
dendrite-lint ./...
# or
go vet -vettool=$(which dendrite-lint) ./...

It should display something along

userapi/inthttp/client.go:52:2: declared 'QueryKeyBackupPath' endpoint, but not used in internal api server
userapi/inthttp/client.go:40:2: declared 'PerformKeyBackupPath' endpoint, but not used in internal api server

if there's an endpoint defined but not used.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages