-
Notifications
You must be signed in to change notification settings - Fork 24
Give some love to the project #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
f233a78
a177ab5
1d5f26b
4ba6939
f8cee7a
7f29c8e
8a0cb20
e8bfe1d
101b85e
b8012a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Scala Steward | ||
|
|
||
| # This workflow will launch everyday at 00:00 | ||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * *' | ||
| workflow_dispatch: {} | ||
|
|
||
| jobs: | ||
| scala-steward: | ||
| timeout-minutes: 30 | ||
| runs-on: ubuntu-latest | ||
| name: Scala Steward | ||
| steps: | ||
| - name: Scala Steward | ||
| uses: scala-steward-org/scala-steward-action@v2.59.0 |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,30 @@ | ||||||||||
| rules = [ | ||||||||||
| OrganizeImports, | ||||||||||
| DisableSyntax | ||||||||||
| ExplicitResultTypes | ||||||||||
| LeakingImplicitClassVal | ||||||||||
| NoAutoTupling | ||||||||||
| NoValInForComprehension | ||||||||||
| ProcedureSyntax | ||||||||||
| RemoveUnused | ||||||||||
| OrganizeImports | ||||||||||
| ] | ||||||||||
|
|
||||||||||
| RemoveUnused { | ||||||||||
| imports = false // See https://github.com/scalacenter/scalafix/blob/v0.11.0/docs/rules/OrganizeImports.md#configuration | ||||||||||
| } | ||||||||||
|
Comment on lines
+12
to
+14
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Super nit, but we are sort of mixing styles with how we have this setting defined and how we have the ones below defined. Can we change this to
Suggested change
Just to be consistent with how we do the |
||||||||||
|
|
||||||||||
| Disable { | ||||||||||
| ifSynthetic = [ | ||||||||||
| "scala/Option.option2Iterable" | ||||||||||
| "scala/Predef.any2stringadd" | ||||||||||
| ] | ||||||||||
| } | ||||||||||
|
|
||||||||||
| DisableSyntax.noReturns = true | ||||||||||
| DisableSyntax.noXml = true | ||||||||||
| DisableSyntax.noFinalize = true | ||||||||||
| DisableSyntax.noValPatterns = true | ||||||||||
|
|
||||||||||
| ExplicitResultTypes.rewriteStructuralTypesToNamedSubclass = false | ||||||||||
|
|
||||||||||
| OrganizeImports.groupedImports = Explode | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,7 @@ | ||
| def scala212 = "2.12.12" | ||
| def scala212 = "2.12.18" | ||
|
|
||
| Global / onChangedBuildSource := ReloadOnSourceChanges | ||
|
|
||
| inThisBuild( | ||
| List( | ||
| organization := "org.scalameta", | ||
|
|
@@ -15,16 +18,14 @@ inThisBuild( | |
| ) | ||
| ), | ||
| scalaVersion := scala212, | ||
| scalafixDependencies += | ||
| "com.github.liancheng" %% "organize-imports" % "0.5.0", | ||
|
ckipp01 marked this conversation as resolved.
|
||
| scalacOptions ++= List("-Ywarn-unused-import"), | ||
| scalafixCaching := true, | ||
| semanticdbEnabled := true | ||
| ) | ||
| ) | ||
|
|
||
| crossScalaVersions := Nil | ||
| skip.in(publish) := true | ||
| publish / skip := true | ||
|
|
||
| commands += | ||
| Command.command("fixAll") { s => | ||
|
|
@@ -42,7 +43,6 @@ lazy val plugin = project | |
| .settings( | ||
| moduleName := "sbt-native-image", | ||
| sbtPlugin := true, | ||
| sbtVersion.in(pluginCrossBuild) := "1.0.0", | ||
| crossScalaVersions := List(scala212), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still needed at all? |
||
| buildInfoPackage := "sbtnativeimage", | ||
| buildInfoKeys := Seq[BuildInfoKey](version), | ||
|
|
@@ -55,8 +55,8 @@ lazy val plugin = project | |
| lazy val example = project | ||
| .in(file("example")) | ||
| .settings( | ||
| skip.in(publish) := true, | ||
| mainClass.in(Compile) := Some("example.Hello"), | ||
| publish / skip := true, | ||
| Compile / mainClass := Some("example.Hello"), | ||
| test := { | ||
| val binary = nativeImage.value | ||
| val output = scala.sys.process.Process(List(binary.toString)).!!.trim | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this for now. We actually have our own scalameta steward here which we can add this repo to once we get this merged in.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I'd prefer to keep it as, usually, external Scala Steward instances are making PRs from a fork, which makes it harder (if not impossible) to commit on the branches made by Scala Steward (if we need to fix something on one of the update branches)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be fine to switch this. We do the same for all the rest of the scalameta projects. Since the PRs are not on the main branch of the fork, a maintainer of the repo is able to add another commit to it.