Skip to content

Commit

Permalink
✨ Recognize scala-steward as dependency update tool (#4130)
Browse files Browse the repository at this point in the history
* ✨ Recognize scala-steward as dependency update tool

Signed-off-by: Arnout Engelen <arnout@bzzt.net>

* ✨ also recognize scala-steward.conf in subdirectories

Signed-off-by: Arnout Engelen <arnout@bzzt.net>

* 🌱 add scala-steward to README

Signed-off-by: Arnout Engelen <arnout@bzzt.net>

---------

Signed-off-by: Arnout Engelen <arnout@bzzt.net>
  • Loading branch information
raboof committed May 30, 2024
1 parent 6b49140 commit 2855274
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
19 changes: 19 additions & 0 deletions checks/raw/dependency_update_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,25 @@ 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",
".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"),
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
36 changes: 36 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,42 @@ 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: ".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
2 changes: 2 additions & 0 deletions docs/checks/dependencyupdatetool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Detection is based on the configuration files listed [here](https://docs.renovatebot.com/configuration-options/)
* [PyUp](https://github.com/pyupio/pyup)
* Detection based on a `.pyup.yml` file
* [scala-steward](https://github.com/scala-steward-org/scala-steward)
* Detection is based on the configuration files listed [here](https://github.com/scala-steward-org/scala-steward/blob/main/docs/repo-specific-configuration.md)

# Add Support

Expand Down

0 comments on commit 2855274

Please sign in to comment.