diff --git a/test/linter/ruff_spec.lua b/test/linter/ruff_spec.lua index 0028eca..556f249 100644 --- a/test/linter/ruff_spec.lua +++ b/test/linter/ruff_spec.lua @@ -20,9 +20,9 @@ describe('ruff', function() end_col = 7, end_lnum = 0, lnum = 0, - message = '`os` imported but unused [F401]', + message = '`os` imported but unused[F401]', namespace = 1, - severity = 1, + severity = 4, source = 'ruff', }, { @@ -31,9 +31,9 @@ describe('ruff', function() end_col = 2, end_lnum = 4, lnum = 4, - message = 'Local variable `a` is assigned to but never used [F841]', + message = 'Local variable `a` is assigned to but never used[F841]', namespace = 1, - severity = 1, + severity = 4, source = 'ruff', }, { @@ -42,9 +42,9 @@ describe('ruff', function() end_col = 5, end_lnum = 4, lnum = 4, - message = 'Local variable `b` is assigned to but never used [F841]', + message = 'Local variable `b` is assigned to but never used[F841]', namespace = 1, - severity = 1, + severity = 4, source = 'ruff', }, }, diagnostics) diff --git a/test/linter/selene_spec.lua b/test/linter/selene_spec.lua index 345bb80..9a3a818 100644 --- a/test/linter/selene_spec.lua +++ b/test/linter/selene_spec.lua @@ -21,7 +21,7 @@ describe('selene', function() end_col = 0, end_lnum = 4, lnum = 4, - message = '`U` is not defined [undefined_variable]', + message = '`U` is not defined[undefined_variable]', namespace = ns, severity = 1, source = 'selene', diff --git a/test/linter/sqlfluff_spec.lua b/test/linter/sqlfluff_spec.lua index e72591c..65dcbb7 100644 --- a/test/linter/sqlfluff_spec.lua +++ b/test/linter/sqlfluff_spec.lua @@ -17,7 +17,7 @@ describe('sqlfluff', function() end_col = 0, end_lnum = 0, lnum = 0, - message = 'LT09: Select targets should be on a new line unless there is only one select target. [nil]', + message = 'LT09: Select targets should be on a new line unless there is only one select target.', namespace = 1, severity = 3, source = 'sqlfluff', @@ -28,7 +28,7 @@ describe('sqlfluff', function() end_col = 0, end_lnum = 0, lnum = 0, - message = 'ST06: Select wildcards then simple targets before calculations and aggregates. [nil]', + message = 'ST06: Select wildcards then simple targets before calculations and aggregates.', namespace = 1, severity = 3, source = 'sqlfluff', @@ -39,7 +39,7 @@ describe('sqlfluff', function() end_col = 6, end_lnum = 0, lnum = 0, - message = "LT02: Expected line break and indent of 4 spaces before 'a'. [nil]", + message = "LT02: Expected line break and indent of 4 spaces before 'a'.", namespace = 1, severity = 3, source = 'sqlfluff', @@ -50,7 +50,7 @@ describe('sqlfluff', function() end_col = 8, end_lnum = 0, lnum = 0, - message = "LT01: Expected single whitespace between naked identifier and binary operator '+'. [nil]", + message = "LT01: Expected single whitespace between naked identifier and binary operator '+'.", namespace = 1, severity = 3, source = 'sqlfluff', @@ -61,7 +61,7 @@ describe('sqlfluff', function() end_col = 9, end_lnum = 0, lnum = 0, - message = "LT01: Expected single whitespace between binary operator '+' and naked identifier. [nil]", + message = "LT01: Expected single whitespace between binary operator '+' and naked identifier.", namespace = 1, severity = 3, source = 'sqlfluff', @@ -72,7 +72,7 @@ describe('sqlfluff', function() end_col = 10, end_lnum = 0, lnum = 0, - message = "LT01: Expected only single space before 'AS' keyword. Found ' '. [nil]", + message = "LT01: Expected only single space before 'AS' keyword. Found ' '.", namespace = 1, severity = 3, source = 'sqlfluff', @@ -83,7 +83,7 @@ describe('sqlfluff', function() end_col = 0, end_lnum = 1, lnum = 1, - message = 'LT02: Expected indent of 4 spaces. [nil]', + message = 'LT02: Expected indent of 4 spaces.', namespace = 1, severity = 3, source = 'sqlfluff', @@ -94,7 +94,7 @@ describe('sqlfluff', function() end_col = 8, end_lnum = 1, lnum = 1, - message = "LT02: Expected line break and no indent before 'from'. [nil]", + message = "LT02: Expected line break and no indent before 'from'.", namespace = 1, severity = 3, source = 'sqlfluff', @@ -105,7 +105,7 @@ describe('sqlfluff', function() end_col = 9, end_lnum = 1, lnum = 1, - message = 'CP01: Keywords must be consistently upper case. [nil]', + message = 'CP01: Keywords must be consistently upper case.', namespace = 1, severity = 3, source = 'sqlfluff',