-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Caching now generates a more accurate file hash and error filtering i…
…s done at the end of a file run so the cache can be used even with filter (ref #530) The cache key is now generated by looking for loaded external and internal sniff files, then looking for all important core files, and hashing the result. Use -vv to see what files are being used for the hash, and other cache key values. The cache key no longer includes severity or sniffs (removed previously) as files will record all errors and warnings during a cache run no matter what the filter settings are. Local files then replay the errors and warnings found with the filters on, removing the ones that should not be shown. Subsequent runs can then use the cache and reply the errors manually instead of tokenizing and checking the file. The result is that a filtered run will now cache everything needed for future unfiltered runs. It makes the first run a bit slower, but the cache much more useful. To help with all this, error messages must now have codes. You can no longer leave them blank, which makes them impossible to override or filter in rulesets anyway.
- Loading branch information
Showing
9 changed files
with
230 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.