integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
80 stars 9 forks source link

Add option to analyze all VCS changed files #3

Open fourls opened 10 months ago

fourls commented 10 months ago

Prerequisites

Engine area

Delphi IDE integration

Improvement description

A common use case for DelphiLint is to scan changed files before committing them to source control, to ensure that any Sonar issues aren't inadvertently committed. To facilitate this, DelphiLint should add an option to "Analyze VCS Changed Files" in addition to the current "Analyze Active File" and "Analyze All Open Files".

This is a feature SonarLint already has, see IntelliJ:

image

Rationale

It can be annoying to open and scan all changed files manually, and it has been proven convenient by its inclusion in SonarLint already.