Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions linters/biome/test_data/biome_v2.5.3_basic_check.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter biome test basic_check 1`] = `
{
"issues": [
{
"code": "lint/correctness/noUnusedVariables",
"column": "7",
"file": "test_data/basic_check.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "6",
"linter": "biome",
"message": "This variable foo is unused.",
"targetType": "typescript",
},
],
"lintActions": [
{
"command": "fmt",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/basic_check.in.ts",
],
"verb": "TRUNK_VERB_FMT",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/basic_check.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/basic_check.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [
{
"column": "1",
"file": "test_data/basic_check.in.ts",
"issueClass": "ISSUE_CLASS_UNFORMATTED",
"level": "LEVEL_HIGH",
"line": "1",
"linter": "biome",
"message": "Incorrect formatting, autoformat by running 'trunk fmt'",
},
],
}
`;
22 changes: 22 additions & 0 deletions linters/biome/test_data/biome_v2.5.3_basic_fmt.fmt.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing formatter biome test basic_fmt 1`] = `
"const foobar = () => {};
const barfoo = () => {};

enum Bar {
Baz,
}

const foo = (bar: Bar) => {
switch (bar) {
case Bar.Baz:
foobar();
barfoo();
break;
}
!foo ? null : 1;
};
"
`;
7 changes: 7 additions & 0 deletions linters/biome/test_data/biome_v2.5.3_basic_json.fmt.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing formatter biome test basic_json 1`] = `
"{ "a": "foo", "b": 1, "a": true }
"
`;
40 changes: 40 additions & 0 deletions linters/biome/test_data/biome_v2.5.3_gitignore_check.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter biome test gitignore_check 1`] = `
{
"issues": [],
"lintActions": [
{
"command": "fmt",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/gitignore_check.in.ts",
],
"verb": "TRUNK_VERB_FMT",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/gitignore_check.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/gitignore_check.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
52 changes: 52 additions & 0 deletions linters/biome/test_data/biome_v2.5.3_warning_check.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter biome test warning_check 1`] = `
{
"issues": [
{
"code": "lint/style/noNonNullAssertion",
"column": "16",
"file": "test_data/warning_check.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "5",
"linter": "biome",
"message": "Forbidden non-null assertion.",
"targetType": "typescript",
},
],
"lintActions": [
{
"command": "fmt",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/warning_check.in.ts",
],
"verb": "TRUNK_VERB_FMT",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/warning_check.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "typescript",
"linter": "biome",
"paths": [
"test_data/warning_check.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
88 changes: 88 additions & 0 deletions linters/cspell/test_data/cspell_v10.0.1_basic.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter cspell test basic 1`] = `
{
"issues": [],
"lintActions": [
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_md.in.md",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_py.in.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_ts.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/empty.in.txt",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_md.in.md",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_py.in.py",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_ts.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/empty.in.txt",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
88 changes: 88 additions & 0 deletions linters/cspell/test_data/cspell_v10.0.1_dictionary.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter cspell test dictionary 1`] = `
{
"issues": [],
"lintActions": [
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_md.in.md",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_py.in.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_ts.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/empty.in.txt",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_md.in.md",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_py.in.py",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/basic_ts.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "cspell",
"paths": [
"test_data/empty.in.txt",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
Loading
Loading