-sonar.exclusions=src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/smpi/colls/*,examples/smpi/NAS/*
-
-# Ignore some files based on regex on their content (not working)
-#sonar.issue.ignore.allfile=flexGenerated,flexMLGenerated
-# - The one that are generated from Flex
-#sonar.issue.ignore.allfile.flexGenerated.fileRegexp="generated by flex"
-# - The one that are generated from FlexML (the header files are directly generated, not going though Flex)
-sonar.issue.ignore.allfile.flexMLGenerated.fileRegexp="generated with the FleXML XML processor generator"
-
-# Ignore the files that SMPI scavenged here and there (not working)
-#sonar.issue.ignore.allfile=mpiColls
-#sonar.issue.ignore.allfile.flexGenerated.mpiColls="Ahmad Faraj"
-#sonar.issue.ignore.allfile=mpivapich
-#sonar.issue.ignore.allfile.flexGenerated.mpivapich="This file is part of the MVAPICH2 software package"
-#sonar.issue.ignore.allfile=mpiOmpi
-#sonar.issue.ignore.allfile.flexGenerated.mpiOmpi="University of Tennessee"
+# - RngStream, that is included in SimGrid
+sonar.exclusions=src/*_unit.c*,teshsuite/smpi/mpich3-test/**,teshsuite/smpi/isp/**,**/*_dtd.c,**/*_dtd.h,**/*yy.c,src/xbt/automaton/parserPromela.tab.*,src/smpi/colls/**/*,examples/smpi/NAS/*,src/xbt/RngStream.c,include/xbt/RngStream.h
+
+# Exclude our examples from the duplication detection.
+# Examples are expected to be somehow repetitive
+sonar.cpd.exclusions=examples/**,teshsuite/**