summaryrefslogtreecommitdiff
path: root/test/slimlint-test-files
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2017-09-02 16:48:00 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2017-09-15 18:56:59 +0200
commit6ebd8f355c974cb6b7c5d5aff20603c8c4b38feb (patch)
tree2bee605e0ef8e9d856b004acb8b6a7472d706d0d /test/slimlint-test-files
parenta59d1ddbf39fac6463c3b8748faf2651c9f9130d (diff)
downloadale-6ebd8f355c974cb6b7c5d5aff20603c8c4b38feb.zip
slimlint: Search for .rubocop.yml and use it
This fixes slim-lint not honoring a `.rubocop.yml` in the file's or parent directory. Due to the way slim-lint calls rubocop, it requires the special `SLIM_LINT_RUBUCOP_CONF` env var to pick up the `.rubocop.yml` if it is not run on the real file (which is the case here). See https://github.com/sds/slim-lint/blob/master/lib/slim_lint/linter/README.md#rubocop
Diffstat (limited to 'test/slimlint-test-files')
-rw-r--r--test/slimlint-test-files/.rubocop.yml0
-rw-r--r--test/slimlint-test-files/subdir/file.slim0
2 files changed, 0 insertions, 0 deletions
diff --git a/test/slimlint-test-files/.rubocop.yml b/test/slimlint-test-files/.rubocop.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/slimlint-test-files/.rubocop.yml
diff --git a/test/slimlint-test-files/subdir/file.slim b/test/slimlint-test-files/subdir/file.slim
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/slimlint-test-files/subdir/file.slim