You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/graphql/resolver.go:366:26: SA1019: measurement.TotalWeightStore is deprecated: Weight is being calculated using weight value in StoreItemsWeight TotalWeightStore calculates how much a total list weighs in metric and imperial for store items (staticcheck)
storeList.TotalWeight = measurement.TotalWeightStore(list.Store.Items)
Code example or link to a public repository
// Deprecated: Weight is being calculated using weight value in StoreItemsWeight// TotalWeightStore calculates how much a total list weighs in metric and imperial for store itemsfuncTotalWeightStore(items []*model.StoreItem) *model.TotalWeight {
...
}
The text was updated successfully, but these errors were encountered:
Description of the problem
I've deprecated some methods in my code and now the linter is flagging them as errors and returning exit code 1, which makes the pipeline fail.
Version of golangci-lint
golangci-lint has version 1.38.0 built from 507703b on 2021-03-03T13:53:01Z
Config file
Go environment
Verbose output of running
Code example or link to a public repository
The text was updated successfully, but these errors were encountered: