globocop

command module
v0.0.0-...-9fe1b30 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 6 Imported by: 0

README

globocop

A static analysis tool that checks for global variables in Go code.

Installation

$ go get -u github.com/codingconcepts/globocop

Usage

globocop comes with 2 example packages:

  • ./examples/with_global - a package that contains global identifiers.
$ go run globocop.go ./examples
/.../examples/example.go:6:2: global var "unexportedVariable"
/.../examples/example.go:10:2: global var "ExportedVariable"
exit status 3

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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