Skip to content

Commit af5f18e

Browse files
committed
Rename CACHE_DIRECTORY to .erb_lint_cache.
From `.erb-lint-cache`. This is to align with the general renaming and standardization from `erb-lint` and `erblint` to `erb_lint`. Fixes #379.
1 parent 255fdb4 commit af5f18e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ File names pruned from the cache will be logged
736736
No errors were found in ERB files
737737
```
738738
739-
Cached lint results are stored in the `.erb-lint-cache` directory by default, though a custom directory can be provided
739+
Cached lint results are stored in the `.erb_lint_cache` directory by default, though a custom directory can be provided
740740
via the `--cache-dir` option. Cache filenames are computed with a hash of information about the file and `erb_lint` settings.
741741
These files store instance attributes of the `CachedOffense` object, which only contain the `Offense` attributes
742742
necessary to restore the results of running `erb_lint` for output. The cache also automatically prunes outdated files each time it's run.

lib/erb_lint/cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module ERBLint
44
class Cache
5-
CACHE_DIRECTORY = ".erb-lint-cache"
5+
CACHE_DIRECTORY = ".erb_lint_cache"
66

77
def initialize(config, cache_dir = nil)
88
@config = config

0 commit comments

Comments
 (0)