-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 Translation #7593
Comments
you have to update examples inside class file TranslationCheck and corresponding xdoc documentation config_misc.xml you can find similar resolved issues here, you should do the same but for |
@harshitmalik03 Let me explain issue more precisely. The main task of this issue is to provide good examples for configurations in example section. So that, every user could understand from site, where violation will occur. Please check similar issues with link I provided before We can defined set of rules for commit messages and PR description, you can find them here If you noticed, there are several continuous integration tools (TeamCity, Travis and etc) that checks code, please make sure they are all passed. You can find this automatic check section at the bottom of the your pull request page |
Please read https://github.com/checkstyle/checkstyle/wiki/Good-practice-on-how-to-update-examples And it has example of how update should be done #7634 but you need to do this for Translation Check, similar update in xdoc file and javadoc of Check class. |
How to run checkstyleLets start from the beginning, checkstyle can be assembled to jar file (as described here), To be executed, jar requires configuration file (you can use as example this default one, but better to create simplified version by yourself) and input file (file, against which you want to perform check) The following command will perform validation of your Scope of this issueYou can find different examples of
This configuration is not followed by example. As Checkstyle developer it is easy to understand what it does, but from ordinary user perspective, it is not so clear. We need to simplify users' lives by providing real example codes. Almost every config section should be followed by corresponding example code, such approach can be observed from
What you need to do:
I hoped my explanations were clear :) |
issue is not resolved. |
Is anyone still working on it ? |
@coderdeadpool , we do not assign issues, just make comment "I am on it" and stat working on it |
I want to work on this issue please assign me this task |
@romani Do we have to add seperate examples for each one of them, And same for es, fr and de here: And should a violation be added like this ?
|
This check requires at least two files as input. To show other properties in action we will need different input files. It is ok for this issue. Comment in properties files should be |
fix is merged. |
Hello! I am aware that this issue is closed. I just have questions about the developing process. After I modified xdoc, I tried Thanks in advance! |
@zwwang98 if your xdoc and javadoc do not sync properly, after doing |
Thank you @coderdeadpool , that is really helpful! |
https://checkstyle.org/config_misc.html#Translation
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: