Skip to content

Instantly share code, notes, and snippets.

@nitay
Created May 17, 2016 19:46
Show Gist options
  • Save nitay/28ee7b4d1d70888ba61fa57953eae30d to your computer and use it in GitHub Desktop.
Save nitay/28ee7b4d1d70888ba61fa57953eae30d to your computer and use it in GitHub Desktop.
# This turns e.g. 2.10.6 into 2_10, which is the format required for scalastyle
scala_major = Versions.get('scala')
scala_major = scala_major[0:scala_major.rfind('.')].replace('.', '_')
target(name='scalastyle_' + scala_major,
dependencies=[
'3rdparty/org/scalastyle:scalastyle',
'style/src/main/scala/co/actioniq/style' # Add our style checks
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment