Skip to content

Small fixes and refactorings / improvements#75

Merged
olehermanse merged 10 commits intocfengine:mainfrom
olehermanse:refactoring2
Apr 21, 2026
Merged

Small fixes and refactorings / improvements#75
olehermanse merged 10 commits intocfengine:mainfrom
olehermanse:refactoring2

Conversation

@olehermanse
Copy link
Copy Markdown
Member

  • Fixed help text for lint files argument saying "format" instead of "lint"
  • Fixed stale 'cfbs' command name in help strings to 'cfengine dev'
  • Fixed typo: 'flamgraph' -> 'flamegraph' in profile output message
  • Fixed typo in PolicyFile docstring: 'but' -> 'bit'
  • Fixed _parse_policy_file docstring: missing word and wrong class name casing
  • Fixed typo in comment: 'flattern' -> 'flatten'
  • Removed trailing comma in docstring
  • Simplified expect_repo logic using exceptions
  • lint.py: Extracted constants / magic strings into named constants / variables
  • Refactored and simplified code for running black and prettier

olehermanse and others added 7 commits April 21, 2026 13:24
…int"

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
… casing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
@olehermanse olehermanse marked this pull request as ready for review April 21, 2026 12:09
olehermanse and others added 3 commits April 21, 2026 14:15
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
…ariables

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
@olehermanse olehermanse merged commit 2f3b3c4 into cfengine:main Apr 21, 2026
5 checks passed
@olehermanse olehermanse deleted the refactoring2 branch April 21, 2026 12:18
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