Skip to content
protobuf linter plugin
Scala
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
project
protoc-lint/src/main/scala/protoc_lint
test/lint/basic
.scalafmt.conf
.travis.yml
LICENSE.txt
README.md
build.sbt
version.sbt

README.md

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.4"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.21")

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.4"
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.21")

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
)
You can’t perform that action at this time.