Add review bot tool for checkstyle
Review Request #9488 — Created Jan. 16, 2018 and submitted
Checkstyle is a development tool to help developers write
Java code that adheres to a coding standard. It automates
the process of checking Java code.
This makes it ideal for projects that want to enforce a
coding standard.Checkstyle can check many aspects of the source code.
It can find class design problems, method design problems.
It also has the ability to check code layout and formatting
issues.
Added checkstyle as tool and saw that it finds correct "errors".
Description | From | Last Updated | ||
---|---|---|---|---|
Your description needs to be fleshed out a bit. Please see https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea for details. |
david | |||
Some of the older files may have this at the top, but we don't duplicate this in each file anymore. … |
david | |||
I think you meant to write "Review Bot tool" |
david | |||
There may be many worker nodes, which may not all have the same config file present. Can we instead define … |
david | |||
There's an extra > at the end of the line. This should also likely be "Checkstyle configuration file", though if … |
david | |||
If there's some error when executing, will it give us valid XML to parse? Can this raise an exception that … |
david | |||
Can we call this checkstyle_jar_path (or even just checkstyle_path) for consistency with the PMD config value? |
david | |||
pass is unnecessary if there's another statement in the except handler. |
david | |||
Should this be "checkers for java code"? |
david | |||
Please wrap to 80 columns. |
david | |||
Please wrap to 80 columns. |
david | |||
There are no open issues |
- Change Summary:
-
formatting
- Commit:
-
b1667bd1fadadd7d33256a357bb75a8d6f699a16d2300ecdff4c651a63d169313af65a67e77748f1
Checks run (2 succeeded)
-
-
checkstyle has a check for naming convention of java files. It checks if a class uses the same name for the filename. As the reviewbot create a temporary filename it will be an error for each run.
"The name of the outer type and the file do not match."
Is there an option to use a temporary directory with the real filename?
- Change Summary:
-
docs
- Commit:
-
d2300ecdff4c651a63d169313af65a67e77748f16818ba1d7270e4768fdd64ed95b749a1f087ff92
Checks run (2 succeeded)
- Commit:
-
6818ba1d7270e4768fdd64ed95b749a1f087ff92350d227efd5ee10664e02987fde1882a39b35222
Checks run (2 succeeded)
-
-
Your description needs to be fleshed out a bit. Please see https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea for details.
-
Some of the older files may have this at the top, but we don't duplicate this in each file anymore. If your company needs to claim copyright that can go in the COPYING file.
-
-
There may be many worker nodes, which may not all have the same config file present. Can we instead define the configuration XML in the options and write that out to a file while executing?
-
There's an extra > at the end of the line. This should also likely be "Checkstyle configuration file", though if you make the change to have this be the config XML you will want to change the label/help text to match.
-
If there's some error when executing, will it give us valid XML to parse? Can this raise an exception that should be caught?
- Summary:
-
Add tool for checkstyleAdd review bot tool for checkstyle
- Description:
-
+ Checkstyle is a development tool to help developers write
+ Java code that adheres to a coding standard. It automates + the process of checking Java code. + This makes it ideal for projects that want to enforce a + coding standard. + + Checkstyle can check many aspects of the source code.
+ It can find class design problems, method design problems. + It also has the ability to check code layout and formatting + issues. + http://checkstyle.sourceforge.net/
- Commit:
-
350d227efd5ee10664e02987fde1882a39b352222d67a42c3177172e24b99754a6930958f1286dce
Checks run (2 succeeded)
- Commit:
-
2d67a42c3177172e24b99754a6930958f1286dce4092e70d4599281b6c05b4c63368883fa980f404
Checks run (2 succeeded)
- Commit:
-
4092e70d4599281b6c05b4c63368883fa980f4046822714bbd3b4f2ad20870858fb01ebdc72bc760