Urscal

The Urscal badge, lettered “Scribes of Ur · Match · Rewrite” round its band
Files
.rsc
Formats as
Ur
Lints
Every rule that reads its code
In ur.toml
[format.urscal]

Formatted

Discounts.rsc, as written
module cart::Discounts
// Whether a cart's codes discount it: a code the store knows, on a cart holding more than one item.
bool discounted(Tree cart) = any(c <- codes(cart), contains(["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"], unparse(c))) when size(items(cart)) > 1;
default bool discounted(Tree _) = false;   
ur format --style ur Discounts.rsc
module cart::Discounts
// Whether a cart's codes discount it: a code the store knows, on a cart holding
// more than one item.
bool discounted(Tree cart) = any(c <- codes(cart),
  contains(["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"], unparse(c)))
  when size(items(cart)) > 1;
default bool discounted(Tree _) = false;

Try it in the playground →

Versions

Ur reads Urscal as the profiles below name it. Name the versions a project targets in target; without it, Ur reads urscal-1.

ProfileDialect
urscal-1Ur