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

fix(hasMacroNameInMend): default sets to true #27

Merged
merged 4 commits into from
Apr 16, 2021
Merged

Conversation

saadjutt01
Copy link
Member

@saadjutt01 saadjutt01 commented Apr 15, 2021

Issue

Closes #26

Intent

Lint should has default value for hasMacroNameInMend to be true

Implementation

  • Updated getLintConfig.ts and .sasjslint to have true value for hasMacroNameInMend
  • Updated specs

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.
  • sasjslint-schema.json is updated with any new / changed functionality
  • JSDoc comments have been added or updated.
  • Reviewer is assigned.

@ghost ghost requested a review from YuryShkoda April 15, 2021 11:35
@@ -8,7 +8,7 @@ describe('lintFile', () => {
path.join(__dirname, '..', 'Example File.sas')
)

expect(results.length).toEqual(8)
expect(results.length).toEqual(9)
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't use the exact numbers

@@ -10,7 +10,7 @@ describe('lintFolder', () => {
const diagnostics = results.get(
path.join(__dirname, '..', 'Example File.sas')
)!
expect(diagnostics.length).toEqual(8)
expect(diagnostics.length).toEqual(9)
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't use the exact numbers

@@ -15,7 +15,7 @@ describe('lintProject', () => {
const diagnostics = results.get(
path.join(__dirname, '..', 'Example File.sas')
)!
expect(diagnostics.length).toEqual(8)
expect(diagnostics.length).toEqual(9)
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't use the exact numbers

@@ -17,7 +17,7 @@ describe('getLintConfig', () => {
const config = await getLintConfig()

expect(config).toBeInstanceOf(LintConfig)
expect(config.fileLintRules.length).toEqual(3)
expect(config.fileLintRules.length).toEqual(4)
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't use the exact numbers

@krishna-acondy
Copy link
Contributor

We should probably replace assertions based on numbers with assertions based on containEqual for arrays. I'll make that change in a subsequent PR.

@krishna-acondy krishna-acondy merged commit c2209cb into main Apr 16, 2021
@krishna-acondy krishna-acondy deleted the issue-26 branch April 16, 2021 12:24
@ghost
Copy link

ghost commented Apr 16, 2021

🎉 This PR is included in version 1.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Apr 16, 2021
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.

set hasMacroNameInMend to TRUE
3 participants