Skip to content

cfengine format: Inserted empty lines before class guards and promise guards, and removed empty comments#43

Open
olehermanse wants to merge 6 commits intocfengine:mainfrom
olehermanse:nick
Open

cfengine format: Inserted empty lines before class guards and promise guards, and removed empty comments#43
olehermanse wants to merge 6 commits intocfengine:mainfrom
olehermanse:nick

Conversation

@olehermanse
Copy link
Copy Markdown
Member

@olehermanse olehermanse commented Apr 2, 2026

The formatter now:

  • Removes empty leading / trailing comments.
  • Inserts empty lines before each class guard except the first one.
  • Inserts empty lines before each promise guard except the first one.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
@olehermanse olehermanse changed the title nick cfengine format: Inserted empty lines before class guards and promise guards, and removed empty comments Apr 2, 2026
olehermanse and others added 5 commits April 2, 2026 04:44
…ability

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
We want to insert newlines before promise types (promise guards).
So we need a test for this. Will fix the implementation in a
subsequent commit.

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
We want to ensure empty newlines are added before each class guard
(except the first one in each bundle section).

Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
The formatter now:

- Removes empty leading / trailing comments.
- Inserts empty lines before each class guard except the first one.
- Inserts empty lines before each promise guard except the first one.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant