naming

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceDescription

type InterfaceDescription struct {
	Name    string
	Methods []MethodDescription
}

type MethodDescription

type MethodDescription struct {
	Name         string
	Parameters   []string
	ReturnValues []string
}

type RuleResult

type RuleResult struct {
	Rule          configuration.NamingRule `json:"rule"`
	Description   string                   `json:"description"`
	Verifications []Verification           `json:"verifications"`
	Passes        bool                     `json:"passes"`
}

func CheckRule

func CheckRule(moduleInfo model.ModuleInfo, rule configuration.NamingRule) *RuleResult

type RulesResult

type RulesResult struct {
	Results []*RuleResult `json:"results"`
	Passes  bool          `json:"passes"`
}

func CheckRules

func CheckRules(moduleInfo model.ModuleInfo, rules []*configuration.NamingRule) *RulesResult

type StructDescription

type StructDescription struct {
	Name    string
	Methods []MethodDescription
}

type Verification

type Verification struct {
	Package string   `json:"package"`
	Details []string `json:"details"`
	Passes  bool     `json:"passes"`
}

Jump to

Keyboard shortcuts

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