Help us shape the future of Go! Take the 2026 Go Developer Survey

godox

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 9 Imported by: 15

README

GoDoX

Tests Lint GoDoc Go Report Card GitHub issues License

GoDoX extracts comments from Go code based on keywords. This repository is fork of https://github.com/766b/godox but a lot of code has changed, this repository is updated and the code was adjusted for better integration with https://github.com/golangci/golangci-lint.

Installation

go get github.com/matoous/godox

The main idea

The main idea of godox is the keywords like TODO, FIX, OPTIMIZE is temporary and for development purpose only. You should create tasks if some TODOs cannot be fixed in the current merge request.

Documentation

Overview

Package godox is a linter that scans Go code for comments containing certain keywords (like TODO, BUG, FIXME) which typically indicate areas that require attention.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Pos     token.Position
	Message string
}

Message contains a message and position.

func Run

func Run(file *ast.File, fset *token.FileSet, keywords ...string) ([]Message, error)

Run runs the godox linter on given file. Godox searches for comments starting with given keywords and reports them.

Directories

Path Synopsis
fixtures
00 command
01 command
This is the package comment.
This is the package comment.
02
03 command
TODO: Add package documentation TODO: Write an actual application
TODO: Add package documentation TODO: Write an actual application
04 command

Jump to

Keyboard shortcuts

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