Skip to content

Commit 2138323

Browse files
committed
add nolint:mnd
1 parent de65f6b commit 2138323

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

common/openapi/models.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,28 +2388,28 @@ var ExampleProductCatalogReply = ProductCatalogReply{
23882388
Version: "v0.0.1",
23892389
SHA: "12a4a1212888e9316a16826ba074b37230b4b7ba903cd8d7e627e4a8d03a6211",
23902390
Modules: map[string]models.Feature{
2391-
string(models.CatalogComplianceModule): models.Feature{
2391+
string(models.CatalogComplianceModule): {
23922392
Audience: "public",
2393-
Billing: models.Billing{Prices: []models.ItemPrice{models.ItemPrice{
2393+
Billing: models.Billing{Prices: []models.ItemPrice{{
23942394
Interval: "month",
23952395
LookupKey: "price_compliance_monthly",
23962396
Nickname: "price_compliance_monthly",
23972397
PriceID: "price_1S3qX6JIzM4Pa2ZcRtuinRdG",
2398-
UnitAmount: int64(45000),
2399-
}, models.ItemPrice{
2398+
UnitAmount: int64(45000), //nolint:mnd
2399+
}, {
24002400
Interval: "year",
24012401
LookupKey: "price_compliance_annually",
24022402
Nickname: "price_compliance_annually",
24032403
PriceID: "price_1S3qX7JIzM4Pa2ZchMVxiS1l",
2404-
UnitAmount: int64(500000),
2404+
UnitAmount: int64(500000), //nolint:mnd
24052405
}}},
24062406
Description: "Core Compliance Automation and Standards Library",
24072407
DisplayName: "Core Compliance Module",
24082408
IncludeWithTrial: true,
24092409
LookupKey: "compliance_module",
24102410
MarketingDescription: "Automate evidence collection and task tracking to simplify SOC 2, ISO 27001, and other certification workflows",
24112411
ProductID: "prod_SzqDyAvxP2D7fA",
2412-
Usage: &models.Usage{EvidenceStorageGB: int64(25000)},
2412+
Usage: &models.Usage{EvidenceStorageGB: int64(25000)}, //nolint:mnd
24132413
},
24142414
}},
24152415
}
@@ -2520,9 +2520,9 @@ var ExampleScopesRequest = ScopesRequest{}
25202520
var ExampleScopesReply = ScopesReply{
25212521
Reply: rout.Reply{Success: true},
25222522
Scopes: map[string][]string{
2523-
"internal_policy": []string{"read", "write", "delete"},
2524-
"procedure": []string{"read", "write", "delete"},
2525-
"control": []string{"read", "write", "delete"},
2523+
"internal_policy": {"read", "write", "delete"},
2524+
"procedure": {"read", "write", "delete"},
2525+
"control": {"read", "write", "delete"},
25262526
},
25272527
}
25282528

fga/generate/modelparse/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ func ParseRoleAnnotationsData(data []byte) (*RoleInfo, error) {
7373
}
7474

7575
if annotationValue, ok := strings.CutPrefix(line, roleAnnotation); ok {
76-
parts := strings.SplitN(strings.TrimSpace(annotationValue), "|", 2)
76+
parts := strings.SplitN(strings.TrimSpace(annotationValue), "|", 2) //nolint:mnd
7777
pendingRoleName = strings.TrimSpace(parts[0])
7878
pendingRoleDescription = ""
7979

80-
if len(parts) == 2 {
80+
if len(parts) == 2 { //nolint:mnd
8181
pendingRoleDescription = strings.TrimSpace(parts[1])
8282
}
8383
}

0 commit comments

Comments
 (0)