protoc-lint
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.5.0"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.0")
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.5.0"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.0")
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
)