Skip to content

RuleScript v1.10.0-rc1.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 07 Jul 06:30

RuleScript v1.10.0-rc1.5

RuleScript v1.10.0-rc1.5 fixes formatter output for HostTrigger function attributes.

HostTrigger Attribute Formatting

RuleScriptFormatter.Format now keeps @HostTrigger attached to the @ symbol and places the following function declaration on its own line.

Input:

@HostTrigger("TriggerTest") function Test():
Print("Something triggered");
end

Formatted output:

@HostTrigger("TriggerTest")
function Test():
    Print("Something triggered");
end

The formatter also normalizes spaced attribute input:

@ HostTrigger("TriggerTest") export function Test():
Print("Something triggered");
endfunction

to:

@HostTrigger("TriggerTest")
export function Test():
    Print("Something triggered");
endfunction

Compatibility Notes

  • HostTrigger syntax is unchanged.
  • Function and exported function declarations remain unchanged.
  • The formatter change only affects attribute spacing and declaration line breaks.

Validation

This release candidate is covered by tests for:

  • formatting @HostTrigger(...) function onto separate lines
  • preserving @HostTrigger without a space after @
  • formatting @HostTrigger(...) export function without splitting export function
  • full regression coverage