Skip to content

cfengine lint: Added more specific error messages and hints about where something is defined#101

Open
olehermanse wants to merge 17 commits intocfengine:mainfrom
olehermanse:linting-next
Open

cfengine lint: Added more specific error messages and hints about where something is defined#101
olehermanse wants to merge 17 commits intocfengine:mainfrom
olehermanse:linting-next

Conversation

@olehermanse
Copy link
Copy Markdown
Member

  • cfengine lint: Ensured we look for bodies when resolving calls in copy_from and action
  • cfengine lint: Stop looking at functions when attr name implies it's not a function
  • Added detailed error messages for unknown body / bundle / function
  • lint.py: Fixed internal issue causing definitions to be discovered and saved twice
  • cfengine lint: Added hints about where something is defined
  • cfengine lint: Always look for built in functions inside nested calls
  • Started using exceptions for error handling in linting code
  • lint.py: Moved half_promise linting into separate function
  • lint.py: Moved call linting into separate function
  • lint.py: Moved attribute_name linting to separate function
  • lint.py: Moved calling_identifier linting to separate function
  • lint.py: Moved promise linting to separate function
  • lint.py: Moved linting of block names to separate function
  • lint.py: Moved block type linting to separate function
  • lint.py: Moved linting of promise guard to separate function
  • lint.py: Reorganized _lint_node and added comments
  • Added docstrings

olehermanse and others added 17 commits May 1, 2026 01:57
…y_from and action

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
…not a function

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
…d saved twice

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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>
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>
Co-authored-by: Claude Opus 4.7 (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 May 1, 2026 02:29
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