Skip to content

Improve indentation test coverage#137

Merged
bbatsov merged 1 commit intomainfrom
improve-indentation-test-coverage
Mar 24, 2026
Merged

Improve indentation test coverage#137
bbatsov merged 1 commit intomainfrom
improve-indentation-test-coverage

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Mar 24, 2026

Add per-form indentation tests for all rule categories, covering nearly every form in the default semantic indent rules that previously had no dedicated test.

Adds tests for 50+ forms across block-0, block-1, block-2, inner-0, inner-1, inner-2, and threading categories.

Add dedicated tests for forms in each indentation category that
were previously untested:

- block-0: comment, cond, delay, go, thread, finally, with-out-str,
  alt!, alt!!
- block-1: let, if, when, when-not, if-let, when-let, if-some,
  when-some, when-first, binding, loop, for, doseq, dotimes, doto,
  while, with-open, with-redefs, locking, ns, if-not, cond->>,
  go-loop, with-local-vars, match
- block-2: condp, catch, proxy, deftype
- inner-0: defn, defn-, def, defonce, defmacro, defmulti, deftest,
  use-fixtures, fdef
- inner-1: defprotocol, definterface, extend-type, extend-protocol,
  defrecord, deftype, reify, proxy (method nesting)
- inner-2: letfn
- threading: ->, ->>
@bbatsov bbatsov merged commit 6ecd3b5 into main Mar 24, 2026
10 checks passed
@bbatsov bbatsov deleted the improve-indentation-test-coverage branch March 25, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant