contents

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 PackageContents

type PackageContents struct {
	Functions  int
	Methods    int
	Structs    int
	Interfaces int
}

type RuleResult

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

func CheckRule

func CheckRule(moduleInfo model.ModuleInfo, contentsRule configuration.ContentsRule) *RuleResult

type RulesResult

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

func CheckRules

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

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