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
Overview Section is quite confusing #12228
Comments
Remove the
Like the others, it is the name of the class. Other than that I thought it was explained well what TreeWalker does. ==== Regardless, if you have better ideas to make the documentation clearer, please submit a PR. |
It makes sense to update wording to make it like |
Lets make all mention of it before definition to be a link to https://checkstyle.org/config.html#TreeWalker |
Title of this section should be with space https://checkstyle.org/config.html#AuditListeners as it is not class name. |
Great points mentioned by @romani and @rnveach each. If FileSetChecks and AuditListener refers to a class, Why is the word 'module' mentioned there?
I believe this text should be modified. Talking about TreeWalker, we could mention a little definition of what do we mean by TreeWalker in the overview section only: |
better to not consider them as class in this section (that is why I suggested spaces), as it is type of module. There are special section on this that describe all details. |
@romani What exactly is FileSetChecks then? Are these some kind of modules? If yes, where can I find the path of this module? |
It should be "File Set Checks". It is not a class. |
@romani So Shall I raise a PR to mention "File Set Checks"? |
yes, please raise PR, and we will see how it looks like. you can generate web site by making comment "Github, generate website" in PR |
Sounds good! I'd be raising a PR to fix these minor typos and other I've come across this page. |
Fix was merged |
Problem:
The following link (https://checkstyle.org/config.html#Overview) gives an overview of what exactly is checkstyle. Although if you carefully read it, You'll find that the following lines:
_FileSetChecks - modules that take a set of input files and fire violation messages.
Filters - modules that filter audit events, including messages, for acceptance.
AuditListeners - modules that report accepted events.
Many checks are submodules of the TreeWalker FileSetCheck module. The TreeWalker operates by separately transforming each of the Java source files into an abstract syntax tree and then handing the result over to each of its submodules which in turn have a look at certain aspects of the tree._
Now, when you go through the code base and try to find the modules, you'll find that there are source files that exist but not the modules. For eg, I was unable to find FileSetChecks module and AuditListeners module.
Apart from that, it'd be great if there was a little intro about what do we actually mean by TreeWalker.
Solution:
Enhance the documentation!
The text was updated successfully, but these errors were encountered: