{"action":"created","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/1194","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/1194/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/1194/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/1194/events","html_url":"https://github.com/stylelint/stylelint/issues/1194","id":153425304,"number":1194,"title":"number-max-precision affects strings and URL function","user":{"login":"woble","id":494873,"avatar_url":"https://avatars.githubusercontent.com/u/494873?v=3","gravatar_id":"","url":"https://api.github.com/users/woble","html_url":"https://github.com/woble","followers_url":"https://api.github.com/users/woble/followers","following_url":"https://api.github.com/users/woble/following{/other_user}","gists_url":"https://api.github.com/users/woble/gists{/gist_id}","starred_url":"https://api.github.com/users/woble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woble/subscriptions","organizations_url":"https://api.github.com/users/woble/orgs","repos_url":"https://api.github.com/users/woble/repos","events_url":"https://api.github.com/users/woble/events{/privacy}","received_events_url":"https://api.github.com/users/woble/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stylelint/stylelint/labels/status:%20wip","name":"status: wip","color":"009800"},{"url":"https://api.github.com/repos/stylelint/stylelint/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-05-06T10:39:53Z","updated_at":"2016-05-06T11:22:59Z","closed_at":null,"body":"> Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)?\r\n\r\n`number-max-precision` is affecting strings and url function that contain dots and digits.\r\n\r\n> Which rule, if any, is this issue related to?\r\n\r\n`number-max-precision`\r\n\r\n> What CSS is needed to reproduce this issue?\r\n\r\n`myfont.pcss`\r\n```css\r\n@import '_myfont.1252.pcss';\r\n```\r\n\r\n`_myfont.1252.pcss`\r\n```css\r\n@font-face {\r\n    src:\r\n        local('☺'),\r\n        url(myfont-300.1252.woff2) format('woff2'),\r\n        url(myfont-300.1252.woff) format('woff'),\r\n        url(myfont-300.1252.tff) format('truetype');\r\n    font-family: MyFont;\r\n    font-style: normal;\r\n    font-weight: 300;\r\n}\r\n```\r\n\r\n> What stylelint configuration is needed to reproduce this issue?\r\n\r\n```json\r\n{\r\n  \"rules\": {\r\n    \"number-max-precision\": 3\r\n  }\r\n}\r\n```\r\n\r\n> Which version of stylelint are you using?\r\n\r\n`6.2.2`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\ngulp-stylelint\r\nSublimeLinter-contrib-stylelint (CLI mod)\r\n\r\n> Does your issue relate to non-standard syntax (e.g. SCSS, nesting, etc.)?\r\n\r\nNo.\r\n\r\n> What did you expect to happen?\r\n\r\nNo warnings to be flagged.\r\n\r\n> What actually happened (e.g. what warnings or errors you are getting)?\r\n\r\nThe following warnings were flagged:\r\n\r\n```shell\r\nmyfont.pcss\r\n 1:15  ×  Expected \"0.1252\" to be \"0.125\"   number-max-precision\r\n\r\n_myfont.1252.pcss\r\n  4:18  ×  Expected \"300.1252\" to be \"300.125\"   number-max-precision\r\n  5:18  ×  Expected \"300.1252\" to be \"300.125\"   number-max-precision\r\n  6:18  ×  Expected \"300.1252\" to be \"300.125\"   number-max-precision\r\n```\r\n\r\n<!--- Note: stackoverflow is our preferred QA forum - http://stackoverflow.com/questions/tagged/stylelint -->\r\n"},"comment":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/comments/217415241","html_url":"https://github.com/stylelint/stylelint/issues/1194#issuecomment-217415241","issue_url":"https://api.github.com/repos/stylelint/stylelint/issues/1194","id":217415241,"user":{"login":"jeddy3","id":808227,"avatar_url":"https://avatars.githubusercontent.com/u/808227?v=3","gravatar_id":"","url":"https://api.github.com/users/jeddy3","html_url":"https://github.com/jeddy3","followers_url":"https://api.github.com/users/jeddy3/followers","following_url":"https://api.github.com/users/jeddy3/following{/other_user}","gists_url":"https://api.github.com/users/jeddy3/gists{/gist_id}","starred_url":"https://api.github.com/users/jeddy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeddy3/subscriptions","organizations_url":"https://api.github.com/users/jeddy3/orgs","repos_url":"https://api.github.com/users/jeddy3/repos","events_url":"https://api.github.com/users/jeddy3/events{/privacy}","received_events_url":"https://api.github.com/users/jeddy3/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T11:22:59Z","updated_at":"2016-05-06T11:22:59Z","body":"@woble Thanks for the nicely written up bug report :)\r\n\r\nI've patched this in https://github.com/stylelint/stylelint/issues/1195 - it was a quick fix. There are a [couple of issues we're working on](https://github.com/stylelint/stylelint/milestones/6.3.0) before we can release `6.3` though, and so you might want to turn off the `number-max-precision` in the meantime."}}