Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename CACHE_DIRECTORY to .erb_lint_cache. #380

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading