pairedbrackets

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IgnoreFuncCallsFlagName    = "ignore-func-calls"
	IgnoreFuncCallsFlagUsage   = "comma separated list of regexp patterns of fully qualified function calls to ignore"
	IgnoreFuncCallsFlagDefault = "github.com/stretchr/testify/assert,github.com/stretchr/testify/require"
)

Fully qualified function examples:

  • github.com/stretchr/testify/require.Equal
  • (*github.com/stretchr/testify/assert.Assertions).Equal

Variables

This section is empty.

Functions

func NewAnalyzer

func NewAnalyzer() *analysis.Analyzer

NewAnalyzer returns Analyzer that checks formatting of paired brackets.

Types

type Element

type Element string
const (
	Unknown          Element = "element"
	Argument         Element = "argument"
	CompositeElement Element = "composite element"
	Constant         Element = "constant"
	Expression       Element = "expression"
	Field            Element = "field"
	Import           Element = "import"
	Index            Element = "index"
	Method           Element = "method"
	Parameter        Element = "parameter"
	Receiver         Element = "receiver"
	Result           Element = "result"
	Statement        Element = "statement"
	Type             Element = "type"
	TypeParameter    Element = "type parameter"
	Variable         Element = "variable"
)

type Name

type Name string
const (
	Parenthesis Name = "parenthesis" // ()
	Bracket     Name = "bracket"     // []
	Brace       Name = "brace"       // {}
)

Directories

Path Synopsis
testfiles

Jump to

Keyboard shortcuts

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