Skip to content
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

check #3 #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gradle/2.3/taskArtifacts/cache.properties.lock
Binary file not shown.
Binary file modified .gradle/2.3/taskArtifacts/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/2.3/taskArtifacts/fileSnapshots.bin
Binary file not shown.
Binary file modified .gradle/2.3/taskArtifacts/outputFileStates.bin
Binary file not shown.
Binary file modified .gradle/2.3/taskArtifacts/taskArtifacts.bin
Binary file not shown.
Binary file modified build/classes/main/main/java/HelloWorld.class
Binary file not shown.
Binary file modified build/classes/test/test/java/HelloWorldTest.class
Binary file not shown.
Binary file added build/libs/AutomationTest.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions build/reports/checkstyle/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="5.7">
<file name="C:\Users\lamd\Desktop\AutomationTest\src\main\java\HelloWorld.java">
<error line="3" severity="warning" message="Missing a Javadoc comment." source="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"/>
<error line="5" column="1" severity="warning" message="File contains tab characters (this is the first instance)." source="com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck"/>
</file>
</checkstyle>
8 changes: 8 additions & 0 deletions build/reports/checkstyle/test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="5.7">
<file name="C:\Users\lamd\Desktop\AutomationTest\src\test\java\HelloWorldTest.java">
<error line="10" severity="warning" message="Wrong order for &apos;org.junit.Test&apos; import." source="com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck"/>
<error line="12" severity="warning" message="Missing a Javadoc comment." source="com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTypeCheck"/>
<error line="14" column="1" severity="warning" message="File contains tab characters (this is the first instance)." source="com.puppycrawl.tools.checkstyle.checks.whitespace.FileTabCharacterCheck"/>
</file>
</checkstyle>
35 changes: 30 additions & 5 deletions build/reports/tests/classes/test.java.HelloWorldTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1>Class test.java.HelloWorldTest</h1>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<div class="counter">6</div>
<p>tests</p>
</div>
</td>
Expand All @@ -41,7 +41,7 @@ <h1>Class test.java.HelloWorldTest</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.002s</div>
<div class="counter">0.001s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -75,8 +75,33 @@ <h2>Tests</h2>
</tr>
</thead>
<tr>
<td class="success">test</td>
<td>0.002s</td>
<td class="success">testCombineString</td>
<td>0s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testDistance</td>
<td>0s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testDivisibleByTwo</td>
<td>0s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testHello</td>
<td>0s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testSum</td>
<td>0s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">testSummation</td>
<td>0.001s</td>
<td class="success">passed</td>
</tr>
</table>
Expand All @@ -89,7 +114,7 @@ <h2>Tests</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 1:05:54 AM</p>
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 2:39:13 PM</p>
</div>
</div>
</body>
Expand Down
14 changes: 7 additions & 7 deletions build/reports/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Test Summary</h1>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<div class="counter">6</div>
<p>tests</p>
</div>
</td>
Expand All @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.002s</div>
<div class="counter">0.001s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -82,10 +82,10 @@ <h2>Packages</h2>
<td class="success">
<a href="packages/test.java.html">test.java</a>
</td>
<td>1</td>
<td>6</td>
<td>0</td>
<td>0</td>
<td>0.002s</td>
<td>0.001s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -108,10 +108,10 @@ <h2>Classes</h2>
<tr>
<td class="success"/>
<a href="classes/test.java.HelloWorldTest.html">test.java.HelloWorldTest</a>
<td>1</td>
<td>6</td>
<td>0</td>
<td>0</td>
<td>0.002s</td>
<td>0.001s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -125,7 +125,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 1:05:54 AM</p>
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 2:39:13 PM</p>
</div>
</div>
</body>
Expand Down
10 changes: 5 additions & 5 deletions build/reports/tests/packages/test.java.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>Package test.java</h1>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<div class="counter">6</div>
<p>tests</p>
</div>
</td>
Expand All @@ -40,7 +40,7 @@ <h1>Package test.java</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.002s</div>
<div class="counter">0.001s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -80,10 +80,10 @@ <h2>Classes</h2>
<td class="success">
<a href="../classes/test.java.HelloWorldTest.html">HelloWorldTest</a>
</td>
<td>1</td>
<td>6</td>
<td>0</td>
<td>0</td>
<td>0.002s</td>
<td>0.001s</td>
<td class="success">100%</td>
</tr>
</table>
Expand All @@ -96,7 +96,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 1:05:54 AM</p>
<a href="http://www.gradle.org">Gradle 2.3</a> at Mar 13, 2015 2:39:13 PM</p>
</div>
</div>
</body>
Expand Down
9 changes: 7 additions & 2 deletions build/test-results/TEST-test.java.HelloWorldTest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="test.java.HelloWorldTest" tests="1" skipped="0" failures="0" errors="0" timestamp="2015-03-13T05:05:54" hostname="LAMD-W540" time="0.002">
<testsuite name="test.java.HelloWorldTest" tests="6" skipped="0" failures="0" errors="0" timestamp="2015-03-13T18:39:13" hostname="LAMD-W540" time="0.003">
<properties/>
<testcase name="test" classname="test.java.HelloWorldTest" time="0.002"/>
<testcase name="testSummation" classname="test.java.HelloWorldTest" time="0.001"/>
<testcase name="testSum" classname="test.java.HelloWorldTest" time="0.0"/>
<testcase name="testDivisibleByTwo" classname="test.java.HelloWorldTest" time="0.0"/>
<testcase name="testHello" classname="test.java.HelloWorldTest" time="0.0"/>
<testcase name="testCombineString" classname="test.java.HelloWorldTest" time="0.0"/>
<testcase name="testDistance" classname="test.java.HelloWorldTest" time="0.0"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
Binary file modified build/test-results/binary/test/results.bin
Binary file not shown.
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

