module

package
v0.1.18 Latest Latest
Warning

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

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

README

Description

  • Checks the module.yaml definition file.
  • Check that openapi conversions have human-readable description
  • Check oss info in the oss.yaml file.
  • Check license header in files.

Settings example

Module level

This linter has the following settings:

linters-settings:
  module:
    oss:
      disable: false
    deinition-file:
      disable: false
    conversions:
      disable: false
    exclude-rules:
      license:
        files:
          - images/upmeter/stress.sh
          - images/simple-bridge/rootfs/bin/simple-bridge
        directories:
          - hooks/venv/
    impact: error

Documentation

Index

Constants

View Source
const ID = "module"

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module linter

func New

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

func (*Module) Desc

func (l *Module) Desc() string

func (*Module) Name

func (l *Module) Name() string

func (*Module) Run

func (l *Module) 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