branch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package branch provides a linter for validating a git branch against the rules defined in the lint configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

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

Branch represents a linter that validates a git branch against the configured rules.

func NewBranch

func NewBranch(br branch.Branch, cfg config.Config) *Branch

NewBranch creates a new Branch linter for the provided git branch, using the configuration defining the rules to validate it.

func (*Branch) Issues

func (b *Branch) Issues() []issue.Issue

Issues returns a slice of validation issues for the git branch.

It validates the branch name against the configured name pattern and the task identifier embedded in the branch name against the configured task identifier pattern.

Directories

Path Synopsis
Package name provides a linter for validating commit branch names.
Package name provides a linter for validating commit branch names.

Jump to

Keyboard shortcuts

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