Skip to content

Commit

Permalink
Ignore lint for deprectaed types
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Nov 8, 2023
1 parent 8da6cd1 commit 93148ce
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions migrations/account_type/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,33 +285,33 @@ func (m *AccountTypeMigration) maybeConvertAccountType(staticType interpreter.St
default:
// Is it safe to do so?
switch staticType {
case interpreter.PrimitiveStaticTypePublicAccount:
case interpreter.PrimitiveStaticTypePublicAccount: //nolint:staticcheck GoDeprecation

Check failure on line 288 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypePublicAccount is deprecated: PrimitiveStaticTypePublicAccount only exists for migration purposes. (staticcheck)
return unauthorizedAccountReferenceType
case interpreter.PrimitiveStaticTypeAuthAccount:
case interpreter.PrimitiveStaticTypeAuthAccount: //nolint:staticcheck GoDeprecation

Check failure on line 290 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccount is deprecated: PrimitiveStaticTypeAuthAccount only exists for migration purposes. (staticcheck)
return authAccountReferenceType

case interpreter.PrimitiveStaticTypeAuthAccountCapabilities,
interpreter.PrimitiveStaticTypePublicAccountCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountCapabilities, //nolint:staticcheck GoDeprecation

Check failure on line 293 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccountCapabilities is deprecated: PrimitiveStaticTypeAuthAccountCapabilities only exists for migration purposes. (staticcheck)
interpreter.PrimitiveStaticTypePublicAccountCapabilities: //nolint:staticcheck GoDeprecation

Check failure on line 294 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypePublicAccountCapabilities is deprecated: PrimitiveStaticTypePublicAccountCapabilities only exists for migration purposes. (staticcheck)
return interpreter.PrimitiveStaticTypeAccount_Capabilities

case interpreter.PrimitiveStaticTypeAuthAccountAccountCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountAccountCapabilities: //nolint:staticcheck GoDeprecation

Check failure on line 297 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccountAccountCapabilities is deprecated: PrimitiveStaticTypeAuthAccountAccountCapabilities only exists for migration purposes. (staticcheck)
return interpreter.PrimitiveStaticTypeAccount_AccountCapabilities

case interpreter.PrimitiveStaticTypeAuthAccountStorageCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountStorageCapabilities: //nolint:staticcheck GoDeprecation

Check failure on line 300 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccountStorageCapabilities is deprecated: PrimitiveStaticTypeAuthAccountStorageCapabilities only exists for migration purposes. (staticcheck)
return interpreter.PrimitiveStaticTypeAccount_StorageCapabilities

case interpreter.PrimitiveStaticTypeAuthAccountContracts,
interpreter.PrimitiveStaticTypePublicAccountContracts:
case interpreter.PrimitiveStaticTypeAuthAccountContracts, //nolint:staticcheck GoDeprecation

Check failure on line 303 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccountContracts is deprecated: PrimitiveStaticTypeAuthAccountContracts only exists for migration purposes. (staticcheck)
interpreter.PrimitiveStaticTypePublicAccountContracts: //nolint:staticcheck GoDeprecation

Check failure on line 304 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypePublicAccountContracts is deprecated: PrimitiveStaticTypePublicAccountContracts only exists for migration purposes. (staticcheck)
return interpreter.PrimitiveStaticTypeAccount_Contracts

case interpreter.PrimitiveStaticTypeAuthAccountKeys,
interpreter.PrimitiveStaticTypePublicAccountKeys:
case interpreter.PrimitiveStaticTypeAuthAccountKeys, //nolint:staticcheck GoDeprecation

Check failure on line 307 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypeAuthAccountKeys is deprecated: PrimitiveStaticTypeAuthAccountKeys only exists for migration purposes. (staticcheck)
interpreter.PrimitiveStaticTypePublicAccountKeys: //nolint:staticcheck GoDeprecation

Check failure on line 308 in migrations/account_type/migration.go

View workflow job for this annotation

GitHub Actions / Lint

SA1019: interpreter.PrimitiveStaticTypePublicAccountKeys is deprecated: PrimitiveStaticTypePublicAccountKeys only exists for migration purposes. (staticcheck)
return interpreter.PrimitiveStaticTypeAccount_Keys

case interpreter.PrimitiveStaticTypeAuthAccountInbox:
case interpreter.PrimitiveStaticTypeAuthAccountInbox: //nolint:staticcheck GoDeprecation
return interpreter.PrimitiveStaticTypeAccount_Inbox

case interpreter.PrimitiveStaticTypeAccountKey:
case interpreter.PrimitiveStaticTypeAccountKey: //nolint:staticcheck GoDeprecation
return interpreter.AccountKeyStaticType
}
}
Expand Down

0 comments on commit 93148ce

Please sign in to comment.