sasjs / lint

Linting and formatting for SAS® code

Home Page:https://sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hasMacroParentheses

allanbowe opened this issue · comments

In SAS it's possible to define a macro without parentheses. However this can cause problems if the signature of that macro is ever extended, eg:

image

We should add a check to ensure that macros are always defined with parentheses, eg:

%macro SOMENAME(

We should throw a warning if the opening parenthesis is not immediately after the macro name (sas allows spaces here, but we can be a bit more strict).

hasMacroParentheses:true (default, true)

🎉 This issue has been resolved in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