1
0
mirror of https://github.com/sasjs/lint.git synced 2025-12-15 11:24:36 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Allan Bowe
65772804fe Merge pull request #188 from sasjs/issue-19
fix: updating noTabs error description to: Line contains a tab charac…
2022-12-13 19:05:47 +01:00
Allan Bowe
48a6628ec5 fix: updating noTabs error description to: Line contains a tab character (09x) 2022-12-13 18:03:18 +00:00
5 changed files with 5 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ const expectedDiagnostics = [
severity: Severity.Error severity: Severity.Error
}, },
{ {
message: 'Line contains tab indentation', message: 'Line contains a tab character (09x)',
lineNumber: 7, lineNumber: 7,
startColumnNumber: 1, startColumnNumber: 1,
endColumnNumber: 2, endColumnNumber: 2,

View File

@@ -53,7 +53,7 @@ const expectedDiagnostics = [
severity: Severity.Error severity: Severity.Error
}, },
{ {
message: 'Line contains tab indentation', message: 'Line contains a tab character (09x)',
lineNumber: 7, lineNumber: 7,
startColumnNumber: 1, startColumnNumber: 1,
endColumnNumber: 2, endColumnNumber: 2,

View File

@@ -51,7 +51,7 @@ const expectedDiagnostics = [
severity: Severity.Error severity: Severity.Error
}, },
{ {
message: 'Line contains tab indentation', message: 'Line contains a tab character (09x)',
lineNumber: 7, lineNumber: 7,
startColumnNumber: 1, startColumnNumber: 1,
endColumnNumber: 2, endColumnNumber: 2,

View File

@@ -11,7 +11,7 @@ describe('noTabs', () => {
const line = "\t%put 'hello';" const line = "\t%put 'hello';"
expect(noTabs.test(line, 1)).toEqual([ expect(noTabs.test(line, 1)).toEqual([
{ {
message: 'Line contains tab indentation', message: 'Line contains a tab character (09x)',
lineNumber: 1, lineNumber: 1,
startColumnNumber: 1, startColumnNumber: 1,
endColumnNumber: 2, endColumnNumber: 2,

View File

@@ -7,7 +7,7 @@ import { getIndicesOf } from '../../utils'
const name = 'noTabs' const name = 'noTabs'
const alias = 'noTabIndentation' const alias = 'noTabIndentation'
const description = 'Disallow indenting with tabs.' 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 test = (value: string, lineNumber: number, config?: LintConfig) => {
const severity = const severity =