comment

module
v0.0.0-...-7581b80 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL