greglook / cljstyle

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

Fix indent after comment #32

Closed egs33 closed 4 years ago

egs33 commented 4 years ago

Fix indent after comment with last element in list. This bug occurs when including multiple lists.

Bug Example:

(foo [1
      2; comment A
]
     [3
      4; comment B
      ])

This PR:

(foo [1
      2; comment A
      ]
     [3
      4; comment B
      ])
codecov-io commented 4 years ago

Codecov Report

Merging #32 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   92.64%   92.64%   +<.01%     
==========================================
  Files          13       13              
  Lines        1509     1510       +1     
  Branches       44       44              
==========================================
+ Hits         1398     1399       +1     
  Misses         67       67              
  Partials       44       44
Impacted Files Coverage Δ
core/src/cljstyle/format/indent.clj 95.48% <100%> (+0.02%) :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 3329f73...a460c8e. Read the comment docs.