Skip to content

Commit e664c01

Browse files
committed
ignore usage of Licenses in linter
1 parent 30ba4c2 commit e664c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rules.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func testingWithOwnerUser(m dsl.Matcher) {
7676
$_, $_ := $client.$Method($*_)
7777
`).Where(m["t"].Type.Implements("testing.TB") &&
7878
m.File().Name.Matches(`_test\.go$`) &&
79-
!m["Method"].Text.Matches(`^(UpdateAppearance|AddLicense|InsertLicense|DeleteLicense|CreateWorkspaceProxy|Replicas|Regions)$`)).
79+
!m["Method"].Text.Matches(`^(UpdateAppearance|Licenses|AddLicense|InsertLicense|DeleteLicense|CreateWorkspaceProxy|Replicas|Regions)$`)).
8080
At(m["Method"]).
8181
Report(`The CLI will be operating as the owner user, which has unrestricted permissions. Consider creating a different user.`)
8282

@@ -87,7 +87,7 @@ func testingWithOwnerUser(m dsl.Matcher) {
8787
$_ := $client.$Method($*_)
8888
`).Where(m["t"].Type.Implements("testing.TB") &&
8989
m.File().Name.Matches(`_test\.go$`) &&
90-
!m["Method"].Text.Matches(`^(UpdateAppearance|AddLicense|InsertLicense|DeleteLicense|CreateWorkspaceProxy|Replicas|Regions)$`)).
90+
!m["Method"].Text.Matches(`^(UpdateAppearance|Licenses|AddLicense|InsertLicense|DeleteLicense|CreateWorkspaceProxy|Replicas|Regions)$`)).
9191
At(m["Method"]).
9292
Report(`The CLI will be operating as the owner user, which has unrestricted permissions. Consider creating a different user.`)
9393
}

0 commit comments

Comments
 (0)