{"action":"closed","issue":{"url":"https://api.github.com/repos/stylelint/stylelint/issues/3818","repository_url":"https://api.github.com/repos/stylelint/stylelint","labels_url":"https://api.github.com/repos/stylelint/stylelint/issues/3818/labels{/name}","comments_url":"https://api.github.com/repos/stylelint/stylelint/issues/3818/comments","events_url":"https://api.github.com/repos/stylelint/stylelint/issues/3818/events","html_url":"https://github.com/stylelint/stylelint/issues/3818","id":383746410,"node_id":"MDU6SXNzdWUzODM3NDY0MTA=","number":3818,"title":"Fix --report-needless-disables to accept a boolean value and not a string","user":{"login":"remcohaszing","id":779047,"node_id":"MDQ6VXNlcjc3OTA0Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/779047?v=4","gravatar_id":"","url":"https://api.github.com/users/remcohaszing","html_url":"https://github.com/remcohaszing","followers_url":"https://api.github.com/users/remcohaszing/followers","following_url":"https://api.github.com/users/remcohaszing/following{/other_user}","gists_url":"https://api.github.com/users/remcohaszing/gists{/gist_id}","starred_url":"https://api.github.com/users/remcohaszing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remcohaszing/subscriptions","organizations_url":"https://api.github.com/users/remcohaszing/orgs","repos_url":"https://api.github.com/users/remcohaszing/repos","events_url":"https://api.github.com/users/remcohaszing/events{/privacy}","received_events_url":"https://api.github.com/users/remcohaszing/received_events","type":"User","site_admin":false},"labels":[{"id":485955505,"node_id":"MDU6TGFiZWw0ODU5NTU1MDU=","url":"https://api.github.com/repos/stylelint/stylelint/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":210042520,"node_id":"MDU6TGFiZWwyMTAwNDI1MjA=","url":"https://api.github.com/repos/stylelint/stylelint/labels/help%20wanted","name":"help wanted","color":"008672","default":true},{"id":210042529,"node_id":"MDU6TGFiZWwyMTAwNDI1Mjk=","url":"https://api.github.com/repos/stylelint/stylelint/labels/type:%20bug","name":"type: bug","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-23T09:09:33Z","updated_at":"2018-11-27T07:20:00Z","closed_at":"2018-11-27T07:20:00Z","author_association":"NONE","body":"> Clearly describe the bug\r\n\r\nAccording to the documentation, The CLI accepts a argument `--report-needless-disables`. However, it is treated by the truthiness of its string value.\r\n\r\nFor example:\r\n\r\n```sh\r\n# Lints directory\r\n$ stylelint .\r\n# Reports needless disables\r\n$ stylelint --report-needless-disables any-non-empty-string .\r\n# Reports needless disables\r\n$ stylelint . --report-needless-disables\r\n# Paths are missing. report-needless-disables now has the string value '.'\r\n$ stylelint --report-needless-disables .\r\n```\r\n\r\n> Which rule, if any, is the bug related to?\r\n\r\nNone\r\n\r\n> What CSS is needed to reproduce the bug?\r\n\r\nNone\r\n\r\n> What stylelint configuration is needed to reproduce the bug?\r\n\r\nNone\r\n\r\n> Which version of stylelint are you using?\r\n\r\n`9.8.0`\r\n\r\n> How are you running stylelint: CLI, PostCSS plugin, Node API?\r\n\r\nCLI\r\n\r\n> Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?\r\n\r\nNo\r\n\r\n> What did you expect to happen?\r\n\r\nFor the option `--report-needless-disables` to be treated as a boolean CLI argument\r\n\r\n> What actually happened (e.g. what warnings or errors did you get)?\r\n\r\n`--report-needless-disables` accepts a string value. If it’s non empty, it is treated as truthy."}}
{"actor":{"display_login":"ntwb"}}