posit-dev / posit-dev/air

Aligned formatting

Open
#114 14 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
446
Forks
32
Avg merge
16h 48m
Merged PRs (30d)
1

Description

Related to #113. A special comment like fmt: align-equal would apply to the next expression (which should be a function call) and instruct Air to align arguments on =:

# fmt: align-equal
list(
    foo = 1,
      x = 2,
          3
)

This would help readability of calls that are used for certain types of data entry.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the related issue #113 and locating Air's handling of special comments and function-call argument formatting. The change is complete when fmt: align-equal applies to the next function call and produces the alignment shown in the issue without affecting other calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.