protoc-lint

Build Status scaladoc

protobuf linter for https://github.com/thesamet/sbt-protoc

https://developers.google.com/protocol-buffers/docs/style

sbt settings

project/plugins.sbt

libraryDependencies += "io.github.scalapb-json" %% "protoc-lint" % "0.2.1"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.18")

or

// shaded version. you can avoid dependency conflict. only sbt Scala 2.12, sbt 1.x
libraryDependencies += "io.github.scalapb-json" %% "protoc-lint-shaded" % "0.2.1"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.18")

build.sbt

PB.targets in Compile := Seq(
  protoc_lint.ProtocLint() -> (sourceManaged in Compile).value,
  // and add another generator settings (e.g. java, scalapb)
  // see https://github.com/thesamet/sbt-protoc
)