spec

package
v0.0.0-...-b683117 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrScopeWithoutExcludes = func(index int) error {
	return errors.New(fmt.Sprintf("scope does not have excludes: index %d", index))
}
View Source
var ErrScopeWithoutIncludes = func(index int) error {
	return errors.New(fmt.Sprintf("scope does not have includes: index %d", index))
}
View Source
var ErrScopeWithoutName = func(index int) error {
	return errors.New(fmt.Sprintf("scope does not have a name: index %d", index))
}
View Source
var ErrScopeWithoutPath = func(index int) error {
	return errors.New(fmt.Sprintf("scope does not have a path: index %d", index))
}
View Source
var ErrSpecWithoutPhpSettings = errors.New("specification without Php settings")
View Source
var ErrSpecWithoutScopes = errors.New("specification without scopes")
View Source
var ErrUnsupportedPhpVersion = errors.New("unsupported Php version")

Functions

This section is empty.

Types

type Framework

type Framework struct {
	Name    string
	Version string
}

type Php

type Php struct {
	Version   string
	Framework *Framework
}

type Scope

type Scope struct {
	Name     string
	Path     string
	Includes []string
	Excludes []string
}

func (*Scope) GetFiles

func (s *Scope) GetFiles() ([]string, error)

type Specification

type Specification struct {
	PHP    *Php
	Scopes []Scope `toml:"Scope"`
}

func New

func New(specificationFile string) (*Specification, error)

Jump to

Keyboard shortcuts

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