11import * as lsp from "vscode-languageserver"
22
3- import { connection } from "@server/connection"
4- import { getDocumentSettings } from "@server/settings/settings"
5- import { FuncFile } from "@server/languages/func/psi/FuncFile"
6- import { UnusedParameterInspection } from "@server/languages/func/inspections/UnusedParameterInspection"
7- import { UnusedVariableInspection } from "@server/languages/func/inspections/UnusedVariableInspection"
8- import { UnusedImportInspection } from "@server/languages/func/inspections/UnusedImportInspection"
9- import { UnusedTypeParameterInspection } from "@server/languages/func/inspections/UnusedTypeParameterInspection"
3+ import { connection } from "@server/connection"
4+ import { getDocumentSettings } from "@server/settings/settings"
5+ import { FuncFile } from "@server/languages/func/psi/FuncFile"
6+ import { UnusedParameterInspection } from "@server/languages/func/inspections/UnusedParameterInspection"
7+ import { UnusedVariableInspection } from "@server/languages/func/inspections/UnusedVariableInspection"
8+ import { UnusedImportInspection } from "@server/languages/func/inspections/UnusedImportInspection"
9+ import { UnusedTypeParameterInspection } from "@server/languages/func/inspections/UnusedTypeParameterInspection"
10+ import { UnusedImpureInspection } from "./UnusedImpure"
1011
1112export async function runFuncInspections (
1213 uri : string ,
@@ -18,11 +19,13 @@ export async function runFuncInspections(
1819 new UnusedTypeParameterInspection ( ) ,
1920 new UnusedVariableInspection ( ) ,
2021 new UnusedImportInspection ( ) ,
22+ new UnusedImpureInspection ( ) ,
2123 ]
2224
2325 const settings = await getDocumentSettings ( uri )
2426 const diagnostics : lsp . Diagnostic [ ] = [ ]
2527
28+
2629 for ( const inspection of inspections ) {
2730 if ( settings . func . inspections . disabled . includes ( inspection . id ) ) {
2831 continue
0 commit comments