{"action":"created","issue":{"url":"https://api.github.com/repos/lpil/dogma/issues/70","labels_url":"https://api.github.com/repos/lpil/dogma/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/lpil/dogma/issues/70/comments","events_url":"https://api.github.com/repos/lpil/dogma/issues/70/events","html_url":"https://github.com/lpil/dogma/issues/70","id":101265777,"number":70,"title":"Configuration proposal","user":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lpil/dogma/labels/Kind:%20Discussion","name":"Kind: Discussion","color":"ffb0cf"}],"state":"open","locked":false,"assignee":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/lpil/dogma/milestones/1","html_url":"https://github.com/lpil/dogma/milestones/v1.0.0","labels_url":"https://api.github.com/repos/lpil/dogma/milestones/1/labels","id":1172361,"number":1,"title":"v1.0.0","description":"","creator":{"login":"lpil","id":6134406,"avatar_url":"https://avatars.githubusercontent.com/u/6134406?v=3","gravatar_id":"","url":"https://api.github.com/users/lpil","html_url":"https://github.com/lpil","followers_url":"https://api.github.com/users/lpil/followers","following_url":"https://api.github.com/users/lpil/following{/other_user}","gists_url":"https://api.github.com/users/lpil/gists{/gist_id}","starred_url":"https://api.github.com/users/lpil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpil/subscriptions","organizations_url":"https://api.github.com/users/lpil/orgs","repos_url":"https://api.github.com/users/lpil/repos","events_url":"https://api.github.com/users/lpil/events{/privacy}","received_events_url":"https://api.github.com/users/lpil/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":28,"state":"open","created_at":"2015-06-19T13:05:34Z","updated_at":"2015-08-16T13:40:39Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-08-16T13:40:39Z","updated_at":"2015-08-18T08:32:49Z","closed_at":null,"body":"### A draft for dogma configuration:\r\n\r\nI think we should recommend you create a `config/dogma.exs` file, and load this file from your main config.exs.\r\n\r\nPrevious discussions with @meadsteve raised the question of whether the rules in the config file should be the only ones that are run, or whether the settings there override and add to the dogma default rule set.\r\n\r\nCurrently I'm leaning towards both! Specify a ruleset to start with (or explicitly set it to none), and then specify additional little configurations underneath. \r\n\r\n```elixir\r\nconfig :dogma,\r\n\r\n  # The ruleset to use. Defaults to `:all`\r\n  # When set to nil no set will be used, and only get configuration from\r\n  # `rule_config` will apply.\r\n  rule_set: :all,\r\n\r\n  # Additional configuration options that are used to change the behaviour of\r\n  # your selected ruleset.\r\n  # I see this as being the main way in which people configure Dogma for\r\n  # their project- making a few tweaks here and there.\r\n  \r\n  rule_config: [\r\n    TrailingWhitespace: false,\r\n    LineLength: [length: 100],\r\n    MyProject.MyCustomRule: true,\r\n    # etc...\r\n  ]\r\n```\r\n\r\nAre there better names for these keys? I'm not happy with `rule_config`. `overrides` ?\r\n\r\nPing @meadsteve, @richardbatty, and @jonnyarnold. It would be good to get your opinions!"},"comment":{"url":"https://api.github.com/repos/lpil/dogma/issues/comments/132119817","html_url":"https://github.com/lpil/dogma/issues/70#issuecomment-132119817","issue_url":"https://api.github.com/repos/lpil/dogma/issues/70","id":132119817,"user":{"login":"jonnyarnold","id":3803030,"avatar_url":"https://avatars.githubusercontent.com/u/3803030?v=3","gravatar_id":"","url":"https://api.github.com/users/jonnyarnold","html_url":"https://github.com/jonnyarnold","followers_url":"https://api.github.com/users/jonnyarnold/followers","following_url":"https://api.github.com/users/jonnyarnold/following{/other_user}","gists_url":"https://api.github.com/users/jonnyarnold/gists{/gist_id}","starred_url":"https://api.github.com/users/jonnyarnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonnyarnold/subscriptions","organizations_url":"https://api.github.com/users/jonnyarnold/orgs","repos_url":"https://api.github.com/users/jonnyarnold/repos","events_url":"https://api.github.com/users/jonnyarnold/events{/privacy}","received_events_url":"https://api.github.com/users/jonnyarnold/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T08:32:49Z","updated_at":"2015-08-18T08:32:49Z","body":"@meadsteve Can you explain what you mean by \"no config to override\"? In my head, there's only one way to interpret this:\r\n\r\n*When I declare `RuleName: false` I do not want the declared rule to be run.*"}}