diff --git a/.golangci.yaml b/.golangci.yaml index 055dbd0..31a97bd 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,7 +5,7 @@ linters-settings: errorlint: # Report non-wrapping error creation using fmt.Errorf errorf: false - + linters: enable: - bodyclose diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..1ca1987 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,40 @@ +# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +# SPDX-License-Identifier: Apache-2.0 +--- + +extends: default + +ignore: [] + +rules: + braces: + level: warning + max-spaces-inside: 1 + brackets: + level: warning + max-spaces-inside: 1 + colons: + level: warning + max-spaces-after: -1 + commas: + level: warning + comments: disable + comments-indentation: disable + document-start: + present: true + empty-lines: + max: 2 + hyphens: + max-spaces-after: 1 + indentation: + level: error + indent-sequences: consistent + line-length: + level: warning + max: 90 + allow-non-breakable-words: true + allow-non-breakable-inline-mappings: true + truthy: + allowed-values: + - 'true' + - 'false' diff --git a/error_test.go b/error_test.go index 5861d9a..e715ab6 100644 --- a/error_test.go +++ b/error_test.go @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC +// SPDX-License-Identifier: Apache-2.0 + package bascule import (