{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/9948","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/9948/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/9948/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/9948/events","html_url":"https://github.com/eslint/eslint/issues/9948","id":294591171,"number":9948,"title":"Store information for files with lint warnings and errors in cache","user":{"login":"galvarez421","id":12755056,"avatar_url":"https://avatars3.githubusercontent.com/u/12755056?v=4","gravatar_id":"","url":"https://api.github.com/users/galvarez421","html_url":"https://github.com/galvarez421","followers_url":"https://api.github.com/users/galvarez421/followers","following_url":"https://api.github.com/users/galvarez421/following{/other_user}","gists_url":"https://api.github.com/users/galvarez421/gists{/gist_id}","starred_url":"https://api.github.com/users/galvarez421/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galvarez421/subscriptions","organizations_url":"https://api.github.com/users/galvarez421/orgs","repos_url":"https://api.github.com/users/galvarez421/repos","events_url":"https://api.github.com/users/galvarez421/events{/privacy}","received_events_url":"https://api.github.com/users/galvarez421/received_events","type":"User","site_admin":false},"labels":[{"id":82922548,"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":45711352,"url":"https://api.github.com/repos/eslint/eslint/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":255319420,"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-06T00:31:50Z","updated_at":"2018-02-06T12:49:15Z","closed_at":null,"author_association":"NONE","body":"**The version of ESLint you are using.**\r\n4.15.0\r\n\r\n**The problem you want to solve.**\r\nMake cache feature (and its corresponding documentation) more useful and intuitive. Currently, the cache feature does not seem as useful or intuitive as it might be in that only information for files that pass linting with no warnings or errors is saved in the cache. I wonder if the cache feature could offer even more of a performance benefit if the cache were to store information for files with lint warnings or errors as well such that they don't have to run through a linting process if they haven't been changed since they were last linted with the cache feature enabled?\r\n\r\n**Your take on the correct solution to problem.**\r\nPerhaps we can extend the usage of the cache such that information for files with lint warnings or errors is also saved to the cache? @IanVS, following up on [this comment](https://github.com/eslint/eslint/issues/2998#issuecomment-363171051)"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/363412147","html_url":"https://github.com/eslint/eslint/issues/9948#issuecomment-363412147","issue_url":"https://api.github.com/repos/eslint/eslint/issues/9948","id":363412147,"user":{"login":"galvarez421","id":12755056,"avatar_url":"https://avatars3.githubusercontent.com/u/12755056?v=4","gravatar_id":"","url":"https://api.github.com/users/galvarez421","html_url":"https://github.com/galvarez421","followers_url":"https://api.github.com/users/galvarez421/followers","following_url":"https://api.github.com/users/galvarez421/following{/other_user}","gists_url":"https://api.github.com/users/galvarez421/gists{/gist_id}","starred_url":"https://api.github.com/users/galvarez421/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galvarez421/subscriptions","organizations_url":"https://api.github.com/users/galvarez421/orgs","repos_url":"https://api.github.com/users/galvarez421/repos","events_url":"https://api.github.com/users/galvarez421/events{/privacy}","received_events_url":"https://api.github.com/users/galvarez421/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T12:49:15Z","updated_at":"2018-02-06T12:49:15Z","author_association":"NONE","body":"@ilyavolodin If auto fix occurs after results for a file have been cached, wouldn't that cause the file to be considered newer than the cache during the next lint and thereby cause the cache to be ignored for that file? In other words, wouldn't the cache process still work as expected (although maybe the timing of the autofix relative to the caching wouldn't)? Or are you concerned not about caching not working as expected but rather about the caching not being as effective as it could be due to the timing of autofixes? Based on the description by @platinumazure of the lint process, it seems that autofixes are applied before the results are outputted and cached, so maybe this is a non-issue."}}
{"actor":{"display_login":"galvarez421"}}