UNPKG

smells-code-analyzer

Version:

CLI tool powered by LSP and tree-sitter for finding dead and smells code from your project

27 lines (26 loc) 789 B
/// <reference types="node" /> import { Grammars } from './ts-analyzer.js'; export interface NodeTarget { type: string; refType?: string; children?: NodeTarget[]; } export interface SmellsCodeAnalyzerConfig { showPassed?: boolean; projectRootPath: string; threshold?: number; showProgress?: boolean; analyzeDirectory: string; lspExecutable: string; lspArgs: string[]; fileMatchingRegexp?: string; fileExcludeRegexps?: string[]; contentMatchingRegexp?: string; lspCapabilities?: any; referenceNodes: NodeTarget[]; lspVersion: string; lspName: string; grammar: keyof typeof Grammars; encoding: BufferEncoding; } export declare function readConfig(configPath?: string, threshold?: number): SmellsCodeAnalyzerConfig;