Sign inSign up

v1v1v/codenarc

By v1v1v

•Updated over 7 years ago

CodeNarc analyzes Groovy code for defects, bad practices, inconsistencies, style issues and more.

Image
0

9.8K

v1v1v/codenarc repository overview

⁠docker-codenarc

CodeNarc analyzes Groovy code for defects, bad practices, inconsistencies, style issues and more.

⁠Usage

⁠As an application

docker run --rm -v `pwd`:/ws -u `id -u`:`id -g` v1v1v/codenarc

By default this docker image will run codenarc checks on /ws directory, mount your current folder in that location to use the image as an application.

Default user is groovy, so is recommended you run the image with your own user to avoid permission issues.

⁠As a container

docker run --rm -v `pwd`:/ws -u `id -u`:`id -g` --entrypoint=/bin/bash -i -t v1v1v/codenarc

Login into the container overriding the entry point. you can execute codenarc inside as a regular program.

⁠Specifying ruleset

As described in the documentation⁠ you can specify your own ruleset file relative to your workspace in the command using -rulesetfile flag.

docker run --rm -v `pwd`:/ws -u `id -u`:`id -g` v1v1v/codenarc -rulesetfiles=file:all.groovy

⁠Reference

⁠Credits

Tag summary

Content type

Image

Digest

Size

218.5 MB

Last updated

over 7 years ago

docker pull v1v1v/codenarc