Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues in the default config provided on the website #364

Open
straywarrior opened this issue Sep 26, 2021 · 0 comments
Open

Some issues in the default config provided on the website #364

straywarrior opened this issue Sep 26, 2021 · 0 comments

Comments

@straywarrior
Copy link

There are some issues in the default config (http://www.scalastyle.org/scalastyle_config.xml) provided on the website. Since there seems to be no place to discuss the problem about the website, I open the issue here.

The regex rules for class and object name checkers can not work as expected. Instead they should start with ^ and end with $, just as the default values described on the page (http://www.scalastyle.org/rules-1.0.0.html).

 <check level="warning" class="org.scalastyle.scalariform.ClassNamesChecker" enabled="true">
  <parameters>
   <parameter name="regex"><![CDATA[[A-Z][A-Za-z]*]]></parameter>
  </parameters>
 </check>
 <check level="warning" class="org.scalastyle.scalariform.ObjectNamesChecker" enabled="true">
  <parameters>
   <parameter name="regex"><![CDATA[[A-Z][A-Za-z]*]]></parameter>
  </parameters>
 </check>

Hope you can update the config on the website. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant