Skip to content

Commit 97b38cc

Browse files
author
Shelley Jain
committed
Testing Lab stencil
1 parent 34c6eef commit 97b38cc

File tree

17 files changed

+85032
-2
lines changed

17 files changed

+85032
-2
lines changed

README

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Boggle
2+
3+
Boggle can be run on the command line by using ./run with the following arguments.
4+
5+
--generate - prints out a random board, then exits
6+
--gui [--port <number>] - launches gui at the specified port number or at default port 4567
7+
--solve <board string> - prints all legal words for the given board, then exits
8+
--score <board string> - plays boggle using the given board
9+

README.md

-2
This file was deleted.

config/cs32_checks.xml

+197
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE module PUBLIC
3+
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
4+
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
5+
6+
<!--
7+
8+
Checkstyle configuration that checks the coding conventions from:
9+
10+
- the Java Language Specification at
11+
http://java.sun.com/docs/books/jls/second_edition/html/index.html
12+
13+
- the Sun Code Conventions at http://java.sun.com/docs/codeconv/
14+
15+
- the Javadoc guidelines at
16+
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
17+
18+
- the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
19+
20+
- some best practices
21+
22+
- changes for cs32 are marked CS32
23+
24+
Checkstyle is very configurable. Be sure to read the documentation at
25+
http://checkstyle.sf.net (or in your downloaded distribution).
26+
27+
Most Checks are configurable, be sure to consult the documentation.
28+
29+
To completely disable a check, just comment it out or delete it from the file.
30+
31+
Finally, it is worth reading the documentation.
32+
33+
-->
34+
35+
<module name="Checker">
36+
<!--
37+
If you set the basedir property below, then all reported file
38+
names will be relative to the specified directory. See
39+
http://checkstyle.sourceforge.net/5.x/config.html#Checker
40+
41+
<property name="basedir" value="${basedir}"/>
42+
-->
43+
44+
<!-- Checks that a package-info.java file exists for each package. -->
45+
<!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
46+
<!-- <module name="JavadocPackage"/> -->
47+
48+
<!-- Checks whether files end with a new line. -->
49+
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
50+
<module name="NewlineAtEndOfFile"/>
51+
52+
<!-- Checks that property files contain the same keys. -->
53+
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
54+
<module name="Translation"/>
55+
56+
<!-- Checks for Size Violations. -->
57+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
58+
<module name="FileLength"/>
59+
60+
<!-- Checks for whitespace -->
61+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
62+
<module name="FileTabCharacter"/>
63+
64+
<!-- Miscellaneous other checks. -->
65+
<!-- See http://checkstyle.sf.net/config_misc.html -->
66+
<module name="RegexpSingleline">
67+
<property name="format" value="\s+$"/>
68+
<property name="minimum" value="0"/>
69+
<property name="maximum" value="0"/>
70+
<property name="message" value="Line has trailing spaces."/>
71+
</module>
72+
73+
<!-- Checks for Headers -->
74+
<!-- See http://checkstyle.sf.net/config_header.html -->
75+
<!-- <module name="Header"> -->
76+
<!-- <property name="headerFile" value="${checkstyle.header.file}"/> -->
77+
<!-- <property name="fileExtensions" value="java"/> -->
78+
<!-- </module> -->
79+
80+
<module name="TreeWalker">
81+
82+
<!-- Checks for Javadoc comments. -->
83+
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
84+
<module name="JavadocMethod">
85+
<property name="scope" value="public"/>
86+
</module>
87+
<module name="JavadocType"/>
88+
<!-- <module name="JavadocVariable"/> -->
89+
<module name="JavadocStyle"/>
90+
91+
92+
<!-- Checks for Naming Conventions. -->
93+
<!-- See http://checkstyle.sf.net/config_naming.html -->
94+
<module name="ConstantName"/>
95+
<module name="LocalFinalVariableName"/>
96+
<module name="LocalVariableName"/>
97+
<module name="MemberName"/>
98+
<module name="MethodName"/>
99+
<module name="PackageName"/>
100+
<module name="ParameterName"/>
101+
<module name="StaticVariableName"/>
102+
<module name="TypeName"/>
103+
104+
105+
<!-- Checks for imports -->
106+
<!-- See http://checkstyle.sf.net/config_import.html -->
107+
<module name="AvoidStarImport"/>
108+
<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
109+
<module name="RedundantImport"/>
110+
<module name="UnusedImports"/>
111+
<!-- <module name="ImportOrder">
112+
<property name="groups" value="/^javax?\./,org,com"/>
113+
<property name="separated" value="true"/>
114+
<property name="option" value="bottom"/>
115+
</module> -->
116+
117+
118+
<!-- Checks for Size Violations. -->
119+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
120+
<module name="LineLength"/>
121+
<module name="MethodLength"/>
122+
<module name="ParameterNumber"/>
123+
124+
125+
<!-- Checks for whitespace -->
126+
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
127+
<module name="EmptyForIteratorPad"/>
128+
<module name="GenericWhitespace"/>
129+
<module name="MethodParamPad"/>
130+
<module name="NoWhitespaceAfter"/>
131+
<module name="NoWhitespaceBefore"/>
132+
<module name="OperatorWrap"/>
133+
<module name="ParenPad"/>
134+
<module name="TypecastParenPad"/>
135+
<module name="WhitespaceAfter"/>
136+
<module name="WhitespaceAround"/>
137+
138+
<!-- not available? <module name="SeparatorWrap"/> -->
139+
140+
141+
<!-- Modifier Checks -->
142+
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
143+
<module name="ModifierOrder"/>
144+
<module name="RedundantModifier"/>
145+
146+
147+
<!-- Checks for blocks. You know, those {}'s -->
148+
<!-- See http://checkstyle.sf.net/config_blocks.html -->
149+
<module name="AvoidNestedBlocks"/>
150+
<module name="EmptyBlock"/>
151+
<module name="LeftCurly"/>
152+
<module name="NeedBraces"/>
153+
<module name="RightCurly"/>
154+
155+
156+
<!-- Checks for common coding problems -->
157+
<!-- See http://checkstyle.sf.net/config_coding.html -->
158+
<!-- CS32 <module name="AvoidInlineConditionals"/> -->
159+
<module name="EmptyStatement"/>
160+
<module name="EqualsHashCode"/>
161+
<module name="HiddenField">
162+
<property name="ignoreConstructorParameter" value="true"/>
163+
<property name="ignoreSetter" value="true"/>
164+
</module>
165+
<module name="IllegalInstantiation"/>
166+
<module name="InnerAssignment"/>
167+
<module name="MagicNumber">
168+
<property name="ignoreNumbers" value="-1,0,1,2,3,4,5,6,200,400,401,403,404,405,500,501"/>
169+
</module>
170+
<module name="MissingSwitchDefault"/>
171+
<module name="SimplifyBooleanExpression"/>
172+
<module name="SimplifyBooleanReturn"/>
173+
174+
<!-- Checks for class design -->
175+
<!-- See http://checkstyle.sf.net/config_design.html -->
176+
<!-- CS32 <module name="DesignForExtension"/> -->
177+
<module name="FinalClass"/>
178+
<module name="HideUtilityClassConstructor"/>
179+
<module name="InterfaceIsType"/>
180+
<module name="VisibilityModifier"/>
181+
182+
183+
<!-- Miscellaneous other checks. -->
184+
<!-- See http://checkstyle.sf.net/config_misc.html -->
185+
<module name="ArrayTypeStyle"/>
186+
<!-- <module name="FinalParameters"/> -->
187+
<module name="TodoComment"/>
188+
<module name="UpperEll"/>
189+
<module name="Indentation">
190+
<property name="basicOffset" value="2"/>
191+
<property name="caseIndent" value="2"/>
192+
<property name="throwsIndent" value="2"/>
193+
</module>
194+
195+
</module>
196+
197+
</module>

