Skip to content

Commit c1ef3a7

Browse files
Allow "api" package name
1 parent bba71de commit c1ef3a7

28 files changed

+29
-35
lines changed

.golangci.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ linters:
4949
gomoddirectives:
5050
replace-allow-list:
5151
- launchpad.net/gocheck
52-
revive:
53-
rules:
54-
- name: var-naming
55-
arguments:
56-
- []
57-
- ["api"]
5852
exclusions:
5953
generated: lax
6054
presets:

api/CORS_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
package api
5+
package api //nolint:revive
66

77
// CORSList is a list of trusted third-party origins.
88
// nolint:gochecknoglobals // TODO: Fix gochecknoglobals lint error

api/bsf_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
package api
5+
package api //nolint:revive
66

77
import (
88
"encoding/json"

api/bsf_handler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style license that can be
55
// found in the LICENSE file.
66

7-
package api
7+
package api //nolint:revive
88

99
import (
1010
"encoding/json"
@@ -14,9 +14,9 @@ import (
1414

1515
"github.com/stretchr/testify/assert"
1616

17-
"go.uber.org/mock/gomock"
1817
"github.com/web-platform-tests/wpt.fyi/shared"
1918
"github.com/web-platform-tests/wpt.fyi/shared/sharedtest"
19+
"go.uber.org/mock/gomock"
2020
)
2121

2222
func TestBSFHandler_Success(t *testing.T) {

api/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package api
1+
package api //nolint:revive
22

33
import (
44
"encoding/json"

api/labels.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
package api
5+
package api //nolint:revive
66

77
import (
88
"context"

api/labels_medium_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style license that can be
55
// found in the LICENSE file.
66

7-
package api
7+
package api //nolint:revive
88

99
import (
1010
"encoding/json"

api/manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
package api
5+
package api //nolint:revive
66

77
import (
88
"bytes"

api/manifest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Use of this source code is governed by a BSD-style license that can be
55
// found in the LICENSE file.
66

7-
package api
7+
package api //nolint:revive
88

99
import (
1010
"bytes"

api/metadata_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
package api
5+
package api //nolint:revive
66

77
import (
88
"context"

0 commit comments

Comments
 (0)