{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3009","repository_url":"https://api.github.com/repos/checkstyle/checkstyle","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3009/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3009/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3009/events","html_url":"https://github.com/checkstyle/checkstyle/issues/3009","id":138678735,"number":3009,"title":"New check: LambdaParameterName","user":{"login":"tsjensen","id":7677131,"avatar_url":"https://avatars.githubusercontent.com/u/7677131?v=3","gravatar_id":"","url":"https://api.github.com/users/tsjensen","html_url":"https://github.com/tsjensen","followers_url":"https://api.github.com/users/tsjensen/followers","following_url":"https://api.github.com/users/tsjensen/following{/other_user}","gists_url":"https://api.github.com/users/tsjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/tsjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsjensen/subscriptions","organizations_url":"https://api.github.com/users/tsjensen/orgs","repos_url":"https://api.github.com/users/tsjensen/repos","events_url":"https://api.github.com/users/tsjensen/events{/privacy}","received_events_url":"https://api.github.com/users/tsjensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-05T13:28:42Z","updated_at":"2016-03-05T18:16:57Z","closed_at":null,"body":"I would like to propose a new check *LambdaParameterName* for the naming convention on lambda arguments. Just like [ParameterName](http://checkstyle.sourceforge.net/config_naming.html#ParameterName), it would be a subclass of `AbstractNameCheck` and have a `format` property.\r\n\r\nHaving this check would allow for a more precise definition of the naming conventions. Currently, lambda arguments must follow the same naming convention as method arguments. But some people prefer to make a distinction between the two, so that one knows which parameter came from the enclosing method and which from the lambda expression:\r\n```java\r\npublic void method(Person pPerson) {\r\n  printAdultsWithSameGender(roster,\r\n    (Person p) -> p.getGender() == pPerson.getGender() && p.getAge() >= 18\r\n  );\r\n}\r\n```\r\nFor compatibility reasons, we should probably add a new property `ignoreLambdas` to the existing *ParameterName* check which is by default set to `false`. Then people can set it to `true` when they introduce the new check to their rule sets."},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/192700836","html_url":"https://github.com/checkstyle/checkstyle/issues/3009#issuecomment-192700836","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3009","id":192700836,"user":{"login":"romani","id":812984,"avatar_url":"https://avatars.githubusercontent.com/u/812984?v=3","gravatar_id":"","url":"https://api.github.com/users/romani","html_url":"https://github.com/romani","followers_url":"https://api.github.com/users/romani/followers","following_url":"https://api.github.com/users/romani/following{/other_user}","gists_url":"https://api.github.com/users/romani/gists{/gist_id}","starred_url":"https://api.github.com/users/romani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romani/subscriptions","organizations_url":"https://api.github.com/users/romani/orgs","repos_url":"https://api.github.com/users/romani/repos","events_url":"https://api.github.com/users/romani/events{/privacy}","received_events_url":"https://api.github.com/users/romani/received_events","type":"User","site_admin":false},"created_at":"2016-03-05T18:16:57Z","updated_at":"2016-03-05T18:16:57Z","body":"I can not aprove that for now, as we are still in moratorium period for new Checks. I accepting new Checks only in sevntu project."}}