Categorygithub.com/mneverov/comment
repository
0.0.0-20240112110423-7581b8064914
Repository: https://github.com/mneverov/comment.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

comment

Linter comment reports commented code.

The linter makes best attempt to find commented code and by doing so may skip obvious commented code or report false positives.

Check invalid.go for examples of possible reported comments.

Install

go get github.com/mneverov/comment

Run

comment ./...

Note

It is impossible to differentiate between a valid comment and a commented code.

For example, to clarify a flow the following comment is valid and gives a context:

// this = that

But it is also a valid go code.

The following comment is a URL for a website with some info that describes the following code as well as a valid go label.

// https://bit.ly/2EMXD26