godox

package module
v0.0.0-...-5d6d842 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 7 Imported by: 10

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

Documentation

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
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

Jump to

Keyboard shortcuts

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