todolint

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 9 Imported by: 0

README

todolint

Description

Requires TODO comments to be in the form of "TODO(author) ...

Badges

Build Status Coverage License Release

Install

go install github.com/timonwong/loggercheck/cmd/loggercheck

Usage

todolint: Requires TODO comments to be in the form of "TODO(author) ...

Usage: todolint [-flag] [package]

  -keywords value
        comma-separated list of case-insensitive keywords to check for (default TODO,FIXME)

Example

package a

import "fmt"

// TODO: This is not ok // want `TODO comment should be in the form TODO\(author\)`
func NotOkFunc() {
}

// TODO(author1): This is ok
func OkFunc() {
}

type ABC struct {
	A int    // @FIXME: This field comment is not ok // want `TODO comment should be in the form FIXME\(author\)`
	B string // FIXME(author2): This field comment is ok
}

func Example() {
	// TODO(timonwong): This is ok
	//

	// 🚀🚀🚀 FixMe: 你好世界 // want `TODO comment should be in the form FIXME\(author\)`
	fmt.Println("Hello")

	fmt.Println("你好,世界") // fixme: more languages // want `TODO comment should be in the form FIXME\(author\)`
}

Documentation

Index

Constants

View Source
const Doc = `Requires TODO comments to be in the form of "TODO(author) ...`

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

Types

This section is empty.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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