Skip to content

Commit

Permalink
Use standard linters and checks (#201)
Browse files Browse the repository at this point in the history
* Use standard linters and checks

* Add config, set baseline

* *
  • Loading branch information
ofalvai authored Dec 30, 2024
1 parent a262e05 commit 160c355
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
issues:
# Last commit on v1 branch before switching from go-lint to golangci-lint
new-from-rev: a262e052c5940739f52ba764a39bb46ad8275b4e

# https://github.com/golangci/golangci-lint/issues/2439
exclude-use-default: false
exclude-dirs:
- .*/mocks

linters:
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
- revive

linters-settings:
revive:
severity: error
rules:
- name: exported
arguments:
- checkPrivateReceivers
22 changes: 7 additions & 15 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
format_version: 5
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git


workflows:
test:
steps:
- script:
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
go get -u github.com/stretchr/testify/require
go get -u golang.org/x/crypto/ssh/terminal
go get -u gopkg.in/yaml.v2
- go-list:
- git::https://github.com/bitrise-steplib/steps-check.git:
title: Lint
inputs:
- exclude: "*/vendor/*\n*/pkcs12*"
- golint:
- errcheck:
- go-test:
- workflow: lint
- skip_step_yml_validation: "yes"
- go-list: { }
- go-test: { }

0 comments on commit 160c355

Please sign in to comment.