[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Title: Message Title Ulli Hafner updated an issue Jenkins / JENKINS-17287 Provide support for ScalaStyle warnings Change By: Ulli Hafner Labels: maven analysis - plugin core - support 2.0 Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Title: Message Title Ulli Hafner resolved as Fixed Jenkins / JENKINS-17287 Provide support for ScalaStyle warnings Change By: Ulli Hafner Status: Reopened Resolved Resolution: Fixed Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Title: Message Title Ulli Hafner updated JENKINS-17287 Released in 5.0.0-beta2. Jenkins / JENKINS-17287 Provide support for ScalaStyle warnings Change By: Ulli Hafner Status: Fixed but Unreleased Resolved Released As: 5.0.0-beta2 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Jan Goyvaerts created JENKINS-17287 Provide support for ScalaStyle warnings Issue Type: Bug Affects Versions: current Assignee: Ulli Hafner Attachments: merged.xml, scalastyle-output.xml Components: checkstyle Created: 20/Mar/13 10:37 AM Description: ScalaStyle is a tool fulfilling more or less the same role as CheckStyle. But then for the Scala programming language. It seems to piggyback on the format of Checkstyle. An example is provided in this ticket. Those warnings are not picked up by the plugin. Presumably because it is a separate file ? Merging the warnings into checkstyle-result.xml via scripting in a post-build step does not help either. For some reason the scala files are not shown. Maybe it's because ScalaStyle uses warning id unknown to CheckStyle. merged.xml : an example of CheckStyle and ScalaStyle warnings merged into one file. An attempt to sneak in the Scala warnings. Alas, they don't appear. scalastyle-output.xml : an example of the warnings ScalaStyle generates. Project: Jenkins Labels: scala scalastyle Priority: Major Reporter: Jan Goyvaerts This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
SCM/JIRA link daemon commented on JENKINS-17287 Provide support for ScalaStyle warnings Code changed in jenkins User: Ulli Hafner Path: src/test/java/hudson/plugins/checkstyle/parser/CheckStyleParserTest.java src/test/resources/hudson/plugins/checkstyle/parser/scalastyle-output.xml http://jenkins-ci.org/commit/checkstyle-plugin/0c1c01107d4868abde597cb9c880de538b65f725 Log: JENKINS-17287 Added testcase that parses a Scala Style file. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Ulli Hafner commented on JENKINS-17287 Provide support for ScalaStyle warnings Jan, can you please check the console log of your build (there should be some [CHECKSTYLE] messages). I added a unit test that simply parses your file: it worked out of the box! I.e., it should already work in your case. What file pattern did you specify? (Or did you use a maven job type?) This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Jan Goyvaerts commented on JENKINS-17287 Provide support for ScalaStyle warnings It is a maven job indeed. This is what I get on the console: [CHECKSTYLE] Parsing file /home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/target/checkstyle-result.xml [CHECKSTYLE] Successfully parsed file /home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/target/checkstyle-result.xml of module Optimus web application with 4 warnings. [CHECKSTYLE] Computing warning deltas based on reference build #134 ScalaStyle generates scalastyle_output.xml in the same directory as checkstyle-result.xml. Maybe it a matter of precedence ? It surely looks like I'm patching checkstyle-result.xml on time. But maybe that's not the case. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Ulli Hafner commented on JENKINS-17287 Provide support for ScalaStyle warnings Ok, then I understand why it does not work In maven, I read information from the pom to determine the goal and the filename. Can you please attach the corresponding logging output from your maven build, so I can adapt that part of the code (something like checkstyle:checkstyle ...). In the meantime as a workaround: switch to a freestyle project. There you can specify the correct file name. (What still is missing: support for the message texts. Since these are in a different format this needs a new message parser). This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Jan Goyvaerts commented on JENKINS-17287 Provide support for ScalaStyle warnings I'm not exactly sure what you mean - the output of checkstyle:checkstyle is always those three lines, for each module. (it's a multi-module btw) But since you parse the pom for the name of the file, I guess this is what you want ? org.scalastyle scalastyle-maven-plugin 0.2.0 true false true false ${basedir}/src/main/scala ${basedir}/src/test/scala ${scalastyle.config} ${project.basedir}/target/scalastyle-output.xml UTF-8 check This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Ulli Hafner commented on JENKINS-17287 Provide support for ScalaStyle warnings Actually I need the output of your build when you invoke the scalastyle goal: [INFO] [INFO] --- maven-checkstyle-plugin:2.9.1:checkstyle (default-cli) @ checkstyle --- [INFO] [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] [INFO] BUILD SUCCESS [INFO] [INFO] Total time: 19.944s [INFO] Finished at: Wed Mar 20 17:13:10 CET 2013 [INFO] Final Memory: 26M/229M Or is there an example maven project somewhere available that I can use for tests (since I don't have a Scala maven project yet). This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Jan Goyvaerts commented on JENKINS-17287 Provide support for ScalaStyle warnings There you are [INFO] — scalastyle-maven-plugin:0.2.0:check (default-cli) @ web — Processing Configuration for child elements Processing child [configLocation] Processing child [outputFile] Processing child [outputEncoding] Processing child [failOnViolation] Processing child [failOnWarning] Processing child [skip] Processing child [verbose] Processing child [quiet] Processing child [sourceDirectory] Processing child [testSourceDirectory] Processing child [includeTestSourceDirectory] Processing child [buildDirectory] Processing child [baseDirectory] Processing child [inputEncoding] [WARNING] sourceDirectory is not specified or does not exist value=/home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/src/main/scala Starting scalastyle start file /home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/src/test/scala/com/noesis/optimus/web/ScalatestLearningTest.scala warning file=/home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/src/test/scala/com/noesis/optimus/web/ScalatestLearningTest.scala message=Header does not match expected text line=1 warning file=/home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/src/test/scala/com/noesis/optimus/web/ScalatestLearningTest.scala message=Whitespace at end of line line=33 column=20 end file /home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/src/test/scala/com/noesis/optimus/web/ScalatestLearningTest.scala Saving to outputFile=/home/jenkins/.jenkins/jobs/Static_code_analysis/workspace/web/target/scalastyle-output.xml Processed 1 file(s) Found 0 errors Found 2 warnings Finished in 590 ms This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[JIRA] (JENKINS-17287) Provide support for ScalaStyle warnings
Ulli Hafner commented on JENKINS-17287 Provide support for ScalaStyle warnings Ok, thanks! That should be enough to fix that problem in maven jobs... This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.