{"action":"created","issue":{"url":"https://api.github.com/repos/diffplug/spotless/issues/233","repository_url":"https://api.github.com/repos/diffplug/spotless","labels_url":"https://api.github.com/repos/diffplug/spotless/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/diffplug/spotless/issues/233/comments","events_url":"https://api.github.com/repos/diffplug/spotless/issues/233/events","html_url":"https://github.com/diffplug/spotless/issues/233","id":313864824,"number":233,"title":"Interface for licenseHeaderFile licenseHeader","user":{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars2.githubusercontent.com/u/1323708?v=4","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars2.githubusercontent.com/u/1323708?v=4","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false},"assignees":[{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars2.githubusercontent.com/u/1323708?v=4","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-12T19:52:24Z","updated_at":"2018-04-16T13:17:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'd like to be able to do something like this:\r\n```kotlin\r\nfun <T: SimpleLicenseInterfaceThatNeedsBetterName & FormatExtension> T.customConfig() {\r\n        trimTrailingWhitespace()\r\n        endWithNewline()\r\n        /*\r\n         * This adds the Plexxi License header to all of the Kotlin files & checks for it's\r\n         * presence/correctness when running `spotlessCheck`.\r\n         */\r\n        licenseHeaderFile(\"${project.rootDir}/spotless.license\")\r\n        /*\r\n         * Checks for authorship on the Kotin source files and fails spotlessCheck if present.\r\n         */\r\n        custom(\"authorship\", ::checkForAuthorship)\r\n}\r\n\r\nspotless {\r\n    kotlin {\r\n        customConfig()\r\n    }\r\n    java {\r\n        customConfig()\r\n    }\r\n}\r\n```\r\n\r\nSuggestions for a better name than `SimpleLicenseInterfaceThatNeedsBetterName`?"},"comment":{"url":"https://api.github.com/repos/diffplug/spotless/issues/comments/381595732","html_url":"https://github.com/diffplug/spotless/issues/233#issuecomment-381595732","issue_url":"https://api.github.com/repos/diffplug/spotless/issues/233","id":381595732,"user":{"login":"JLLeitschuh","id":1323708,"avatar_url":"https://avatars2.githubusercontent.com/u/1323708?v=4","gravatar_id":"","url":"https://api.github.com/users/JLLeitschuh","html_url":"https://github.com/JLLeitschuh","followers_url":"https://api.github.com/users/JLLeitschuh/followers","following_url":"https://api.github.com/users/JLLeitschuh/following{/other_user}","gists_url":"https://api.github.com/users/JLLeitschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/JLLeitschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLLeitschuh/subscriptions","organizations_url":"https://api.github.com/users/JLLeitschuh/orgs","repos_url":"https://api.github.com/users/JLLeitschuh/repos","events_url":"https://api.github.com/users/JLLeitschuh/events{/privacy}","received_events_url":"https://api.github.com/users/JLLeitschuh/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T13:17:17Z","updated_at":"2018-04-16T13:17:17Z","author_association":"CONTRIBUTOR","body":"That doesn't work for `licenseHeaderFile` unfortunately."}}
{"actor":{"display_login":"JLLeitschuh"}}