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

TCE-1032: Update to version 0.10.0 #37

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2.1

orbs:
codacy: codacy/base@10.2.2
codacy_plugins_test: codacy/plugins-test@1.1.1
codacy: codacy/base@12.1.4
codacy_plugins_test: codacy/plugins-test@2.0.11

workflows:
version: 2
Expand All @@ -13,9 +13,9 @@ workflows:
- codacy/sbt:
name: publish_docker_local
cmd: |
sbt "scalafmt::test;
test:scalafmt::test;
sbt:scalafmt::test;
sbt "scalafmtCheckAll;
test:scalafmt;
scalafmt;
universal:stage;
graalvm-native-image:packageBin"
docker build -t $CIRCLE_PROJECT_REPONAME:latest .
Expand Down
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ organization := "com.codacy"

name := "codacy-shellcheck"

scalaVersion := "2.13.3"
scalaVersion := "2.13.16"

libraryDependencies += "com.codacy" %% "codacy-engine-scala-seed" % "4.1.1"
libraryDependencies ++= Seq(
"com.codacy" %% "codacy-engine-scala-seed" % "6.1.3",
"com.github.pathikrit" %% "better-files" % "3.9.1"
)

enablePlugins(GraalVMNativeImagePlugin)

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.13
sbt.version=1.9.0
5 changes: 3 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "20.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.2.2")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.1")
addSbtPlugin("com.github.pathikrit" % "better-files" % "3.9.1")
6 changes: 2 additions & 4 deletions src/main/scala/codacy/shellcheck/ShellCheck.scala
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
package codacy.shellcheck

import java.io.{File => JFile}

import better.files._
import com.codacy.plugins.api._
import com.codacy.plugins.api.results.{Pattern, Result, Tool}
import com.codacy.tools.scala.seed.utils._
import com.codacy.tools.scala.seed.utils.ToolHelper._
import play.api.libs.json.Json
import play.api.libs.json.{Json, OFormat}

import scala.util.Try

case class ShellCheckResult(file: String, line: Int, column: Int, level: String, code: Int, message: String)

object ShellCheckResult {
implicit val shellCheckResult = Json.format[ShellCheckResult]
implicit val shellCheckResult: OFormat[ShellCheckResult] = Json.format[ShellCheckResult]
}

object ShellCheck extends Tool {
Expand Down