godox

package module
v0.0.0-...-c5b5e0e Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 9 Imported by: 9

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

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

Directories

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

Jump to

Keyboard shortcuts

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