Skip to content

Commit eb9ad1a

Browse files
committed
⚒ remove test name validation
1 parent b436246 commit eb9ad1a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/commands/parse-tree.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ const treeFilesCodeActionProvider = vscode.languages.registerCodeActionsProvider
1010

1111
document.getText().split('\n').forEach((lineText, lineNumber) => {
1212
lineText = lineText.trim();
13-
if (lineNumber == 0 && !lineText.endsWith('.t.sol')) {
14-
const diagnostic = new vscode.Diagnostic(
15-
new vscode.Range(0, 0, 0, lineText.length),
16-
`Should be a valid test name (ending with .t.sol)`,
17-
vscode.DiagnosticSeverity.Error
18-
);
19-
20-
diagnostics.push(diagnostic);
21-
}
2213
if (/^(||)/.test(lineText)) {
2314
const allowedPrefixes = ['it', 'when', 'given'];
2415
lineText = lineText.replace(/^[^a-zA-Z0-9]+/, '');

0 commit comments

Comments
 (0)