mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 17:34:36 +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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user