Unzip the folder and run the included install.bat script.
Done!
[!NOTE]
Using the precompiled BPLs in different minor versions from which they were compiled can cause compatibility problems in some circumstances. If you encounter issues, please build from source.
Run code --install-extension <vsix> to install the extension.
[!IMPORTANT]
For the companion to work, a DelphiLint installation of the same version must be installed.
The VS Code companion is not required for the Delphi IDE plugin to function.
Usage
To analyze a file:
Open a Delphi project in the IDE.
Open the Delphi source file you want to analyze.
Click the DelphiLint > Analyze This File menu option.
It's as easy as that! The DelphiLint window will then pop up, showing the current state of analysis and any issues
that are raised. Please note that when the file has a lot of imports the analysis could take thirty seconds or so.
To analyze all files that are open in the IDE, use DelphiLint > Analyze All Open Files.
To clear a file of its analysis history, use DelphiLint > Clear Active File.
To apply quick fixes for an issue, right click the issue range in the editor window or the issue item in the
DelphiLint window, then select the quick fix. (Note that not all issues may have quick fixes available.)
For more information:
See Configuration for details on project configuration settings.
See the FAQ for answers to common questions and problems.
PowerShell execution policy set to Unrestricted (see MSDN)
To build DelphiLint, use scripts/build.ps1:
scripts/build.ps1 280 to build for Delphi 11 Alexandria
scripts/build.ps1 290 to build for Delphi 12 Athens
This creates a target/DelphiLint-<version>- folder containing all built artifacts.
[!NOTE]
build.ps1 looks for a Delphi installation in the default location for the given version.
If your installation is elsewhere, supply the location as part of the version parameter, e.g.
scripts/build.ps1 280=/my/custom/location.
Contributing
DelphiLint is open for contributions - please read the contributing guide for more information.