{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/986","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/986/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/986/events","html_url":"https://github.com/jscs-dev/node-jscs/issues/986","id":56150293,"number":986,"title":"Execution without options","user":{"login":"markelog","id":945528,"avatar_url":"https://avatars.githubusercontent.com/u/945528?v=3","gravatar_id":"","url":"https://api.github.com/users/markelog","html_url":"https://github.com/markelog","followers_url":"https://api.github.com/users/markelog/followers","following_url":"https://api.github.com/users/markelog/following{/other_user}","gists_url":"https://api.github.com/users/markelog/gists{/gist_id}","starred_url":"https://api.github.com/users/markelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markelog/subscriptions","organizations_url":"https://api.github.com/users/markelog/orgs","repos_url":"https://api.github.com/users/markelog/repos","events_url":"https://api.github.com/users/markelog/events{/privacy}","received_events_url":"https://api.github.com/users/markelog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jscs-dev/node-jscs/labels/cli","name":"cli","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-01T03:31:51Z","updated_at":"2015-07-07T12:42:42Z","closed_at":null,"body":"If project doesn't have jscs config and If jscs cli tool is executed without options but with path argument - `jscs <files>`. What should we do?\r\n\r\nTwo possible ways:\r\n1. Apply rules from \"default\" preset, like with `go fmt`, `standart` npm <a href=\"https://github.com/feross/standard\">package</a> or with python pep8 <a href=\"http://pep8.readthedocs.org/en/latest/intro.html\">tool</a>. While proposing to use auto-config option at the end of error list.\r\n2. Enable auto-config option by default.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8192214-execution-without-options?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/119192389","html_url":"https://github.com/jscs-dev/node-jscs/issues/986#issuecomment-119192389","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/986","id":119192389,"user":{"login":"mikesherov","id":364532,"avatar_url":"https://avatars.githubusercontent.com/u/364532?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesherov","html_url":"https://github.com/mikesherov","followers_url":"https://api.github.com/users/mikesherov/followers","following_url":"https://api.github.com/users/mikesherov/following{/other_user}","gists_url":"https://api.github.com/users/mikesherov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesherov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesherov/subscriptions","organizations_url":"https://api.github.com/users/mikesherov/orgs","repos_url":"https://api.github.com/users/mikesherov/repos","events_url":"https://api.github.com/users/mikesherov/events{/privacy}","received_events_url":"https://api.github.com/users/mikesherov/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T12:42:42Z","updated_at":"2015-07-07T12:42:42Z","body":"I think this problem is solved by adding an `--init` option, which is simply `--auto-configure .` followed by `--fix .` and perhaps even automatically electing (f)ix for every violation.\r\n\r\nBecause we exclude `node_modules` by default (although auto-configure should probably also read your gitignore for excluded files), the result is a fixed up codebase with a simple jscsrc that contains only the preset chosen by the user.\r\n\r\nOur docs should have a big hero banner at the top:\r\n`npm install -g jscs && jscs --init`\r\n\r\nI don't think we need to promote a default preset, for the reasons outlined already. It creates unneeded holy wars for very little value for the user."}}