architecture

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package architecture provides checks targeting architecture conventions

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 architecture checks

func (*Module) Configure

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

Configure DI

type Props

type Props struct {
	Name                       string
	EntryPaths                 []string
	CheckDependencyConventions bool
	Groups                     map[string][]string
}

Props of an analyzer which will be used by the config-module to match the entries of a file to this 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