license

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

Description

Checks the copyright header in files.

Settings example

Module level

This linter has settings.

linters-settings:
  license:
    exclude-rules:
      files:
        - /images/upmeter/stress.sh
        - /images/simple-bridge/rootfs/bin/simple-bridge
      directories:
        - /hooks/venv/

Documentation

Index

Constants

View Source
const (
	ID = "license"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Copyright struct {
	ErrorList *errors.LintRuleErrorsList
	// contains filtered or unexported fields
}

Copyright linter

func New

func New(cfg *config.ModuleConfig, errorList *errors.LintRuleErrorsList) *Copyright

func (*Copyright) Desc

func (l *Copyright) Desc() string

func (*Copyright) Name

func (l *Copyright) Name() string

func (*Copyright) Run

func (l *Copyright) Run(m *module.Module)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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