{"action":"opened","issue":{"url":"https://api.github.com/repos/coala/coala-quickstart/issues/42","repository_url":"https://api.github.com/repos/coala/coala-quickstart","labels_url":"https://api.github.com/repos/coala/coala-quickstart/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/coala/coala-quickstart/issues/42/comments","events_url":"https://api.github.com/repos/coala/coala-quickstart/issues/42/events","html_url":"https://github.com/coala/coala-quickstart/issues/42","id":190227684,"number":42,"title":"Use existing paths in Gruntfile.js","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T03:28:13Z","updated_at":"2016-11-18T03:28:13Z","closed_at":null,"body":"Gruntfile.js contains pre-existing configuration which will exist in mature projects, which can be used to create the correct `.coafile` configuration. e.g. https://github.com/wikimedia/jquery.ime\r\n\r\n```js\r\n\t\tjshint: {\r\n\t\t\toptions: {\r\n\t\t\t\tjshintrc: true\r\n\t\t\t},\r\n\t\t\tall: [\r\n\t\t\t\t'*.js',\r\n\t\t\t\t'src/*.js',\r\n\t\t\t\t'rules/**/*.js',\r\n\t\t\t\t'test/**/*.js'\r\n\t\t\t]\r\n\t\t},\r\n\t\tjscs: {\r\n\t\t\tfix: {\r\n\t\t\t\toptions: {\r\n\t\t\t\t\tfix: true\r\n\t\t\t\t},\r\n\t\t\t\tsrc: '<%= jshint.all %>'\r\n\t\t\t},\r\n\t\t\tmain: {\r\n\t\t\t\tsrc: '<%= jshint.all %>'\r\n\t\t\t}\r\n\t\t},\r\n\t\tcsslint: {\r\n\t\t\tall: [\r\n\t\t\t\t'css/**/*.css'\r\n\t\t\t]\r\n\t\t},\r\n```\r\n\r\nThose top level keys (csslint, jscs, jshint) are constant, and directly map to names of linters; but the sub-keys change per grunt plugin, but `all` and `main` are quite common.  IMO quickstart should still find all relevant files, and then emit a message to say which relevant files have been excluded due to `Gruntfile.js`.\r\n\r\nThere is also a common, but not standard, excerpt to correctly choose necessary linters:\r\n\r\n```js\r\n\tgrunt.registerTask( 'lint', [ 'jshint', 'jscs:main', 'csslint' ] );\r\n```\r\n\r\nIt would be very nice to warn if any of the `lint` sub-tasks can not be mapped to a bear in coala."}}
{"actor":{"display_login":"jayvdb"}}