Search in sources :

Example 1 with Settings

use of com.scss.settings.Settings in project scss-lint-plugin by idok.

the class ScssLintTest method doTest.

private void doTest(final String file) {
    Project project = myFixture.getProject();
    Settings settings = Settings.getInstance(project);
    //        settings.scssLintExecutable = ScssLintRunnerTest.SCSS_LINT_BIN;
    //        settings.scssLintConfigFile = getTestDataPath() + "/.eslintrc";
    //        settings.nodeInterpreter = ScssLintRunnerTest.SCSS_EXE;
    //        settings.rulesPath = "";
    settings.pluginEnabled = true;
    myFixture.configureByFile(file);
    myFixture.enableInspections(new ScssLintInspection());
    myFixture.checkHighlighting(true, false, true);
}
Also used : Project(com.intellij.openapi.project.Project) ScssLintInspection(com.scss.ScssLintInspection) Settings(com.scss.settings.Settings)

Aggregations

Project (com.intellij.openapi.project.Project)1 ScssLintInspection (com.scss.ScssLintInspection)1 Settings (com.scss.settings.Settings)1