Skip to content
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

build: add scalafix-pixiv-rule in scalafix #490

Merged
merged 2 commits into from
Jul 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ rules = [
ProcedureSyntax
ExplicitResultTypes
OrganizeImports
UnnecessarySemicolon
ZeroIndexToHead
CheckIsEmpty
NonCaseException
SingleConditionMatch
]

RemoveUnused {
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
organization in ThisBuild := "com.iheart"

scalafixDependencies in ThisBuild ++= Seq(
"com.github.liancheng" %% "organize-imports" % "0.6.0"
"com.github.liancheng" %% "organize-imports" % "0.6.0",
"net.pixiv" %% "scalafix-pixiv-rule" % "2.2.0"
)

lazy val noPublishSettings = Seq(
Expand Down
3 changes: 2 additions & 1 deletion example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name := """example"""
version := "1.0-SNAPSHOT"

scalafixDependencies in ThisBuild ++= Seq(
"com.github.liancheng" %% "organize-imports" % "0.6.0"
"com.github.liancheng" %% "organize-imports" % "0.6.0",
"net.pixiv" %% "scalafix-pixiv-rule" % "2.2.0"
)

lazy val root = (project in file(".")).enablePlugins(PlayScala, SwaggerPlugin) //enable plugin
Expand Down