pubfncomment

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 5 Imported by: 0

README

pubfncomment

pubfncomment is analyzer that detects a function which has no comment.

Instruction

go install github.com/sivchari/pubfncomment/cmd/pubfncomment

Usage

package a

func ok() {}

// OK is a function
func OK() {}

func NG() {}
go vet -vettool=(which pubfncomment) ./...

# a
./main_test.go:11:2: public function (NG) should have comment

CI

GitHub Actions
- name: install pubfncomment
  run: go install github.com/sivchari/pubfncomment/cmd/pubfncomment

- name: run tenv
  run: go vet -vettool=`which pubfncomment` ./...

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "pubfncomment",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Analyzer is ...

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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