-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
src/lint/lintFile.spec.ts
Outdated
@@ -8,7 +8,7 @@ describe('lintFile', () => { | |||
path.join(__dirname, '..', 'Example File.sas') | |||
) | |||
|
|||
expect(results.length).toEqual(8) | |||
expect(results.length).toEqual(9) |
There was a problem hiding this comment.
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
src/lint/lintFolder.spec.ts
Outdated
@@ -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) |
There was a problem hiding this comment.
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
src/lint/lintProject.spec.ts
Outdated
@@ -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) |
There was a problem hiding this comment.
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
src/utils/getLintConfig.spec.ts
Outdated
@@ -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) |
There was a problem hiding this comment.
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
We should probably replace assertions based on numbers with assertions based on |
🎉 This PR is included in version 1.6.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Issue
Closes #26
Intent
Lint should has default value for
hasMacroNameInMend
to betrue
Implementation
getLintConfig.ts
and.sasjslint
to have true value forhasMacroNameInMend
Checks
npm run lint:fix
).npm test
).