{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/htmlcs/issues/62","labels_url":"https://api.github.com/repos/ecomfe/htmlcs/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/htmlcs/issues/62/comments","events_url":"https://api.github.com/repos/ecomfe/htmlcs/issues/62/events","html_url":"https://github.com/ecomfe/htmlcs/issues/62","id":122643590,"number":62,"title":"New rule - warning on multiple style sheets included where one will do","user":{"login":"jamesspittal","id":4592650,"avatar_url":"https://avatars.githubusercontent.com/u/4592650?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesspittal","html_url":"https://github.com/jamesspittal","followers_url":"https://api.github.com/users/jamesspittal/followers","following_url":"https://api.github.com/users/jamesspittal/following{/other_user}","gists_url":"https://api.github.com/users/jamesspittal/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesspittal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesspittal/subscriptions","organizations_url":"https://api.github.com/users/jamesspittal/orgs","repos_url":"https://api.github.com/users/jamesspittal/repos","events_url":"https://api.github.com/users/jamesspittal/events{/privacy}","received_events_url":"https://api.github.com/users/jamesspittal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T01:48:36Z","updated_at":"2015-12-17T06:17:54Z","closed_at":null,"body":"Inspired in part by the concept of 'Seperation of Concerns' (with an example in the HTML/CSS context here: https://google.github.io/styleguide/htmlcssguide.xml#Separation_of_Concerns).\r\n\r\nAn optional rule-set that produces a warning on cases where more than one style-sheet is included, example:\r\n\r\n````html\r\n    <link rel=\"stylesheet\" href=\"assets/css/normalize.css\">\r\n    <link rel=\"stylesheet\" href=\"assets/css/global.css\">\r\n    <link rel=\"stylesheet\" href=\"assets/css/style.css\">\r\n    <link rel=\"stylesheet\" href=\"assets/css/tablet.css\">\r\n    <link rel=\"stylesheet\" href=\"assets/css/mobile.css\">\r\n    <link rel=\"stylesheet\" href=\"assets/css/colorbox.css\">\r\n````\r\n\r\n... whereas, combining all style-sheets into one neat CSS file would be cleaner and represent a better \"separate of concerns\". Example:\r\n\r\n````html\r\n    <link rel=\"stylesheet\" href=\"assets/css/default.css\">\r\n````\r\n\r\nThis concept has been debated quite a long time and it's somewhat controversial, examples:\r\n\r\n* http://stackoverflow.com/questions/2336302/single-huge-css-file-vs-multiple-smaller-specific-css-files\r\n* http://stackoverflow.com/questions/32041281/one-big-css-file-vs-multiple-small-css-files\r\n\r\nHowever, if you do not agree with this coding standard, it can simply be not included in your coding standard rule-set (and possibly it should be not included in the default rule-set)."},"comment":{"url":"https://api.github.com/repos/ecomfe/htmlcs/issues/comments/165352190","html_url":"https://github.com/ecomfe/htmlcs/issues/62#issuecomment-165352190","issue_url":"https://api.github.com/repos/ecomfe/htmlcs/issues/62","id":165352190,"user":{"login":"nighca","id":1492263,"avatar_url":"https://avatars.githubusercontent.com/u/1492263?v=3","gravatar_id":"","url":"https://api.github.com/users/nighca","html_url":"https://github.com/nighca","followers_url":"https://api.github.com/users/nighca/followers","following_url":"https://api.github.com/users/nighca/following{/other_user}","gists_url":"https://api.github.com/users/nighca/gists{/gist_id}","starred_url":"https://api.github.com/users/nighca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nighca/subscriptions","organizations_url":"https://api.github.com/users/nighca/orgs","repos_url":"https://api.github.com/users/nighca/repos","events_url":"https://api.github.com/users/nighca/events{/privacy}","received_events_url":"https://api.github.com/users/nighca/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T06:17:54Z","updated_at":"2015-12-17T06:17:54Z","body":"Agree."}}