Skip to content

Commit

Permalink
fix(test): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoshihou514 committed May 29, 2024
1 parent 1b52e15 commit ebced02
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions test/linter/ruff_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
{
Expand All @@ -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',
},
{
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/linter/selene_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
18 changes: 9 additions & 9 deletions test/linter/sqlfluff_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit ebced02

Please sign in to comment.