sasjs / lint

Linting and formatting for SAS® code

Home Page:https://sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macroNameinMend option incorrectly adds macro system option to the %mend statement

rafgag opened this issue · comments

If SAS macro name contains any macro system options (e.g. /minoperator), then these options are added to the %mend statement, when macroNameinMend is set to 'true' in the .sasjslint file and 'Format Document' option (in the right-click menu) is selected.

Example:

image

Result: A warning message in the SAS log during the execution.

image

Indeed - the end of the %macro statement can contain a set of options, delimted by a /. There are examples at the bottom of the documentation. We will fix.

%mend syntax remains the same,
%macro syntax needs to be updated for parameter-list and available options:

Syntax: %MACRO macro-name <(parameter-list)> </ options>;

🎉 This issue has been resolved in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