1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-05 13:15:26 +02:00

fix: jsonschema field names (#2693)

* fix: jsonschema field names

* fix: validate missing tags
This commit is contained in:
Carlos Alexandro Becker 2021-11-23 10:18:09 -03:00 committed by GitHub
parent 37f8167fd9
commit 8955b2503a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 4 deletions

View File

@ -8,8 +8,15 @@ linters:
- wastedassign
- revive
- forbidigo
- tagliatelle
linters-settings:
forbidigo:
forbid:
- 'ioutil\.*'
tagliatelle:
case:
use-field-name: false
rules:
yaml: snake
json: snake

View File

@ -1,5 +1,7 @@
// Package krew implements Piper and Publisher, providing krew plugin manifest
// creation and upload to a repository (aka krew plugin index).
//
// nolint:tagliatelle
package krew
import (

View File

@ -1,4 +1,6 @@
// Package snapcraft implements the Pipe interface providing Snapcraft bindings.
//
// nolint:tagliatelle
package snapcraft
import (

View File

@ -288,8 +288,8 @@ type Build struct {
}
type BuildHookConfig struct {
Pre Hooks `yaml:",omitempty"`
Post Hooks `yaml:",omitempty"`
Pre Hooks `yaml:"pre,omitempty"`
Post Hooks `yaml:"post,omitempty"`
}
type Hooks []Hook
@ -652,7 +652,7 @@ type Snapcraft struct {
Confinement string `yaml:"confinement,omitempty"`
Layout map[string]SnapcraftLayoutMetadata `yaml:"layout,omitempty"`
Apps map[string]SnapcraftAppMetadata `yaml:"apps,omitempty"`
Plugs map[string]interface{} `yaml:",omitempty"`
Plugs map[string]interface{} `yaml:"plugs,omitempty"`
Files []SnapcraftExtraFiles `yaml:"extra_files,omitempty"`
}
@ -737,7 +737,7 @@ type Blob struct {
Bucket string `yaml:"bucket,omitempty"`
Provider string `yaml:"provider,omitempty"`
Region string `yaml:"region,omitempty"`
DisableSSL bool `yaml:"disableSSL,omitempty"`
DisableSSL bool `yaml:"disableSSL,omitempty"` // nolint:tagliatelle // TODO(caarlos0): rename to disable_ssl
Folder string `yaml:"folder,omitempty"`
KMSKey string `yaml:"kmskey,omitempty"`
IDs []string `yaml:"ids,omitempty"`