Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 109466d

Browse files
committed
typo
1 parent 45b6bb5 commit 109466d

3 files changed

Lines changed: 159 additions & 53 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Macaca test sample for Java
1212
[travis-url]: https://travis-ci.org/macaca-sample/sample-java
1313

1414
## more docs 参考文章
15+
1516
[https://testerhome.com/junhe](https://testerhome.com/junhe)
1617

1718
## Test
@@ -28,7 +29,7 @@ install mvn dependencies:
2829
$ mvn -s settings.xml clean install -Dmaven.test.skip=true
2930
```
3031

31-
run test
32+
run test
3233

3334
``` bash
3435
$ mvn -s settings.xml test -Dtest=macaca.client.AndroidSampleTest

checkstyle.xml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
3+
4+
<module name="Checker">
5+
<module name="NewlineAtEndOfFile"/>
6+
7+
<module name="FileLength">
8+
<property name="max" value="1500"/>
9+
</module>
10+
11+
<module name="TreeWalker">
12+
<module name="AvoidStarImport">
13+
<property name="excludes" value="java.io,java.net,java.lang.Math"/>
14+
<property name="allowClassImports" value="false"/>
15+
<property name="allowStaticMemberImports" value="true"/>
16+
</module>
17+
<module name="IllegalImport"/>
18+
<module name="RedundantImport"/>
19+
<module name="UnusedImports" />
20+
21+
<module name="LocalFinalVariableName" />
22+
<module name="LocalVariableName" />
23+
<module name="PackageName">
24+
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$" />
25+
</module>
26+
<module name="StaticVariableName" />
27+
<module name="TypeName">
28+
<property name="severity" value="warning"/>
29+
</module>
30+
<module name="MemberName" />
31+
<module name="MethodName" />
32+
<module name="ParameterName " />
33+
<module name="ConstantName" />
34+
35+
<module name="ArrayTypeStyle"/>
36+
<module name="UpperEll"/>
37+
38+
<module name="LineLength">
39+
<property name="max" value="120" />
40+
</module>
41+
<module name="MethodLength">
42+
<property name="tokens" value="METHOD_DEF" />
43+
<property name="max" value="50" />
44+
</module>
45+
<module name="ParameterNumber">
46+
<property name="max" value="5" />
47+
<property name="ignoreOverriddenMethods" value="true"/>
48+
<property name="tokens" value="METHOD_DEF" />
49+
</module>
50+
51+
<module name="MethodParamPad" />
52+
<module name="TypecastParenPad" />
53+
<module name="NoWhitespaceAfter"/>
54+
<module name="NoWhitespaceBefore"/>
55+
<module name="OperatorWrap"/>
56+
<module name="ParenPad"/>
57+
<module name="WhitespaceAfter"/>
58+
<module name="WhitespaceAround"/>
59+
60+
<module name="ModifierOrder"/>
61+
<module name="RedundantModifier"/>
62+
63+
<module name="AvoidNestedBlocks"/>
64+
<module name="EmptyBlock"/>
65+
<module name="LeftCurly"/>
66+
<module name="NeedBraces"/>
67+
<module name="RightCurly"/>
68+
69+
<module name="EmptyStatement"/>
70+
<module name="EqualsHashCode"/>
71+
<module name="HiddenField">
72+
<property name="tokens" value="VARIABLE_DEF"/>
73+
</module>
74+
<module name="IllegalInstantiation"/>
75+
<module name="InnerAssignment"/>
76+
<module name="MagicNumber">
77+
<property name="ignoreNumbers" value="0, 1"/>
78+
<property name="ignoreAnnotation" value="true"/>
79+
</module>
80+
<module name="MissingSwitchDefault"/>
81+
<module name="SimplifyBooleanExpression"/>
82+
<module name="SimplifyBooleanReturn"/>
83+
</module>
84+
</module>

pom.xml

Lines changed: 73 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,75 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>macaca.webdriver.client</groupId>
5-
<artifactId>macacatestsample</artifactId>
6-
<packaging>jar</packaging>
7-
<version>1.0.1</version>
8-
<name>macacatestsample</name>
9-
<url>http://maven.apache.org</url>
10-
<build>
11-
<plugins>
12-
<plugin>
13-
<groupId>org.apache.maven.plugins</groupId>
14-
<artifactId>maven-compiler-plugin</artifactId>
15-
<configuration>
16-
<source>1.5</source>
17-
<target>1.5</target>
18-
</configuration>
19-
</plugin>
20-
</plugins>
21-
</build>
22-
<dependencies>
23-
<dependency>
24-
<groupId>macaca.webdriver.client</groupId>
25-
<artifactId>macacaclient</artifactId>
26-
<version>2.0.13</version>
27-
</dependency>
28-
<dependency>
29-
<groupId>com.alibaba</groupId>
30-
<artifactId>fastjson</artifactId>
31-
<version>1.2.15</version>
32-
</dependency>
33-
<dependency>
34-
<groupId>org.apache.httpcomponents</groupId>
35-
<artifactId>httpclient</artifactId>
36-
<version>4.5.2</version>
37-
</dependency>
38-
<dependency>
39-
<groupId>log4j</groupId>
40-
<artifactId>log4j</artifactId>
41-
<version>1.2.17</version>
42-
</dependency>
43-
<dependency>
44-
<groupId>junit</groupId>
45-
<artifactId>junit</artifactId>
46-
<version>4.12</version>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.hamcrest</groupId>
50-
<artifactId>hamcrest-library</artifactId>
51-
<version>1.2</version>
52-
</dependency>
53-
</dependencies>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>macaca.webdriver.client</groupId>
5+
<artifactId>macacatestsample</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.0.1</version>
8+
<name>macacatestsample</name>
9+
<url>http://maven.apache.org</url>
10+
<build>
11+
<plugins>
12+
<plugin>
13+
<groupId>org.apache.maven.plugins</groupId>
14+
<artifactId>maven-compiler-plugin</artifactId>
15+
<configuration>
16+
<source>1.5</source>
17+
<target>1.5</target>
18+
</configuration>
19+
</plugin>
20+
<plugin>
21+
<groupId>org.apache.maven.plugins</groupId>
22+
<artifactId>maven-checkstyle-plugin</artifactId>
23+
<version>2.17</version>
24+
<executions>
25+
<execution>
26+
<id>validate</id>
27+
<phase>validate</phase>
28+
<configuration>
29+
<configLocation>checkstyle.xml</configLocation>
30+
<encoding>UTF-8</encoding>
31+
<consoleOutput>true</consoleOutput>
32+
<failsOnError>true</failsOnError>
33+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
34+
</configuration>
35+
<goals>
36+
<goal>check</goal>
37+
</goals>
38+
</execution>
39+
</executions>
40+
</plugin>
41+
</plugins>
42+
</build>
43+
<dependencies>
44+
<dependency>
45+
<groupId>macaca.webdriver.client</groupId>
46+
<artifactId>macacaclient</artifactId>
47+
<version>2.0.13</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>com.alibaba</groupId>
51+
<artifactId>fastjson</artifactId>
52+
<version>1.2.15</version>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.apache.httpcomponents</groupId>
56+
<artifactId>httpclient</artifactId>
57+
<version>4.5.2</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>log4j</groupId>
61+
<artifactId>log4j</artifactId>
62+
<version>1.2.17</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>junit</groupId>
66+
<artifactId>junit</artifactId>
67+
<version>4.12</version>
68+
</dependency>
69+
<dependency>
70+
<groupId>org.hamcrest</groupId>
71+
<artifactId>hamcrest-library</artifactId>
72+
<version>1.2</version>
73+
</dependency>
74+
</dependencies>
5475
</project>

0 commit comments

Comments
 (0)