SAP / ui5-linter

A static code analysis tool for UI5
Apache License 2.0
40 stars 0 forks source link

fix: Disable TS-compiler checks for JavaScript resources #179

Closed RandomByte closed 1 week ago

RandomByte commented 1 week ago

Disable error reporting for JavaScript resources. We don't retrieve the reported errors anyways. This change significantly improves the speed of the AMD to ESM transpiler as well as the type checker.

For the transpiler, setting this flag only takes effect since TypeScript v5.5.2 (which we are using now).

Measurements

Based on https://github.com/SAP/ui5-linter/blob/main/docs/PERFORMANCE.md#large-library-openui5-sapm

ui5-linter Ref Command Mean [s] Min [s] Max [s] Relative
b81d416 (main) ui5lint 37.806 ± 0.828 37.120 39.611 Baseline
3fba8f6 (this PR) ui5lint 32.798 ± 0.957 31.587 34.433 -13%