Skip to content

ENT-13880: Added error-checks for half-promises / attrs without promiser outside of macros#86

Open
SimonThalvorsen wants to merge 2 commits intocfengine:mainfrom
SimonThalvorsen:ENT-13880
Open

ENT-13880: Added error-checks for half-promises / attrs without promiser outside of macros#86
SimonThalvorsen wants to merge 2 commits intocfengine:mainfrom
SimonThalvorsen:ENT-13880

Conversation

@SimonThalvorsen
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/cfengine_cli/lint.py
Comment on lines +6 to +11
"string"
@if minimum_version(3.18)
string => $($(baz));
@else
string => $($(baz));
@endif
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please try to expand these tests a bit more, for example;

Suggested change
"string"
@if minimum_version(3.18)
string => $($(baz));
@else
string => $($(baz));
@endif
"string"
@if minimum_version(3.18)
string => $($(baz));
@else
string => $($(baz));
@endif
"string"
# comment
@if minimum_version(3.18)
# comment
# comment
string => $($(baz));
# comment
@else
# comment
string => $($(baz));
# comment
@endif

Copy link
Copy Markdown
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

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

See commments above.

bundle agent main
{
vars:
"string"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please format with cfengine format

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