-
Notifications
You must be signed in to change notification settings - Fork 579
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
CheckstyleBear: use binary checkstyle if it exists #1250
Comments
@jayvdb Can I work on this issue? |
I think solving #1251 will be the first step for it? |
This is a binary version of checkstyle https://sourceforge.net/projects/checkstyle/files/checkstyle/6.15/checkstyle-6.15-bin.zip. But shouldn't we now use MavenRequirement from dependency management to get checkstyle. MavenRequirement will completely solve this issue
|
I don't get it how using a binary version will sort out this problem. Any help on this? |
Once we upgrade dependency_management (Im working on it), we can add a |
Can't we prevent that using is_installed( ) in Maven Requirement? @jayvdb |
coala/coala#3605 is merged, so you can now use |
Hi, I meet a problem when I'm working on #1366 I have no idea how to get the local maven repository path. If we want to run the jar file we need to know the path to it, and I think different OSes have different paths:) |
@gaocegege I was working on some other issues and will resume my work on this from now. Well I there are two possible ways we can fix this imo 😄 |
@Techievena I think For example, if the checkstyle have been installed in ~/.m2, and we specify a directory to install it by mvn, it doesn't solve this issue. |
Path to checkstyle.jar --> |
The bear is currently downloading http://sourceforge.net/projects/checkstyle/files/checkstyle/6.15/checkstyle-6.15-all.jar , even if checkstyle is installed in the system.
Fedora 25 packages checkstyle 7.1.1, and includes a bash script
checkstyle
Ubuntu xenial+ has 6.15, and includes a bash script
checkstyle
. trusty as 5.6.openSUSE has 4.3 and 5.8 available
There is a slight problem with versioning, as the bear provides five preset rulesets. The
sun
andgoogle
rulesets are packaged with checkstyle since at least version 6.2, so the syntax of the ruleset will be correct for the installed version. In addition, Ubuntu trusty package for checkstyle 5.6 and precise does include those rulesets.The other three rulesets are xml files on the internet, and havent been tests against different versions of checkstyle. And when the ruleset uses features not in the installed version of checkstyle, checkstyle fails badly (see #1034).
The text was updated successfully, but these errors were encountered: