Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Release-Candidate <[email protected]>
  • Loading branch information
Release-Candidate committed Jul 16, 2023
1 parent 3fb123b commit 2056ec7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export const cfgDefaultDunePath = duneCmd;

/**
* Return the configuration value for `testDirectories`.
*
* @param config The configuration object to use.
* @returns The configuration value for `testDirectories`.
*/
Expand All @@ -182,7 +181,6 @@ export function getCfgTestDirs(config: vscode.WorkspaceConfiguration) {

/**
* Return the configuration value for `dunePath`.
*
* @param config The configuration object to use.
* @returns The configuration value for `dunePath`.
*/
Expand Down
9 changes: 6 additions & 3 deletions src/list_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ async function setOpamEnv(env: h.Env, root: vscode.WorkspaceFolder) {
* the test runs.
* @param data.workspaceItem The parent node of the workspace's test tree in the
* Test Explorer.
* @returns The list of `TestItems` that have been deleted from the Test
* Explorer tree.
*/
async function addNormalTests(
env: h.Env,
Expand All @@ -141,7 +143,7 @@ async function addNormalTests(
token: vscode.CancellationToken | undefined;
workspaceItem: vscode.TestItem;
}
) {
): Promise<vscode.TestItem[]> {
const testDirs = await io.filterExistingDirs(
data.root,
c.getCfgTestDirs(env.config)
Expand Down Expand Up @@ -175,7 +177,8 @@ async function addNormalTests(
* @param data.token The `CancellationToken`. Whether the user wants to cancel
* the test runs.
* @param data.workspaceItem The parent of the test tree in the Test Explorer
* view. @returns The list of `TestItems` that have been deleted from the Test
* view.
* @returns The list of `TestItems` that have been deleted from the Test
* Explorer tree.
*/
async function addInlineTests(
Expand All @@ -185,7 +188,7 @@ async function addInlineTests(
token: vscode.CancellationToken | undefined;
workspaceItem: vscode.TestItem;
}
) {
): Promise<vscode.TestItem[]> {
const inlineRunnerPaths = await io.findFilesRelative(
data.root,
c.runnerExeGlob
Expand Down
1 change: 0 additions & 1 deletion src/parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ export function getSourceRange(

/**
* Return the first location of `s` in `text`, as `Range`.
*
* @param r The regex to match.
* @param text The text to search the string in.
* @returns The first position of `r` in `text`.
Expand Down
4 changes: 3 additions & 1 deletion src/run_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ function setTestsStarted(
* @param token The `CancellationToken`. Whether the user wants to cancel the
* test runs.
* @param request The run request containing the list of tests to run.
* @returns The list of `TestItems` that have been deleted from the Test
* Explorer tree.
*/
async function checkForNewTests(
env: h.Env,
token: vscode.CancellationToken,
request: vscode.TestRunRequest
) {
): Promise<vscode.TestItem[]> {
const workspaces: vscode.WorkspaceFolder[] = [];
if (request.include) {
workspaces.push(...h.testItemsToWorkspaces(request.include));
Expand Down

0 comments on commit 2056ec7

Please sign in to comment.