Skip to content

Commit

Permalink
✨ Recognize scala-steward as dependency update tool
Browse files Browse the repository at this point in the history
  • Loading branch information
raboof committed May 29, 2024
1 parent d99ae69 commit 3dde9d4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,21 @@ var checkDependencyFileExists fileparser.DoWhileTrueOnFilename = func(name strin
},
},
})
// https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md
case ".scala-steward.conf",
"scala-steward.conf":
*ptools = append(*ptools, checker.Tool{
Name: "scala-steward",
URL: asPointer("https://github.com/scala-steward-org/scala-steward"),
Desc: asPointer("Works with Maven, Mill, sbt, and Scala CLI."),
Files: []checker.File{
{
Path: name,
Type: finding.FileTypeSource,
Offset: checker.OffsetDefault,
},
},
})
}

// Continue iterating, even if we have found a tool.
Expand Down
12 changes: 12 additions & 0 deletions checks/raw/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ func Test_checkDependencyFileExists(t *testing.T) {
want: true,
wantErr: false,
},
{
name: ".scala-steward.conf",
path: ".scala-steward.conf",
want: true,
wantErr: false,
},
{
name: "scala-steward.conf",
path: "scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".lift.toml",
path: ".lift.toml",
Expand Down

0 comments on commit 3dde9d4

Please sign in to comment.