protected boolean applyRulesetFromRoot()

in src/com/jetbrains/php/tools/quality/psalm/PsalmComposerConfig.java [91:102]


  protected boolean applyRulesetFromRoot(@NotNull Project project) {
    VirtualFile customRulesetFile = detectCustomRulesetFile(project.getBaseDir(), PSALM_XML);
    if(customRulesetFile == null){
      customRulesetFile = detectCustomRulesetFile(project.getBaseDir(), PSALM_XML + ".dist");
    }

    if (customRulesetFile != null) {
      final String path = customRulesetFile.getPath();
      return modifyRulesetPsalmInspectionSetting(project, tool -> applyRuleset(project, path));
    }
    return false;
  }