Skip to content

Commit

Permalink
Merge pull request #380 from cntral/rename_cache_directory
Browse files Browse the repository at this point in the history
Rename `CACHE_DIRECTORY` to `.erb_lint_cache`.
  • Loading branch information
etiennebarrie authored Sep 24, 2024
2 parents 255fdb4 + af5f18e commit 5c63068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ File names pruned from the cache will be logged
No errors were found in ERB files
```
Cached lint results are stored in the `.erb-lint-cache` directory by default, though a custom directory can be provided
Cached lint results are stored in the `.erb_lint_cache` directory by default, though a custom directory can be provided
via the `--cache-dir` option. Cache filenames are computed with a hash of information about the file and `erb_lint` settings.
These files store instance attributes of the `CachedOffense` object, which only contain the `Offense` attributes
necessary to restore the results of running `erb_lint` for output. The cache also automatically prunes outdated files each time it's run.
Expand Down
2 changes: 1 addition & 1 deletion lib/erb_lint/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module ERBLint
class Cache
CACHE_DIRECTORY = ".erb-lint-cache"
CACHE_DIRECTORY = ".erb_lint_cache"

def initialize(config, cache_dir = nil)
@config = config
Expand Down

0 comments on commit 5c63068

Please sign in to comment.