Skip to content

Commit 7920ef1

Browse files
Merge pull request #1 from CfrancCyrille/dev
Initial version
2 parents 64d6914 + ccdb916 commit 7920ef1

File tree

65 files changed

+9055
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+9055
-1
lines changed

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
target/
2+
pom.xml.tag
3+
pom.xml.releaseBackup
4+
pom.xml.versionsBackup
5+
pom.xml.next
6+
release.properties
7+
dependency-reduced-pom.xml
8+
buildNumber.properties
9+
.mvn/timing.properties
10+
11+
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
12+
!/.mvn/wrapper/maven-wrapper.jar
13+
14+
# Avoid Eclipse specific configuration
15+
/.classpath
16+
/.DS_Store
17+
/.project
18+
=======
19+
# Avoid ignoring Eclipse project specific configuration if someone use another IDE
20+
# /.project

.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>sonar-icode-plugin</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
eclipse.preferences.version=1
2+
encoding//src/main/java=UTF-8
3+
encoding//src/main/resources=UTF-8
4+
encoding//src/test/resources=UTF-8
5+
encoding/<project>=UTF-8
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3+
org.eclipse.jdt.core.compiler.compliance=1.8
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.source=1.8
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: java
2+
3+
sudo: false
4+
install: true
5+
6+
jdk:
7+
- oraclejdk8
8+
9+
cache:
10+
directories:
11+
- '$HOME/.m2/repository'
12+
- '$HOME/.sonar/cache'
13+
- '$HOME/.sonar/installs'
14+
15+
addons:
16+
sonarqube: true
17+
18+
notifications:
19+
email: false
20+
21+
addons:
22+
sonarcloud:
23+
organization: "AT-NicolasMetivier"
24+
token:
25+
secure: projettest # encrypted value of your token
26+
# Script to execute.
27+
28+
script:
29+
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=at-nicolasmetivier-github -Dsonar.login=d217f2a7b06684f932ec72bbc294e27e87d9c361

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# sonar-icode-cnes-plugin
1+
Sonar Plugin for the code analysys tool : ICode

documentation/manual.pdf

47.6 KB
Binary file not shown.

documentation/presentation.pdf

805 KB
Binary file not shown.

pom.xml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>fr.cnes.sonarqube.plugins</groupId>
6+
<artifactId>sonar-icode-plugin</artifactId>
7+
<packaging>sonar-plugin</packaging>
8+
<version>0.0.1-SNAPSHOT</version>
9+
<name>ICode</name>
10+
11+
<description>ICode plugin for Sonarqube</description>
12+
<!-- TBC : is it the right repository ? -->
13+
<url>https://github.com/dupuisa/sonar-icode-plugin</url>
14+
<inceptionYear>2017</inceptionYear>
15+
16+
<!-- TBD : Apache license ? (Sonarqube update center required a FLOSS one -->
17+
<licenses>
18+
<license>
19+
<name>Apache License, Version 2.0</name>
20+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
21+
<distribution>repo</distribution>
22+
<comments>A business-friendly OSS license</comments>
23+
</license>
24+
</licenses>
25+
26+
<!-- optional -->
27+
<organization>
28+
<name>CNES</name>
29+
<url>http://cnes.fr</url>
30+
</organization>
31+
32+
<developers>
33+
<developer>
34+
<name>Cyrille Francois</name>
35+
<url>https://github.com/CfrancCyrille</url>
36+
<id>CfrancCyrille</id>
37+
</developer>
38+
<developer>
39+
<name>Nicolas Métivier</name>
40+
<url>https://github.com/AT-NicolasMetivier</url>
41+
<id>AT-NicolasMetivier</id>
42+
</developer>
43+
</developers>
44+
45+
<properties>
46+
<jdk.version>1.8</jdk.version>
47+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48+
<sonarqube.version>5.6</sonarqube.version>
49+
<slf4j.version>1.7.25</slf4j.version>
50+
<junit.version>4.12</junit.version>
51+
<project.key>icode</project.key>
52+
</properties>
53+
54+
<dependencies>
55+
<dependency>
56+
<groupId>org.sonarsource.sonarqube</groupId>
57+
<artifactId>sonar-plugin-api</artifactId>
58+
<version>${sonarqube.version}</version>
59+
<scope>provided</scope>
60+
</dependency>
61+
62+
<!-- unit tests -->
63+
<dependency>
64+
<groupId>junit</groupId>
65+
<artifactId>junit</artifactId>
66+
<version>${junit.version}</version>
67+
<scope>test</scope>
68+
</dependency>
69+
</dependencies>
70+
71+
<build>
72+
<plugins>
73+
<plugin>
74+
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
75+
<artifactId>sonar-packaging-maven-plugin</artifactId>
76+
<version>1.17</version>
77+
<extensions>true</extensions>
78+
<configuration>
79+
<pluginClass>fr.cnes.sonarqube.plugins.icode.ICodePlugin</pluginClass>
80+
<pluginKey>${project.key}</pluginKey>
81+
<pluginName>${project.name}</pluginName>
82+
<pluginDescription>${project.description}</pluginDescription>
83+
</configuration>
84+
</plugin>
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-compiler-plugin</artifactId>
88+
<version>3.6.2</version>
89+
<configuration>
90+
<source>${jdk.version}</source>
91+
<target>${jdk.version}</target>
92+
<encoding>${project.build.sourceEncoding}</encoding>
93+
</configuration>
94+
</plugin>
95+
</plugins>
96+
</build>
97+
</project>

0 commit comments

Comments
 (0)