nedap / formatting-stack

An efficient, smart, graceful composition of Clojure formatters, linters and such.
Eclipse Public License 2.0
99 stars 2 forks source link

Augment a given project's `:acceptable-aliases-whitelist` with the aliases it already uses #205

Closed vemv closed 2 years ago

vemv commented 2 years ago

Brief

Fixes https://github.com/nedap/formatting-stack/issues/204. The tldr is:

A given project's :acceptable-aliases-whitelist is augmented with the set of aliases that are used in the project and not new (per git: they don't belong to the git status or the git branch diff)

Needs refactor-nrepl latest (see) but degrades gracefully.

QA plan

This can be further verified by inspecting the formatting-stack.defaults/default-linters object, which will have a larger :acceptable-aliases-whitelist map.

Author checklist

Reviewer checklist

vemv commented 2 years ago

Bumped refactor-nrepl again, which now has :as-alias support for clj 1.11.

vemv commented 2 years ago

Cheers ☕️☕️

vemv commented 2 years ago

Ready again!