From 87b87f7de34f7ad0eb36efbbf1b8d5b63c59b231 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Mon, 21 Mar 2022 13:37:44 +0100 Subject: [PATCH] Fix golangci-lint configuration - remove redundante whitespace - rename wrong linter-settings to linters-settings - ignore strconv functions for gomnd linter - use australian locale for spell checking --- .golangci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 3563944..54140a9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,16 +2,16 @@ run: skip-files: - boardvoting/assets.go - + output: sort-results: true -linter-settings: +linters-settings: goheader: values: const: ORGANIZATION: CAcert Inc. - template: | + template: |- Copyright {{ YEAR-RANGE }} {{ ORGANIZATION }} SPDX-License-Identifier: Apache-2.0 @@ -26,10 +26,13 @@ linter-settings: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + gomnd: + ignore-functions: + - 'strconv.*' goimports: local-prefixes: git.cacert.org/cacert-boardvoting misspell: - locale: US + locale: en-AU ignore-words: - CAcert