Package com.intellij.codeInspection

Examples of com.intellij.codeInspection.InspectionProfile


      this.module = module;
    }
  }

  private boolean isInspectionToolEnabled(final String toolName, final GlobalInspectionContext context) {
    final InspectionProfile currentProfile = ((GlobalInspectionContextBase) context).getCurrentProfile();
    final Project project = context.getProject();
    return FluentIterable.from(currentProfile.getAllEnabledInspectionTools(project))
        .transform(new Function<Tools, String>() {
          @Override
          public String apply(Tools tools) {
            return tools.getShortName();
          }
View Full Code Here


    Sdk sdk = ModuleRootManager.getInstance(module).getSdk();
    if (sdk == null) return null;
    String homePath = sdk.getHomePath();
    if (homePath == null) return null;

    InspectionProfile profile = InspectionProjectProfileManager.getInstance(file.getProject()).getInspectionProfile();
    HighlightDisplayKey key = HighlightDisplayKey.find(ErlangDialyzerInspection.INSPECTION_SHORT_NAME);
    if (!profile.isToolEnabled(key)) return null;

    String workingDir = file.getProject().getBasePath();
    String dialyzerPath = homePath + "/bin/dialyzer" + (SystemInfo.isWindows ? ".exe" : "");

    String currentPltPath = DialyzerSettings.getInstance(file.getProject()).getCurrentPltPath();
View Full Code Here

TOP

Related Classes of com.intellij.codeInspection.InspectionProfile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.