mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
ci: re-enable revive and gosec linters (#17225)
* Reenables revive linter for test files (with an exception for the `unused-parameter` rule) * Reenables gosec linter for test files
This commit is contained in:
@ -856,7 +856,7 @@ func TestLicenseEntitlements(t *testing.T) {
|
||||
generatedLicenses := make([]database.License, 0, len(tc.Licenses))
|
||||
for i, lo := range tc.Licenses {
|
||||
generatedLicenses = append(generatedLicenses, database.License{
|
||||
ID: int32(i),
|
||||
ID: int32(i), // nolint:gosec
|
||||
UploadedAt: time.Now().Add(time.Hour * -1),
|
||||
JWT: lo.Generate(t),
|
||||
Exp: lo.GraceAt,
|
||||
|
@ -73,9 +73,9 @@ func TestWorkspaceQuota(t *testing.T) {
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
|
||||
defer cancel()
|
||||
max := 1
|
||||
maxWorkspaces := 1
|
||||
client, _, api, user := coderdenttest.NewWithAPI(t, &coderdenttest.Options{
|
||||
UserWorkspaceQuota: max,
|
||||
UserWorkspaceQuota: maxWorkspaces,
|
||||
LicenseOptions: &coderdenttest.LicenseOptions{
|
||||
Features: license.Features{
|
||||
codersdk.FeatureTemplateRBAC: 1,
|
||||
@ -195,9 +195,9 @@ func TestWorkspaceQuota(t *testing.T) {
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
|
||||
defer cancel()
|
||||
max := 1
|
||||
maxWorkspaces := 1
|
||||
client, _, api, user := coderdenttest.NewWithAPI(t, &coderdenttest.Options{
|
||||
UserWorkspaceQuota: max,
|
||||
UserWorkspaceQuota: maxWorkspaces,
|
||||
LicenseOptions: &coderdenttest.LicenseOptions{
|
||||
Features: license.Features{
|
||||
codersdk.FeatureTemplateRBAC: 1,
|
||||
|
Reference in New Issue
Block a user