Skip to content

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

Merged
olehermanse merged 6 commits intocfengine:mainfrom
olehermanse:nick
Apr 3, 2026
Merged

cfengine format: Inserted empty lines before class guards and promise guards, and removed empty comments#43
olehermanse merged 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>
Copy link
Copy Markdown
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine! thanks!

@olehermanse olehermanse merged commit ca84699 into cfengine:main Apr 3, 2026
6 checks passed
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.

2 participants