Skip to content

Commit

Permalink
✨ also recognize scala-steward.conf in subdirectories
Browse files Browse the repository at this point in the history
Signed-off-by: Arnout Engelen <arnout@bzzt.net>
  • Loading branch information
raboof committed May 30, 2024
1 parent 247880c commit 27f9880
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
6 changes: 5 additions & 1 deletion checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ 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":
"scala-steward.conf",
".github/.scala-steward.conf",
".github/scala-steward.conf",
".config/.scala-steward.conf",
".config/scala-steward.conf":
*ptools = append(*ptools, checker.Tool{
Name: "scala-steward",
URL: asPointer("https://github.com/scala-steward-org/scala-steward"),
Expand Down
24 changes: 24 additions & 0 deletions checks/raw/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,30 @@ func Test_checkDependencyFileExists(t *testing.T) {
want: true,
wantErr: false,
},
{
name: ".github/.scala-steward.conf",
path: ".github/.scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".github/scala-steward.conf",
path: ".github/scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".config/.scala-steward.conf",
path: ".config/.scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".config/scala-steward.conf",
path: ".config/scala-steward.conf",
want: true,
wantErr: false,
},
{
name: ".lift.toml",
path: ".lift.toml",
Expand Down

0 comments on commit 27f9880

Please sign in to comment.