1
0
mirror of https://github.com/sasjs/lint.git synced 2026-04-21 05:11:32 +00:00

Merge pull request #188 from sasjs/issue-19

fix: updating noTabs error description to: Line contains a tab charac…
This commit is contained in:
Allan Bowe
2022-12-13 19:05:47 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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 =