Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
alshabib
2014-09-02 19:00:48 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
f1c23575759d7756961fddd9c49a3eb492d7a04d
f1c23575
2 parents
6171f180
50a76dd4
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
149 additions
and
0 deletions
of/drivers/pom.xml
of/drivers/src/main/java/org/onlab/onos/of/drivers/DeleteMe.java
of/pom.xml
pom.xml
tools/build/conf/src/main/resources/onos/pmd.xml
of/drivers/pom.xml
0 → 100644
View file @
f1c2357
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
onos-of
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<artifactId>
onos-of-drivers
</artifactId>
<packaging>
bundle
</packaging>
<description>
ONOS OpenFlow switch drivers
&
factory
</description>
<dependencies>
<dependency>
<groupId>
org.onlab.onos
</groupId>
<artifactId>
onos-of-api
</artifactId>
</dependency>
</dependencies>
<build>
<!--
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
</plugin>
</plugins>
-->
</build>
</project>
of/drivers/src/main/java/org/onlab/onos/of/drivers/DeleteMe.java
0 → 100644
View file @
f1c2357
package
org
.
onlab
.
onos
.
of
.
drivers
;
/**
* Created by tom on 9/2/14.
*/
public
class
DeleteMe
{
}
of/pom.xml
View file @
f1c2357
...
...
@@ -19,6 +19,7 @@
<modules>
<module>
api
</module>
<module>
ctl
</module>
<module>
drivers
</module>
</modules>
<build>
...
...
pom.xml
View file @
f1c2357
...
...
@@ -256,6 +256,32 @@
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-pmd-plugin
</artifactId>
<version>
3.2
</version>
<configuration>
<excludes>
<exclude>
**/datastore/serializers/**
</exclude>
<exclude>
**/edu/stanford/**
</exclude>
<exclude>
**/net/floodlightcontroller/**
</exclude>
</excludes>
<rulesets>
<ruleset>
onos/pmd.xml
</ruleset>
</rulesets>
</configuration>
<executions>
<execution>
<id>
validate-pmd
</id>
<phase>
verify
</phase>
<goals>
<!-- Uncomment this goal to make the build fail on pmd errors -->
<!--<goal>check</goal>-->
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.7.1.201405082137
</version>
...
...
@@ -332,6 +358,23 @@
<configLocation>
onos/checkstyle.xml
</configLocation>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-pmd-plugin
</artifactId>
<version>
3.2
</version>
<configuration>
<excludes>
<exclude>
**/datastore/serializers/**
</exclude>
<exclude>
**/edu/stanford/**
</exclude>
<exclude>
**/net/floodlightcontroller/**
</exclude>
</excludes>
<rulesets>
<ruleset>
onos/pmd.xml
</ruleset>
</rulesets>
</configuration>
</plugin>
</plugins>
</reporting>
...
...
tools/build/conf/src/main/resources/onos/pmd.xml
0 → 100644
View file @
f1c2357
<?xml version="1.0" encoding="UTF-8"?>
<ruleset
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
name=
"ONOS Rules"
xmlns=
"http://pmd.sf.net/ruleset/1.0.0"
xsi:noNamespaceSchemaLocation=
"http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:schemaLocation=
"http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
>
<description>
ONOS PMD rules
</description>
<rule
ref=
"rulesets/java/unnecessary.xml"
>
<exclude
name=
"UselessParentheses"
/>
</rule>
<rule
ref=
"rulesets/java/basic.xml"
>
<exclude
name=
"EmptyCatchBlock"
/>
</rule>
<rule
ref=
"rulesets/java/basic.xml/EmptyCatchBlock"
>
<properties>
<property
name=
"allowCommentedBlocks"
value=
"true"
/>
</properties>
</rule>
<rule
ref=
"rulesets/java/unusedcode.xml"
>
<!-- Explicit public keyword in interface methods is acceptable -->
<exclude
name=
"UnusedModifier"
/>
</rule>
<rule
ref=
"rulesets/java/imports.xml"
/>
<rule
ref=
"rulesets/java/optimizations.xml"
>
<exclude
name=
"LocalVariableCouldBeFinal"
/>
<exclude
name=
"MethodArgumentCouldBeFinal"
/>
<exclude
name=
"AvoidInstantiatingObjectsInLoops"
/>
</rule>
<rule
ref=
"rulesets/java/strings.xml"
>
<exclude
name=
"AvoidDuplicateLiterals"
/>
</rule>
<rule
ref=
"rulesets/java/braces.xml"
/>
<rule
ref=
"rulesets/java/naming.xml"
>
<exclude
name=
"AvoidInstantiatingObjectsInLoops"
/>
<exclude
name=
"ShortClassName"
/>
<exclude
name=
"ShortMethodName"
/>
<exclude
name=
"ShortVariable"
/>
<exclude
name=
"LongVariable"
/>
</rule>
<rule
ref=
"rulesets/java/naming.xml/VariableNamingConventions"
>
<properties>
<!-- ONOS allows the name "log" for static final Loggers -->
<property
name=
"violationSuppressRegex"
value=
".*'log'.*"
/>
</properties>
</rule>
<rule
ref=
"rulesets/java/clone.xml"
/>
<rule
ref=
"rulesets/java/strictexception.xml"
/>
<rule
ref=
"rulesets/java/design.xml"
>
<exclude
name=
"GodClass"
/>
</rule>
<rule
ref=
"rulesets/java/coupling.xml"
>
<exclude
name=
"LawOfDemeter"
/>
<exclude
name=
"ExcessiveImports"
/>
<!-- Suppress Removed misconfigured rule warning -->
<exclude
name=
"LoosePackageCoupling"
/>
</rule>
</ruleset>
Please
register
or
login
to post a comment