Skip to content

Commit

Permalink
Merge pull request #188 from sasjs/issue-19
Browse files Browse the repository at this point in the history
fix: updating noTabs error description to: Line contains a tab charac…
  • Loading branch information
allanbowe authored Dec 13, 2022
2 parents 4dd25bb + 48a6628 commit 6577280
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lint/lintFile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const expectedDiagnostics = [
severity: Severity.Error
},
{
message: 'Line contains tab indentation',
message: 'Line contains a tab character (09x)',
lineNumber: 7,
startColumnNumber: 1,
endColumnNumber: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/lint/lintFolder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const expectedDiagnostics = [
severity: Severity.Error
},
{
message: 'Line contains tab indentation',
message: 'Line contains a tab character (09x)',
lineNumber: 7,
startColumnNumber: 1,
endColumnNumber: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/lint/lintProject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const expectedDiagnostics = [
severity: Severity.Error
},
{
message: 'Line contains tab indentation',
message: 'Line contains a tab character (09x)',
lineNumber: 7,
startColumnNumber: 1,
endColumnNumber: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/line/noTabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('noTabs', () => {
const line = "\t%put 'hello';"
expect(noTabs.test(line, 1)).toEqual([
{
message: 'Line contains tab indentation',
message: 'Line contains a tab character (09x)',
lineNumber: 1,
startColumnNumber: 1,
endColumnNumber: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/line/noTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getIndicesOf } from '../../utils'
const name = 'noTabs'
const alias = 'noTabIndentation'
const description = 'Disallow indenting with tabs.'
const message = 'Line contains tab indentation'
const message = 'Line contains a tab character (09x)'

const test = (value: string, lineNumber: number, config?: LintConfig) => {
const severity =
Expand Down

0 comments on commit 6577280

Please sign in to comment.