diff --git a/ets2panda/linter/build_linter.py b/ets2panda/linter/build_linter.py index cfc970134ce210b74707b51b6b07175bf34cb7c9..51c6b249dc2e8be47dc0371db96c9a09a7fba8c9 100755 --- a/ets2panda/linter/build_linter.py +++ b/ets2panda/linter/build_linter.py @@ -265,14 +265,14 @@ def parse_args(): def main(): options = parse_args() - backup_package_files(options.source_path) - install_homecheck(options, 5, 3) + #backup_package_files(options.source_path) + #install_homecheck(options, 5, 3) install_typescript(options) node_modules_path = os.path.join(options.source_path, "node_modules") extract(options.typescript, node_modules_path, "typescript") build(options) copy_output(options) - clean_env(options.source_path) + #clean_env(options.source_path) if __name__ == '__main__': diff --git a/ets2panda/linter/src/cli/LinterCLI.ts b/ets2panda/linter/src/cli/LinterCLI.ts index b5e981722115d5e71285605def30368aedf828c3..c27c186e9f34531b1e0f64c63da445a2aeba7433 100644 --- a/ets2panda/linter/src/cli/LinterCLI.ts +++ b/ets2panda/linter/src/cli/LinterCLI.ts @@ -25,8 +25,6 @@ import { parseCommandLine } from './CommandLineParser'; import { compileLintOptions, getEtsLoaderPath } from '../lib/ts-compiler/Compiler'; import { logStatistics } from '../lib/statistics/StatisticsLogger'; import { arkts2Rules } from '../lib/utils/consts/ArkTS2Rules'; -import { MigrationTool } from 'homecheck'; -import { getHomeCheckConfigInfo, transferIssues2ProblemInfo } from '../lib/HomeCheck'; export function run(): void { const commandLineArgs = process.argv.slice(2); @@ -56,20 +54,6 @@ async function runIdeInteractiveMode(cmdOptions: CommandLineOptions): Promise(); const mergedProblems = new Map(); - if (cmdOptions.homecheck === true) { - const { ruleConfigInfo, projectConfigInfo } = getHomeCheckConfigInfo(cmdOptions); - const migrationTool = new MigrationTool(ruleConfigInfo, projectConfigInfo); - await migrationTool.buildCheckEntry(); - const result = await migrationTool.start(); - - homeCheckResult = transferIssues2ProblemInfo(result); - for (const [filePath, problems] of homeCheckResult) { - if (!mergedProblems.has(filePath)) { - mergedProblems.set(filePath, []); - } - mergedProblems.get(filePath)!.push(...problems); - } - } const result = lint(compileOptions, getEtsLoaderPath(compileOptions), homeCheckResult); for (const [filePath, problems] of result.problemsInfos) {