greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Create pre-commit hook configuration #58

Closed robhanlon22 closed 3 years ago

robhanlon22 commented 3 years ago

pre-commit supports Docker-based hooks. This PR creates a Dockerfile that just grabs the current release of cljstyle and installs it in a Docker image to be run by the hook. This is much simpler and more performant than building cljstyle from scratch.

An alternative to this configuration would be to have the Dockerfile actually build cljstyle, push the resulting image, and then use the docker_image pre-commit hook type.

Resolves #57.

codecov-commenter commented 3 years ago

Codecov Report

Merging #58 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #58   +/-   ##
=======================================
  Coverage   92.11%   92.11%           
=======================================
  Files          13       13           
  Lines        1547     1547           
  Branches       45       45           
=======================================
  Hits         1425     1425           
  Misses         77       77           
  Partials       45       45           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f5eecef...b83688c. Read the comment docs.