dingo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package dingo provides checks targeting dingo-specific problems

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

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

The Analyzer holds a set of checks, uses the config and has props that can be defined to get read by the config

func (*Analyzer) ChecksToExecute

func (d *Analyzer) ChecksToExecute() []*analysis.Analyzer

ChecksToExecute decides which checks to run

func (*Analyzer) Inject

func (d *Analyzer) Inject(config configuration.AnalyzerConfig)

Inject dependencies

type Module

type Module struct{}

Module to register the dingo checks

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

type Props

type Props struct {
	Name                                   string
	CheckPointerReceiver                   bool
	CheckStrictTagsAndFunctions            bool
	CheckCorrectInterfaceToInstanceBinding bool
}

Props of an analyzer which will be used by the config-module to match the entries of a file to these variables. Is used to activate and deactivate checks, for example.

Directories

Path Synopsis
checks

Jump to

Keyboard shortcuts

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