Documentation ¶
Overview ¶
Package conform implements output to .conform.yaml.
Index ¶
- type Compiler
- type Output
- func (o *Output) Compile(compiler Compiler) error
- func (o *Output) Enable()
- func (o *Output) Filenames() []string
- func (o *Output) GenerateFile(filename string, w io.Writer) error
- func (o *Output) SetGPGSignatureCheck(enable bool)
- func (o *Output) SetGitHubOrganization(org string)
- func (o *Output) SetLicenseCheck(enable bool)
- func (o *Output) SetLicensePolicySpecs(licensePolicySpecs []licensepolicy.Spec)
- func (o *Output) SetMaximumOfOneCommit(enable bool)
- func (o *Output) SetScopes(scopes []string)
- func (o *Output) SetTypes(types []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct { output.FileAdapter // contains filtered or unexported fields }
Output implements .conform.yaml generation.
func (*Output) Compile ¶
Compile implements output.TypedWriter interface.
func (*Output) Enable ¶
func (o *Output) Enable()
Enable should be called to enable config generation.
func (*Output) GenerateFile ¶
GenerateFile implements output.FileWriter interface.
func (*Output) SetGPGSignatureCheck ¶
SetGPGSignatureCheck enables GPG signature check.
func (*Output) SetGitHubOrganization ¶
SetGitHubOrganization scopes GPG identity check to the GitHub organization.
func (*Output) SetLicenseCheck ¶
SetLicenseCheck enables license check.
func (*Output) SetLicensePolicySpecs ¶
func (o *Output) SetLicensePolicySpecs(licensePolicySpecs []licensepolicy.Spec)
SetLicensePolicySpecs sets the license policy specs.
func (*Output) SetMaximumOfOneCommit ¶
SetMaximumOfOneCommit enables single commit check.
Directories ¶
Path | Synopsis |
---|---|
Package commitpolicy contains YAML structures for commit policy in .conform.yaml.
|
Package commitpolicy contains YAML structures for commit policy in .conform.yaml. |
Package licensepolicy contains the YAML structure for license policy in .conform.yaml.
|
Package licensepolicy contains the YAML structure for license policy in .conform.yaml. |
Click to show internal directories.
Click to hide internal directories.