in src/com/jetbrains/php/tools/quality/psalm/PsalmAnnotatorProxy.java [42:54]
protected void checkOptions(@NotNull List<String> options, @NotNull String workingDir, @NotNull Project project) {
Path path = Paths.get(workingDir, "psalm.xml");
if (!options.contains("-c") && !Files.exists(path)) {
PsalmGlobalInspection.notifyAboutMissingConfig(project, path.toString());
}
else {
path = Paths.get(options.get(options.indexOf("-c") + 1));
path = Path.of(updateToLocalIfRemote(path.toString(), project, PsalmQualityToolType.INSTANCE));
if (options.contains("-c") && !Files.exists(path) && FileUtil.isAncestor(project.getBasePath(), path.toString(), false)) {
PsalmGlobalInspection.notifyAboutMissingConfig(project, path.toString());
}
}
}