Skip to content

Commit 7c70fda

Browse files
committed
Prefer source files from debug source path over search path
1 parent 278e7e7 commit 7c70fda

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Prefer `Debugger_DebugSourcePath` over `DCC_UnitSearchPath` in the analysis search path.
13+
1014
## [1.12.2] - 2025-01-06
1115

1216
### Fixed

sonar-delphi-plugin/src/main/java/au/com/integradev/delphi/DelphiSensor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ private void executeOnFiles(SensorContext sensorContext) {
100100
List<Path> sourceFiles = inputFilesToPaths(inputFiles);
101101
List<Path> referencedFiles = delphiProjectHelper.getReferencedFiles();
102102
List<Path> searchPathDirectories = new ArrayList<>();
103-
searchPathDirectories.addAll(delphiProjectHelper.getSearchDirectories());
104103
searchPathDirectories.addAll(delphiProjectHelper.getDebugSourceDirectories());
104+
searchPathDirectories.addAll(delphiProjectHelper.getSearchDirectories());
105105
SearchPath searchPath = SearchPath.create(searchPathDirectories);
106106

107107
SymbolTable symbolTable =

0 commit comments

Comments
 (0)