{"action":"created","comment":{"url":"https://api.github.com/repos/eslint/eslint/pulls/comments/38275989","id":38275989,"diff_hunk":"@@ -273,6 +273,17 @@ function CLIEngine(options) {\n      */\n     this.options = assign(Object.create(defaultOptions), options || {});\n \n+    /**\n+\t * fileCache used to not operate on files that haven't changed\n+     * since last successful execution\n+     * @type {Object}\n+     */\n+    this.fCache = require(\"file-entry-cache\").create(path.resolve(\".eslintcache\"));","path":"lib/cli-engine.js","position":null,"original_position":9,"commit_id":"f3032629a5d6d1fc2d549ba49f8306035693f4c4","original_commit_id":"c69049f6870baf728f3ad2ab996857252e7f1415","user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"body":"I meant the file name/location. Is there any way that can be configured?","created_at":"2015-08-30T21:11:37Z","updated_at":"2015-08-30T21:11:37Z","html_url":"https://github.com/eslint/eslint/pull/3597#discussion_r38275989","pull_request_url":"https://api.github.com/repos/eslint/eslint/pulls/3597","_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments/38275989"},"html":{"href":"https://github.com/eslint/eslint/pull/3597#discussion_r38275989"},"pull_request":{"href":"https://api.github.com/repos/eslint/eslint/pulls/3597"}}},"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/3597","id":43716036,"html_url":"https://github.com/eslint/eslint/pull/3597","diff_url":"https://github.com/eslint/eslint/pull/3597.diff","patch_url":"https://github.com/eslint/eslint/pull/3597.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3597","number":3597,"state":"open","locked":false,"title":"New: Implement cache in order to only operate on changed files since previous run. (fixes #2998)","user":{"login":"royriojas","id":131290,"avatar_url":"https://avatars.githubusercontent.com/u/131290?v=3","gravatar_id":"","url":"https://api.github.com/users/royriojas","html_url":"https://github.com/royriojas","followers_url":"https://api.github.com/users/royriojas/followers","following_url":"https://api.github.com/users/royriojas/following{/other_user}","gists_url":"https://api.github.com/users/royriojas/gists{/gist_id}","starred_url":"https://api.github.com/users/royriojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royriojas/subscriptions","organizations_url":"https://api.github.com/users/royriojas/orgs","repos_url":"https://api.github.com/users/royriojas/repos","events_url":"https://api.github.com/users/royriojas/events{/privacy}","received_events_url":"https://api.github.com/users/royriojas/received_events","type":"User","site_admin":false},"body":"This is the first draft of adding a cache to Eslint.\r\n\r\n- The basic detection of a changed file is deferred to file-entry-cache.\r\n- The file cache is stored in the current working directory (`process.cwd()`) where the command is executed. The file created is called `.eslintcache`\r\n- The cache only stores files that successfully passed validation. The ones that failed are removed to guarantee they will be processed the next run.\r\n\r\nan easy way to test is run this in the project\r\n\r\n```bash\r\n./bin/eslint.js lib/ --cache # this will take 3.5s aprox\r\n\r\n./bin/eslint.js lib/ --cache # this will take 150ms aprox. Obviously because the results are cached\r\n\r\n# touch a couple of files, introduce some errors on purpose\r\n./bin/eslint.js lib/ --cache # this will take 200ms aprox. \r\n```\r\n","created_at":"2015-08-30T16:34:30Z","updated_at":"2015-08-30T21:11:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c0a4c45e5db61db63286032ec75b0ffd946136c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/3597/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/3597/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3597/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/f3032629a5d6d1fc2d549ba49f8306035693f4c4","head":{"label":"royriojas:issue2998","ref":"issue2998","sha":"f3032629a5d6d1fc2d549ba49f8306035693f4c4","user":{"login":"royriojas","id":131290,"avatar_url":"https://avatars.githubusercontent.com/u/131290?v=3","gravatar_id":"","url":"https://api.github.com/users/royriojas","html_url":"https://github.com/royriojas","followers_url":"https://api.github.com/users/royriojas/followers","following_url":"https://api.github.com/users/royriojas/following{/other_user}","gists_url":"https://api.github.com/users/royriojas/gists{/gist_id}","starred_url":"https://api.github.com/users/royriojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royriojas/subscriptions","organizations_url":"https://api.github.com/users/royriojas/orgs","repos_url":"https://api.github.com/users/royriojas/repos","events_url":"https://api.github.com/users/royriojas/events{/privacy}","received_events_url":"https://api.github.com/users/royriojas/received_events","type":"User","site_admin":false},"repo":{"id":39487238,"name":"eslint","full_name":"royriojas/eslint","owner":{"login":"royriojas","id":131290,"avatar_url":"https://avatars.githubusercontent.com/u/131290?v=3","gravatar_id":"","url":"https://api.github.com/users/royriojas","html_url":"https://github.com/royriojas","followers_url":"https://api.github.com/users/royriojas/followers","following_url":"https://api.github.com/users/royriojas/following{/other_user}","gists_url":"https://api.github.com/users/royriojas/gists{/gist_id}","starred_url":"https://api.github.com/users/royriojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royriojas/subscriptions","organizations_url":"https://api.github.com/users/royriojas/orgs","repos_url":"https://api.github.com/users/royriojas/repos","events_url":"https://api.github.com/users/royriojas/events{/privacy}","received_events_url":"https://api.github.com/users/royriojas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/royriojas/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/royriojas/eslint","forks_url":"https://api.github.com/repos/royriojas/eslint/forks","keys_url":"https://api.github.com/repos/royriojas/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/royriojas/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/royriojas/eslint/teams","hooks_url":"https://api.github.com/repos/royriojas/eslint/hooks","issue_events_url":"https://api.github.com/repos/royriojas/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/royriojas/eslint/events","assignees_url":"https://api.github.com/repos/royriojas/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/royriojas/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/royriojas/eslint/tags","blobs_url":"https://api.github.com/repos/royriojas/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/royriojas/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/royriojas/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/royriojas/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/royriojas/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/royriojas/eslint/languages","stargazers_url":"https://api.github.com/repos/royriojas/eslint/stargazers","contributors_url":"https://api.github.com/repos/royriojas/eslint/contributors","subscribers_url":"https://api.github.com/repos/royriojas/eslint/subscribers","subscription_url":"https://api.github.com/repos/royriojas/eslint/subscription","commits_url":"https://api.github.com/repos/royriojas/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/royriojas/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/royriojas/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/royriojas/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/royriojas/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/royriojas/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/royriojas/eslint/merges","archive_url":"https://api.github.com/repos/royriojas/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/royriojas/eslint/downloads","issues_url":"https://api.github.com/repos/royriojas/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/royriojas/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/royriojas/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/royriojas/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/royriojas/eslint/labels{/name}","releases_url":"https://api.github.com/repos/royriojas/eslint/releases{/id}","created_at":"2015-07-22T05:22:31Z","updated_at":"2015-07-22T05:22:32Z","pushed_at":"2015-08-30T20:04:58Z","git_url":"git://github.com/royriojas/eslint.git","ssh_url":"git@github.com:royriojas/eslint.git","clone_url":"https://github.com/royriojas/eslint.git","svn_url":"https://github.com/royriojas/eslint","homepage":"http://eslint.org","size":6043,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eslint:master","ref":"master","sha":"1d1fe7c464314040f3d75f1ee9541dd2f07611aa","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","created_at":"2013-06-29T23:59:48Z","updated_at":"2015-08-30T13:16:50Z","pushed_at":"2015-08-30T21:11:08Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":21628,"stargazers_count":2790,"watchers_count":2790,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":534,"mirror_url":null,"open_issues_count":167,"forks":534,"open_issues":167,"watchers":2790,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/3597"},"html":{"href":"https://github.com/eslint/eslint/pull/3597"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/3597"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/3597/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/3597/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/3597/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/f3032629a5d6d1fc2d549ba49f8306035693f4c4"}}}}