protected void checkCmdOptions()

in src/com/jetbrains/php/tools/quality/psalm/PsalmGlobalInspection.java [49:62]


  protected void checkCmdOptions(@NotNull Project project) {
    final List<String> options = getCommandLineOptions(null, project);
    Path path = Paths.get(project.getBasePath(), "psalm.xml");
    if (!options.contains("-c") && !Files.exists(path)) {
      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)) {
        notifyAboutMissingConfig(project, path.toString());
      }
    }
  }