Skip to content

Commit

Permalink
update warning-diff-scalafix-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Sep 11, 2024
1 parent 8d23f34 commit 4eb8be9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
18 changes: 9 additions & 9 deletions sbt-test/SyntacticOrganizeImports/test-1/expect.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[{
"message": "[SyntacticOrganizeImports] there is empty line in top level imports",
"position": {
"line": 3,
"line": 4,
"lineContent": "",
"sourcePath": "${BASE}/A.scala",
"startLine": 3,
"startLine": 4,
"startColumn": 0,
"endLine": 4,
"endLine": 5,
"endColumn": 0
}
}, {
"message": "[SyntacticOrganizeImports] there is empty line in top level imports",
"position": {
"line": 5,
"line": 6,
"lineContent": "",
"sourcePath": "${BASE}/A.scala",
"startLine": 5,
"startLine": 6,
"startColumn": 0,
"endLine": 6,
"endLine": 7,
"endColumn": 0
}
}, {
"message": "[SyntacticOrganizeImports] there is empty line in top level imports",
"position": {
"line": 6,
"line": 7,
"lineContent": "",
"sourcePath": "${BASE}/A.scala",
"startLine": 6,
"startLine": 7,
"startColumn": 0,
"endLine": 7,
"endLine": 8,
"endColumn": 0
}
}]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % sys.props("scalafix.version"))
addSbtPlugin("com.github.xuwei-k" % "warning-diff-scalafix-plugin" % "0.4.2")
addSbtPlugin("com.github.xuwei-k" % "warning-diff-scalafix-plugin" % "0.4.4")
30 changes: 15 additions & 15 deletions sbt-test/UnmooredDocComment/test-1/expect.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
[{
"message": "[UnmooredDocComment] unmoored doc comment for `Pkg`",
"position": {
"line": 0,
"line": 1,
"lineContent": "/** pkg */",
"sourcePath": "${BASE}/A.scala",
"startLine": 0,
"startLine": 1,
"startColumn": 0,
"endLine": 0,
"endLine": 1,
"endColumn": 10
}
}, {
"message": "[UnmooredDocComment] unmoored doc comment for `Term.Param`",
"position": {
"line": 5,
"line": 6,
"lineContent": " /** xxx */",
"sourcePath": "${BASE}/A.scala",
"startLine": 5,
"startLine": 6,
"startColumn": 2,
"endLine": 5,
"endLine": 6,
"endColumn": 12
}
}, {
"message": "[UnmooredDocComment] unmoored doc comment for `Case`",
"position": {
"line": 15,
"line": 16,
"lineContent": " /** ccc */",
"sourcePath": "${BASE}/A.scala",
"startLine": 15,
"startLine": 16,
"startColumn": 8,
"endLine": 15,
"endLine": 16,
"endColumn": 18
}
}, {
"message": "[UnmooredDocComment] unmoored doc comment for `Term.ForYield`",
"position": {
"line": 21,
"line": 22,
"lineContent": " /** zzz */",
"sourcePath": "${BASE}/A.scala",
"startLine": 21,
"startLine": 22,
"startColumn": 4,
"endLine": 21,
"endLine": 22,
"endColumn": 14
}
}, {
"message": "[UnmooredDocComment] unmoored doc comment for `Enumerator.Generator`",
"position": {
"line": 23,
"line": 24,
"lineContent": " /** sss */",
"sourcePath": "${BASE}/A.scala",
"startLine": 23,
"startLine": 24,
"startColumn": 6,
"endLine": 23,
"endLine": 24,
"endColumn": 16
}
}]
2 changes: 1 addition & 1 deletion sbt-test/UnmooredDocComment/test-1/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % sys.props("scalafix.version"))
addSbtPlugin("com.github.xuwei-k" % "warning-diff-scalafix-plugin" % "0.4.2")
addSbtPlugin("com.github.xuwei-k" % "warning-diff-scalafix-plugin" % "0.4.4")

0 comments on commit 4eb8be9

Please sign in to comment.