pom.xml

+152
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4+
http://maven.apache.org/maven-v4_0_0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
<groupId>edu.brown.cs</groupId>
8+
<artifactId>boggle</artifactId>
9+
<packaging>jar</packaging>
10+
<version>1.0</version>
11+
12+
<properties>
13+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
</properties>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>net.sf.jopt-simple</groupId>
19+
<artifactId>jopt-simple</artifactId>
20+
<version>4.8</version>
21+
</dependency>
22+
23+
<dependency>
24+
<groupId>junit</groupId>
25+
<artifactId>junit</artifactId>
26+
<version>4.12</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.hamcrest</groupId>
30+
<artifactId>hamcrest-all</artifactId>
31+
<version>1.3</version>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>org.slf4j</groupId>
36+
<artifactId>slf4j-api</artifactId>
37+
<version>1.7.22</version>
38+
</dependency>
39+
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-jdk14</artifactId>
43+
<version>1.7.22</version>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>com.google.guava</groupId>
48+
<artifactId>guava</artifactId>
49+
<version>21.0</version>
50+
</dependency>
51+
52+
<dependency>
53+
<groupId>com.google.code.gson</groupId>
54+
<artifactId>gson</artifactId>
55+
<version>2.8.0</version>
56+
</dependency>
57+
58+
<dependency>
59+
<groupId>com.sparkjava</groupId>
60+
<artifactId>spark-core</artifactId>
61+
<version>[2.7.2,)</version>
62+
</dependency>
63+
64+
<dependency>
65+
<groupId>com.sparkjava</groupId>
66+
<artifactId>spark-template-freemarker</artifactId>
67+
<version>2.3</version>
68+
</dependency>
69+
70+
<dependency>
71+
<groupId>org.xerial</groupId>
72+
<artifactId>sqlite-jdbc</artifactId>
73+
<version>3.16.1</version>
74+
</dependency>
75+
</dependencies>
76+
77+
<build>
78+
<plugins>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-compiler-plugin</artifactId>
82+
<version>3.2</version>
83+
<configuration>
84+
<source>1.8</source>
85+
<target>1.8</target>
86+
<compilerArgument>-Xlint:all</compilerArgument>
87+
<showWarnings>true</showWarnings>
88+
<showDeprecation>true</showDeprecation>
89+
</configuration>
90+
</plugin>
91+
</plugins>
92+
</build>
93+
94+
<reporting>
95+
<plugins>
96+
<plugin>
97+
<artifactId>maven-project-info-reports-plugin</artifactId>
98+
<version>2.7</version>
99+
<configuration>
100+
<!-- Until it uses BCEL 6.0, details breaks on Java 8 -->
101+
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
102+
<!-- jetty related locations can't be found, just skip. -->
103+
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
104+
</configuration>
105+
</plugin>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-jxr-plugin</artifactId>
109+
<version>2.5</version>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-javadoc-plugin</artifactId>
114+
<version>2.10.3</version>
115+
<reportSets>
116+
<reportSet>
117+
<reports>
118+
<report>javadoc</report>
119+
</reports>
120+
</reportSet>
121+
</reportSets>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.apache.maven.plugins</groupId>
125+
<artifactId>maven-checkstyle-plugin</artifactId>
126+
<version>2.17</version>
127+
<configuration>
128+
<configLocation>config/cs32_checks.xml</configLocation>
129+
</configuration>
130+
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-pmd-plugin</artifactId>
134+
<version>3.6</version>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.codehaus.mojo</groupId>
138+
<artifactId>findbugs-maven-plugin</artifactId>
139+
<version>3.0.3</version>
140+
<configuration>
141+
<!--
142+
Enable analysis which takes more memory but finds more bugs.
143+
If you run out of memory, change the value to 'Low'.
144+
-->
145+
<effort>Max</effort>
146+
<!-- Report all bugs (other values are medium and max) -->
147+
<threshold>Low</threshold>
148+
</configuration>
149+
</plugin>
150+
</plugins>
151+
</reporting>
152+
</project>

0 commit comments

Comments
 (0)