idok / scss-lint-plugin

SCSS Lint plugin for intellij
http://plugins.jetbrains.com/plugin/7530
93 stars 8 forks source link

$PROJECT_DIR$ Value #15

Open Sly777 opened 9 years ago

Sly777 commented 9 years ago

Hi all,

I have problem with Config file value. For example, i just want to choose file from project directory but plugin got it with full path. But the problem is starting when another one use the project in different directory. Can we use $PROJECT_DIR$ for these things? because it is working too and it looks more tidy.

For example; This one is original one.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ScssLintProjectComponent">
    <option name="scssLintConfigFile" value="D:\projects\testProject\.scss-lint.yml" />
    <option name="scssLintExecutable" value="D:\Ruby21-x64\bin\scss-lint.bat" />
    <option name="pluginEnabled" value="true" />
  </component>

to this

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ScssLintProjectComponent">
    <option name="scssLintConfigFile" value="$PROJECT_DIR$\.scss-lint.yml" />
    <option name="scssLintExecutable" value="D:\Ruby21-x64\bin\scss-lint.bat" />
    <option name="pluginEnabled" value="true" />
  </component>
idok commented 9 years ago

On my project this is done automatically by intellij, once I select the file, the value written to my scssLintPlugin.xml is the one with $PROJECT_DIR$. Does the file you select under the project?