{"action":"opened","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3761","repository_url":"https://api.github.com/repos/checkstyle/checkstyle","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3761/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3761/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/3761/events","html_url":"https://github.com/checkstyle/checkstyle/issues/3761","id":203464531,"number":3761,"title":"Checkstyle 7.4 does not allow property 'accessModifiers' in module ParameterName","user":{"login":"mhernand40","id":5496127,"avatar_url":"https://avatars.githubusercontent.com/u/5496127?v=3","gravatar_id":"","url":"https://api.github.com/users/mhernand40","html_url":"https://github.com/mhernand40","followers_url":"https://api.github.com/users/mhernand40/followers","following_url":"https://api.github.com/users/mhernand40/following{/other_user}","gists_url":"https://api.github.com/users/mhernand40/gists{/gist_id}","starred_url":"https://api.github.com/users/mhernand40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhernand40/subscriptions","organizations_url":"https://api.github.com/users/mhernand40/orgs","repos_url":"https://api.github.com/users/mhernand40/repos","events_url":"https://api.github.com/users/mhernand40/events{/privacy}","received_events_url":"https://api.github.com/users/mhernand40/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-26T19:25:09Z","updated_at":"2017-01-26T19:25:09Z","closed_at":null,"body":"/var/tmp $ javac Sample.java\r\n\r\n\r\n/var/tmp $ cat Sample.java\r\n```\r\npackage com.example;\r\n\r\npublic class Sample {\r\n}\r\n```\r\n/var/tmp $ cat snippet_from_google_checks.xml\r\n```\r\n<?xml version=\"1.0\"?>\r\n<!DOCTYPE module PUBLIC\r\n    \"-//Puppy Crawl//DTD Check Configuration 1.3//EN\"\r\n    \"http://www.puppycrawl.com/dtds/configuration_1_3.dtd\">\r\n\r\n<!--\r\n    Checkstyle configuration that checks the Google coding conventions from Google Java Style\r\n    that can be found at https://google.github.io/styleguide/javaguide.html.\r\n\r\n    Checkstyle is very configurable. Be sure to read the documentation at\r\n    http://checkstyle.sf.net (or in your downloaded distribution).\r\n\r\n    To completely disable a check, just comment it out or delete it from the file.\r\n\r\n    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.\r\n -->\r\n\r\n<module name = \"Checker\">\r\n    <property name=\"charset\" value=\"UTF-8\"/>\r\n\r\n    <property name=\"severity\" value=\"warning\"/>\r\n\r\n    <property name=\"fileExtensions\" value=\"java, properties, xml\"/>\r\n    <!-- Checks for whitespace                               -->\r\n    <!-- See http://checkstyle.sf.net/config_whitespace.html -->\r\n    <module name=\"FileTabCharacter\">\r\n        <property name=\"eachLine\" value=\"true\"/>\r\n    </module>\r\n\r\n    <module name=\"TreeWalker\">\r\n        <!-- other Google Check rules omitted for brevity -->\r\n        <module name=\"ParameterName\">\r\n            <property name=\"id\" value=\"ParameterNameNonPublic\"/>\r\n            <property name=\"format\" value=\"^[a-z]([a-z0-9][a-zA-Z0-9]*)?$\"/>\r\n            <property name=\"accessModifiers\" value=\"protected, package, private\"/>\r\n            <message key=\"name.invalidPattern\"\r\n                value=\"Parameter name ''{0}'' must match pattern ''{1}''.\"/>\r\n        </module>\r\n        <module name=\"ParameterName\">\r\n            <property name=\"id\" value=\"ParameterNamePublic\"/>\r\n            <property name=\"format\" value=\"^[a-z][a-z0-9][a-zA-Z0-9]*$\"/>\r\n            <property name=\"accessModifiers\" value=\"public\"/>\r\n            <message key=\"name.invalidPattern\"\r\n                value=\"Parameter name ''{0}'' must match pattern ''{1}''.\"/>\r\n        </module>\r\n        <!-- other Google Check rules omitted for brevity -->\r\n    </module>\r\n</module>\r\n```\r\n\r\n/var/tmp $ java -jar checkstyle-7.4-all.jar -c snippet_from_google_checks.xml Sample.java\r\n```\r\ncom.puppycrawl.tools.checkstyle.api.CheckstyleException: cannot initialize module TreeWalker - Property 'accessModifiers' in module ParameterName does not exist, please check the documentation\r\n\tat com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:449)\r\n\tat com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:165)\r\n\tat com.puppycrawl.tools.checkstyle.Main.runCheckstyle(Main.java:421)\r\n\tat com.puppycrawl.tools.checkstyle.Main.runCli(Main.java:359)\r\n\tat com.puppycrawl.tools.checkstyle.Main.main(Main.java:174)\r\nCaused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'accessModifiers' in module ParameterName does not exist, please check the documentation\r\n\tat com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:192)\r\n\tat com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:158)\r\n\tat com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:159)\r\n\tat com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:165)\r\n\tat com.puppycrawl.tools.checkstyle.Checker.setupChild(Checker.java:444)\r\n\t... 4 more\r\nCheckstyle ends with 1 errors.\r\n```\r\n\r\n---------------\r\n\r\nDescribe what you expect in detail.\r\n\r\n--------------\r\n\r\nCheckStyle runs without any issues.\r\n"}}
{"actor":{"display_login":"mhernand40"}}