Skip to content

Refactored linting code i2#45

Draft
olehermanse wants to merge 13 commits intocfengine:mainfrom
olehermanse:rebase
Draft

Refactored linting code i2#45
olehermanse wants to merge 13 commits intocfengine:mainfrom
olehermanse:rebase

Conversation

@olehermanse
Copy link
Copy Markdown
Member

@olehermanse olehermanse commented Apr 3, 2026

Builds on: #43

olehermanse and others added 6 commits April 1, 2026 21:13
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
…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>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@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