45 changes: 10 additions & 35 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,21 @@ page at http://checkstyle.sourceforge.net/config.html -->

<module name="Checker">
<module name="FileTabCharacter">
<property name="severity" value="warning"/>
<!-- Checks that there are no tab characters in the file.
-->
</module>

<module name="NewlineAtEndOfFile"/>

<!-- All Java AST specific tests live under TreeWalker module. -->
<module name="TreeWalker">

<!--

IMPORT CHECKS

-->

<module name="RedundantImport">
<!-- Checks for redundant import statements. -->
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>

<module name="ImportOrder">
Expand All @@ -40,9 +37,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
</module>

<!--

JAVADOC CHECKS

-->

<!-- Checks for Javadoc comments. -->
Expand All @@ -60,17 +55,15 @@ page at http://checkstyle.sourceforge.net/config.html -->

<module name="JavadocType">
<property name="scope" value="protected"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>

<module name="JavadocStyle">
<property name="severity" value="warning"/>
</module>

<!--

NAMING CHECKS

-->

<!-- Item 38 - Adhere to generally accepted naming conventions -->
Expand Down Expand Up @@ -156,15 +149,13 @@ page at http://checkstyle.sourceforge.net/config.html -->


<!--

LENGTH and CODING CHECKS

-->

<module name="LineLength">
<!-- Checks if a line is too long. -->
<property name="max" value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.max}" default="200"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>

<!--
The default ignore pattern exempts the following elements:
Expand Down Expand Up @@ -211,25 +202,11 @@ page at http://checkstyle.sourceforge.net/config.html -->

<module name="UpperEll">
<!-- Checks that long constants are defined with an upper ell.-->
<property name="severity" value="error"/>
</module>

<module name="FallThrough">
<!-- Warn about falling through to the next case statement. Similar to
javac -Xlint:fallthrough, but the check is suppressed if a single-line comment
on the last non-blank line preceding the fallen-into case contains 'fall through' (or
some other variants which we don't publicized to promote consistency).
-->
<property name="reliefPattern"
value="fall through|Fall through|fallthru|Fallthru|falls through|Falls through|fallthrough|Fallthrough|No break|NO break|no break|continue on"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>



<!--

MODIFIERS CHECKS

-->

<module name="ModifierOrder">
Expand All @@ -242,9 +219,7 @@ page at http://checkstyle.sourceforge.net/config.html -->


<!--

WHITESPACE CHECKS

-->

<module name="WhitespaceAround">
Expand All @@ -259,7 +234,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS,
MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION,
SL, SL_ASSIGN, SR_ASSIGN, STAR, STAR_ASSIGN"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>

<module name="WhitespaceAfter">
Expand All @@ -276,7 +251,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
<property name="tokens" value="BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS,
UNARY_PLUS"/>
<property name="allowLineBreaks" value="true"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>

<module name="NoWhitespaceBefore">
Expand All @@ -285,7 +260,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
-->
<property name="tokens" value="SEMI, DOT, POST_DEC, POST_INC"/>
<property name="allowLineBreaks" value="true"/>
<property name="severity" value="error"/>
<property name="severity" value="warning"/>
</module>

<module name="ParenPad">
Expand All @@ -296,4 +271,4 @@ page at http://checkstyle.sourceforge.net/config.html -->
</module>

</module>
</module>
</module>
Loading