Skip to content

Commit cdbe94b

Browse files
committed
Resolve indentation inconsistencies
1 parent 09ed864 commit cdbe94b

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

checks/fileparser/github_workflow.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ func IsPackagingWorkflow(workflow *actionlint.Workflow, fp string) (JobMatchResu
565565
},
566566
LogText: "candidate container publishing workflow using ko",
567567
},
568-
{
569-
// Commonly JavaScript packages, but supports multiple ecosystems
570-
Steps: []*JobMatcherStep{
571-
{
572-
Run: "npx.*semantic-release",
573-
},
574-
},
575-
LogText: "candidate publishing workflow using semantic-release",
576-
},
568+
{
569+
// Commonly JavaScript packages, but supports multiple ecosystems
570+
Steps: []*JobMatcherStep{
571+
{
572+
Run: "npx.*semantic-release",
573+
},
574+
},
575+
LogText: "candidate publishing workflow using semantic-release",
576+
},
577577
}
578578

579579
return AnyJobsMatch(workflow, jobMatchers, fp, "not a publishing workflow")

checks/fileparser/github_workflow_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -998,11 +998,11 @@ func TestIsPackagingWorkflow(t *testing.T) {
998998
filename: "../testdata/.github/workflows/github-workflow-packaging-cargo.yaml",
999999
expected: true,
10001000
},
1001-
{
1002-
name: "semantic-release publish",
1003-
filename: "../testdata/.github/workflows/github-workflow-packaging-semantic-release.yaml",
1004-
expected: true,
1005-
},
1001+
{
1002+
name: "semantic-release publish",
1003+
filename: "../testdata/.github/workflows/github-workflow-packaging-semantic-release.yaml",
1004+
expected: true,
1005+
},
10061006
}
10071007
for _, tt := range tests {
10081008
tt := tt // Re-initializing variable so it is not changed while executing the closure below

0 commit comments

Comments
 (0)