-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update doc for DescendantToken #7587
Comments
No assignments, just make comment "I am on it" and send PR |
Hi @romani i am new to open source and would like to contribute i am familiar with java but i don't know where to start can you please help me with how to start? |
@romani i have gone through it and i think i can do spellcheck of Identifiers by english dictionary project will be submitting my application through GSOC thanks for your help |
i am working on this issue |
i have attached the file i am passing but getting error "unable to parse configuration stream" |
I did wrong link pasting. Fixed. Here is example how to run CLI https://checkstyle.org/report_issue.html#How_to_report_a_bug.3F |
@romani getting error like this |
@athuma it is very difficult the read screenshots, usually it is much better to share as copy pasted code blocks of output (see our bug report template as an example). |
Reading is ok, but most critical that we can not reuse your config as is to reproduce quickly issue on our side. |
Athu@Atharv MINGW64 ~/Desktop $ cat Switch.java package basic; public class Switch {
} Athu@Atharv MINGW64 ~/Desktop $ cat file.xml
Athu@Atharv MINGW64 ~/Desktop $ java -jar checkstyle-10.8.0-all.jar -c file.xml Switch.java com.puppycrawl.tools.checkstyle.api.CheckstyleException: unable to parse configuration stream - Content is not allowed in prolog.:1:1 |
@athuma, please try to remove content from xml file to see what symbol damage xml parsing. There might be some invisible symbol. I can not spot a problem, so it means we need brute force. |
See example of execution at #2507 |
$ cat Switch.java public class Switch {
} Athu@Atharv MINGW64 ~/Desktop $ cat file.xml
Athu@Atharv MINGW64 ~/Desktop $ java -jar checkstyle-10.8.0-all.jar -c file.xml Switch.java Starting audit...
|
Please send PR |
can i work on this issue |
I want to work on this issue please assign me this task |
@Rishabh7798 , just send a pull request. |
I am on it |
@romani @nrmancuso there are total 17 config check. Do we need add example for each config ? |
Yes |
@romani I think we can make exception and allow different code for each example for this check, to allow user to focus only on what is important |
For this check it is ok to have different java code for all configs |
Fix is merged |
https://checkstyle.org/config_misc.html#DescendantToken
Add example for each existing config to show what code is ok and what code cause violation.
Good example is https://checkstyle.org/config_naming.html#AbstractClassName
please play with module/Check by means of https://checkstyle.org/cmdline.html to understand how it works.
PLEASE READ https://github.com/checkstyle/checkstyle/wiki/Good-practice-on-how-to-update-examples
The text was updated successfully, but these errors were encountered: