Permalink
Browse files

Remove C project samples

  • Loading branch information...
1 parent e555081 commit 1a871440727231eb5127ec4b82261e307318c81a David RACODON committed May 7, 2013
@@ -1,13 +0,0 @@
-This example demonstrates how to analyze a C project with the Sonar Runner and how to import CPPUnit and GCOV reports.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
-* [Sonar C Plugin](http://www.sonarsource.com/products/plugins/languages/c/) 1.7 or higher
-
-Usage
-=====
-* Analyze the project with Sonar using the Sonar Runner:
-
- sonar-runner
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding='ISO-8859-1' standalone='yes' ?>
-<TestRun>
- <FailedTests>
- <FailedTest id="2">
- <Name>Test::testAssert</Name>
- <FailureType>Assertion</FailureType>
- <Location>
- <File>../src/example.cpp</File>
- <Line>31</Line>
- </Location>
- <Message>equality assertion failed
-- Expected: 2
-- Actual : 1
-</Message>
- </FailedTest>
- <FailedTest id="3">
- <Name>Test::testException</Name>
- <FailureType>Error</FailureType>
- <Message>uncaught exception of unknown type
-</Message>
- </FailedTest>
- </FailedTests>
- <SuccessfulTests>
- <Test id="1">
- <Name>Test::testHelloWorld</Name>
- </Test>
- </SuccessfulTests>
- <Statistics>
- <Tests>3</Tests>
- <FailuresTotal>2</FailuresTotal>
- <Errors>1</Errors>
- <Failures>1</Failures>
- </Statistics>
-</TestRun>
@@ -1,15 +0,0 @@
- -: 0:Source:../../src/example.c
- -: 0:Graph:./example.gcno
- -: 0:Data:./example.gcda
- -: 0:Runs:1
- -: 0:Programs:1
-function main called 1 returned 100% blocks executed 75%
- 1: 1:int main(int argc) {
- 1: 2: if (argc == 0) {
-branch 0 taken 0 (fallthrough)
-branch 1 taken 1
- #####: 3: return 0;
- -: 4: } else {
- 1: 5: return 1;
- -: 6: }
- -: 7:}
@@ -1,19 +0,0 @@
-# Required metadata
-sonar.projectKey=org.codehaus.sonar:c-sonar-runner-cppunit-gcov
-sonar.projectName=C project analyzed with the Sonar Runner; CPPUnit and GCOV reports imported
-sonar.projectVersion=1.0
-
-# Language
-sonar.language=c
-
-# Comma-separated paths to directories with sources (required)
-sonar.sources=src
-
-# Encoding of the source files
-sonar.sourceEncoding=UTF-8
-
-# Path to the directory containing the CPPUnit reports
-sonar.c.cppunit.reportsPath=reports/cppunit
-
-# Path to the directory containing the GCOV reports
-sonar.c.gcov.reportsPath=reports/gcov
@@ -1,7 +0,0 @@
-int main(int argc) {
- if (argc == 0) {
- return 0;
- } else {
- return 1;
- }
-}
@@ -1,13 +0,0 @@
-This example demonstrates how to analyze a C project with the Sonar Runner.
-
-Prerequisites
-=============
-* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
-* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
-* [Sonar C Plugin](http://www.sonarsource.com/products/plugins/languages/c/) 1.6 or higher
-
-Usage
-=====
-* Analyze the project with Sonar using the Sonar Runner:
-
- sonar-runner
@@ -1 +0,0 @@
-#define ADD(x, y) ((x) + (y))
@@ -1,22 +0,0 @@
-# Required metadata
-sonar.projectKey=org.codehaus.sonar:c-sonar-runner
-sonar.projectName=Simple C project analyzed with the Sonar Runner
-sonar.projectVersion=1.0
-
-# Comma-separated paths to directories with sources (required)
-sonar.sources=src
-
-# Language
-sonar.language=c
-
-# Optional comma-separated list of additional libraries folders (such as /usr/include)
-sonar.c.library.directories=lib
-
-# Optional path to the CppCheck program required to activate some CppCheck rules
-# sonar.c.cppcheck.path=C:/Program Files/Cppcheck/cppcheck.exe
-
-# Optional specific predefined macros
-# sonar.c.predefinedMacros=#define MY_MACRO(a) ((a)+1),#define DEBUG
-
-# Encoding of the source files
-sonar.sourceEncoding=UTF-8
@@ -1,10 +1,10 @@
-This example demonstrates how to analyze a C++ project with the Sonar Runner and how to import CPPUnit and GCOV reports.
+This example demonstrates how to analyze a C/C++ project with the Sonar Runner and how to import CPPUnit and GCOV reports.
Prerequisites
=============
* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
-* [Sonar C++ Plugin](http://www.sonarsource.com/products/plugins/languages/cpp/) 1.1 or higher
+* [Sonar C/C++ Plugin](http://www.sonarsource.com/products/plugins/languages/cpp/) 1.5.1 or higher
Usage
=====
@@ -1,6 +1,6 @@
# Required metadata
sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov
-sonar.projectName=C++ project analyzed with the Sonar Runner; CPPUnit and GCOV reports imported
+sonar.projectName=C/C++ project analyzed with the Sonar Runner; CPPUnit and GCOV reports imported
sonar.projectVersion=1.0
# Language
@@ -1,10 +1,10 @@
-This example demonstrates how to analyze a C++ project with the Sonar Runner.
+This example demonstrates how to analyze a C/C++ project with the Sonar Runner.
Prerequisites
=============
* [Sonar](http://www.sonarsource.org/downloads/) 3.0 or higher
* [Sonar Runner](http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Sonar+Runner) 2.0 or higher
-* [Sonar C++ Plugin](http://www.sonarsource.com/products/plugins/languages/cpp/) 1.0 or higher
+* [Sonar C/C++ Plugin](http://www.sonarsource.com/products/plugins/languages/cpp/) 1.5.1 or higher
Usage
=====
@@ -1,11 +1,8 @@
# Required metadata
-sonar.projectKey=cpp.examples.simple-project
-sonar.projectName=My Simple C++ project
+sonar.projectKey=org.codehaus.sonar:simple-cpp-project
+sonar.projectName=Simple C/C++ project analyzed with the Sonar Runner
sonar.projectVersion=1.0
-# Description of project (optional)
-sonar.projectDescription=Simple C++ project analyzed using the Sonar Runner
-
# Comma-separated paths to directories with sources (required)
sonar.sources=src

0 comments on commit 1a87144

Please sign in to comment.