Search in sources :

Example 1 with UnqualifiedFieldAccessInspection

use of com.siyeh.ig.style.UnqualifiedFieldAccessInspection in project intellij-community by JetBrains.

the class CreateConstructorParameterFromFieldTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    enableInspectionTools(new UnusedDeclarationInspection(), new MissortedModifiersInspection(), new UnqualifiedFieldAccessInspection());
    final CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());
    myPreferLongNames = settings.PREFER_LONGER_NAMES;
    if (getTestName(false).contains("SameParameter")) {
        settings.PREFER_LONGER_NAMES = false;
    }
}
Also used : CodeStyleSettings(com.intellij.psi.codeStyle.CodeStyleSettings) MissortedModifiersInspection(com.siyeh.ig.style.MissortedModifiersInspection) UnqualifiedFieldAccessInspection(com.siyeh.ig.style.UnqualifiedFieldAccessInspection) UnusedDeclarationInspection(com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)

Aggregations

UnusedDeclarationInspection (com.intellij.codeInspection.deadCode.UnusedDeclarationInspection)1 CodeStyleSettings (com.intellij.psi.codeStyle.CodeStyleSettings)1 MissortedModifiersInspection (com.siyeh.ig.style.MissortedModifiersInspection)1 UnqualifiedFieldAccessInspection (com.siyeh.ig.style.UnqualifiedFieldAccessInspection)1