Skip to content

how does the cache file works #13540

Closed Answered by rnveach
taojintianxia asked this question in Q&A
Discussion options

You must be logged in to vote

Basically the cache file is a plain text file. It contains the list of files processed by Checkstyle and their last updated timestamp, and also contains the configuration hash. The hash is generated based on the contents in the configuration.

If the configuration hash is different on a new run, then the entire cache file is wiped and the run is the same as if a cache file never existed, reprocessing all files and modules. When I say configuration, this includes files connected to the XML configuration, but not in the same file, like suppression files, import control files, etc. Files processed and recorded into the cache file are assumed to be void of any violations. This means that the p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rnveach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants