Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new rules noNestedMacros & hasMacroParentheses #22

Merged
merged 4 commits into from
Apr 6, 2021
Merged

Conversation

saadjutt01
Copy link
Member

@saadjutt01 saadjutt01 commented Apr 6, 2021

Issue

Closes #16
Closes #20

Intent

Add new rules hasMacroParentheses and noNestedMacros

Implementation

Added hasMacroParentheses defaults to true
Added noNestedMacros defaults to true
Moved followings to utils:

  • trimComments
  • getLineNumber
  • getColNumber

Added tests
Updated .sasjslint
Updated LintConfig.spec.ts

Checks

  • Code is formatted correctly (npm run lint:fix).
  • Any new functionality has been unit tested.
  • All unit tests are passing (npm test).
  • All CI checks are green.
  • JSDoc comments have been added or updated.
  • Reviewer is assigned.

@saadjutt01 saadjutt01 marked this pull request as ready for review April 6, 2021 20:07
@allanbowe allanbowe merged commit a9a3a67 into main Apr 6, 2021
@allanbowe allanbowe deleted the issue-16 branch April 6, 2021 20:18
@ghost
Copy link

ghost commented Apr 6, 2021

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Apr 6, 2021
}

/**
* Lint rule that checks for the presence of macro name in %mend statement.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not the right description for this rule.

}

/**
* Lint rule that checks for the presence of macro name in %mend statement.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not the correct description for this rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hasMacroParentheses noNestedMacros
3 participants