greglook / cljstyle

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

Add config of list indent size #21

Closed egs33 closed 4 years ago

egs33 commented 4 years ago

This PR is related to #8.

Add config of list indent size. If this config is set to 1. Codes is formatted as below.

(foo
 bar
 baz)
codecov-io commented 4 years ago

Codecov Report

Merging #21 into master will increase coverage by 0.02%. The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
+ Coverage   73.97%   73.99%   +0.02%     
==========================================
  Files          10       10              
  Lines        1145     1146       +1     
  Branches       27       27              
==========================================
+ Hits          847      848       +1     
  Misses        271      271              
  Partials       27       27
Impacted Files Coverage Δ
core/src/cljstyle/config.clj 98.09% <100%> (+0.01%) :arrow_up:
core/src/cljstyle/format/core.clj 97.05% <100%> (ø) :arrow_up:
core/src/cljstyle/format/indent.clj 94.07% <88.88%> (ø) :arrow_up:

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 6b14b69...8a71ff2. Read the comment docs.

egs33 commented 4 years ago

clojure-style-guide suggested one space indent.

This PR enable its style.

egs33 commented 4 years ago

Thanks for reviewing. I fixed them. Please re-review.