Build: use golangci-lint as a make command (#17739)
* Build: use golangci-lint as a make command * Since gometalinter was deprecated in favor of golangci-lint so it was replaced by it. Responsibilities held by the gometalinter was moved to golangci-lint * There was some changes in implementation (that was also mentioned in the code comment) between the tools, which uncovered couple errors in the code. Those issues were either solved or disabled by the inline comments * Introduce the golangci-lint config, to make their configuration more manageable * Build: replace backend-lint.sh script with make
This commit is contained in:
1 parent
364f1f2e55
commit
caa1314f44
20 files changed
+278
-85
No files matched your search
@@ -65,7 +65,7 @@ func TestDSRouteRule(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
setting.SecretKey = "password"
|
||||
setting.SecretKey = "password" //nolint:goconst
|
||||
key, _ := util.Encrypt([]byte("123"), "password")
|
||||
|
||||
ds := &m.DataSource{
|
||||
|
||||
Reference in new issue
Block a user