aliasnimby

package module
v0.0.0-...-30fba58 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: BSD-2-Clause Imports: 6 Imported by: 0

README

Introduction

aliasnimby checks a package for alias declarations, and if it finds one, returns a non zero exit status - just like everyone else does when aliases are discussed. It's not an overreaction at all.

Usage

go get -u github.com/bradleyfalzon/aliasnimby/...
aliasnimby [package]

Example

$ cat testdata/testdata.go
package testdata

type T1 struct{}

type T3 = T1
$ aliasnimby ./testdata/
/home/bradleyf/go/src/github.com/bradleyfalzon/aliasnimby/testdata/main.go:5:6: T3 is an alias
Argh fark, it's in my backyard!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func (*Checker) Check

func (c *Checker) Check() ([]lint.Issue, error)

func (*Checker) Program

func (c *Checker) Program(prog *loader.Program)

type Issue

type Issue struct {
	// contains filtered or unexported fields
}

func (Issue) Message

func (i Issue) Message() string

func (Issue) Pos

func (i Issue) Pos() token.Pos

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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