From af5f18eb3b8bfd37b7e7dded42703ebe401a9f83 Mon Sep 17 00:00:00 2001 From: Joshua Pinter Date: Tue, 24 Sep 2024 09:46:47 -0400 Subject: [PATCH] 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. --- README.md | 2 +- lib/erb_lint/cache.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4ab7c0f..95df43a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lib/erb_lint/cache.rb b/lib/erb_lint/cache.rb index 928b209..7746765 100644 --- a/lib/erb_lint/cache.rb +++ b/lib/erb_lint/cache.rb @@ -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