community

package
v0.0.0-...-dac86b4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Name    string `json:"name"`
	Passed  bool   `json:"passed"`
	Message string `json:"message,omitempty"`
}

CheckResult represents the outcome of a single validation check.

type ReviewChecklist

type ReviewChecklist struct {
	PluginName string       `json:"plugin_name"`
	Version    string       `json:"version"`
	Items      []ReviewItem `json:"items"`
}

ReviewChecklist is a structured checklist for plugin code review.

func NewReviewChecklist

func NewReviewChecklist(manifest *plugin.PluginManifest) *ReviewChecklist

NewReviewChecklist creates a standard review checklist for a plugin.

func (*ReviewChecklist) PassedRequired

func (rc *ReviewChecklist) PassedRequired() bool

PassedRequired returns true if all required items are marked as passed.

func (*ReviewChecklist) Summary

func (rc *ReviewChecklist) Summary() string

Summary returns a textual summary of the review.

type ReviewItem

type ReviewItem struct {
	Category    string `json:"category"`
	Description string `json:"description"`
	Required    bool   `json:"required"`
	Passed      bool   `json:"passed"`
	Notes       string `json:"notes,omitempty"`
}

ReviewItem is a single item in the review checklist.

type SubmissionValidator

type SubmissionValidator struct{}

SubmissionValidator validates plugin submissions for community contributions.

func NewSubmissionValidator

func NewSubmissionValidator() *SubmissionValidator

NewSubmissionValidator creates a new SubmissionValidator.

func (*SubmissionValidator) ValidateDirectory

func (v *SubmissionValidator) ValidateDirectory(dir string) (*ValidationResult, error)

ValidateDirectory validates a plugin directory for community submission.

type ValidationResult

type ValidationResult struct {
	Valid  bool          `json:"valid"`
	Checks []CheckResult `json:"checks"`
}

ValidationResult holds the full outcome of submission validation.

Jump to

Keyboard shortcuts

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