Updating rules profile for
- Codepeer based on 21.0w 20200212
- GNATcheck based on asistools-21.0w-20200507
from GNATtracker Continuous Release
Change-Id: I9228e88aac44d2b6dfca8d736ce448c31ebbed30
Add support for extra environment variables that will be
passed by anod to toggle online/offline mode.
Change-Id: I253ce195e987ab6f4afbd701a1934df96c6e2d9d
GNATcheck rules generation are based on
* "gnatcheck -h" output when are generated
without specific technical debt infos
* "gnatcheck -dR -h" output when are generated
with specific technical debt infos
CodePeer rules generation are based on
* "codepeer --list-categories" output when are
generated without specific technical debt
infos
* "codepeer --list-categories-with-debts" output
when are generated with technical debt infos
* Update of README file related to different
.xml files generation used for default Sonar
Ada profile
Change-Id: Id3f1840317d54b53ecfa87f8b16fbcc26c02e4a3
* Save Ada "LSLOC" metric as Sonar "Lines of Code"
metric
* Add Ada "all_statements" as Sonar "Statements"
metric
Change-Id: I9e0e322bcd226e11a61b2191f139b36b0056d117
All rules listed by Codepeer --list-categories
switch are generated in codepeer.xml in order
to get all the rule names that can be encountered
during different level runs
Change-Id: Iac4a24cae476d64b49a3a7096a052db2920544ea
* Using InputFile.uri().getPath() instead
InputFile.absolutePath() call
* Replace deprecated org.sonar.api.config.Settings
usage by org.sonar.api.config.Configuration
* GNAThub.java:
@BatchSide predicate replaced by @ScannerSide
* MAinFileSensor.java:
Replace usage of File with InputFile type for
ProgressReport
* AdaProfileDefinition:
Implement new Quality profile which replace
old deprecated AdaDefaultProfile
Change-Id: I6cb421cdec1887575085ad1a3c3583bcbb870a8e
* Adding script to regenerate default profile .xml
For that go to GIT repo of GNATdashboard
/sonar-ada/sonar-ada-plugin/src/ruledef/
and do
make ada_rules_profile_definition
Change-Id: Icf90768191d44aab6fefe5f1b04cdf71577f4aa7
Package level "all_stmts" metric is the appropriate
GNATmetric measure to be reported in SonarQube as
LSLOC (i.e. Logical SLOC attempts to measure the
number of executable "statements")
Change-Id: I3306f49592df36361850f1228c566054b6c97632
This change is about fixing missing Cyclomatic
Complexity value for Ada project in SonarQube.
This is a SonarQube metric which values are of
integer type and it is used for example as
parameter by the overview of coverage complexity
graph.
The sum of cyclomatic complexities for all
methods of the file is computed by using an SQL
query and storing the result on a new attribute
of FileMeasures class.
Change-Id: Ia8e050c254c05deda9936732e71674a68762dbb0
Codepeer --list-categories switch is used to
generate codepeer.xml instead of generation based
on codepeer documentation parsing
generate-codepeer-rules-definition:
removed since no longer used
Part of R509-024
Change-Id: I1e107624559ea93702f8bc12384756a3212223ff
Codepeer --list-categories switch is used to
generate codepeer.xml instead of generation based
on codepeer documentation parsing
generate-codepeer-rules-definition:
removed since no longer used
Part of R509-024
Change-Id: If6eea73dbd4c7cd0745612a0c24f5d3281407cac
Replacing all references to categories table of
DB by messages table ranking field since DB model
changed and Categories table was removed.
Update unit tests by adding a new DB for sdc.gpr
Part of R709-047
Change-Id: If4ba0e635e03e94dc949b8e5913a10d63ab06b01
* gnatcheck.xml was regenerated after update of
gnatcheck -h output which makes visible from
now recursive_subprograms rule
Part of R223-001
Change-Id: I8069f6290789b65011969e3ded2d69bf6cb222a1
AdaHighlightingSensor.java:
stringsHighlighting crash fix to handle empty
strings
Part of QC06-030
Change-Id: I6d3bcd48936bfac719920c1baa54da830bcfede8
Upgrade version to 6.7 LTS in pom.xml(s) for
Sonar plugin
* Ada.java: dependencies on
org.sonar.api.config.Settings (i.e. which is
an abstract class in the 6.7 LTS) replaced by
org.sonar.api.config.Configuration
* pom.xml:
upgrade of snapshot version to 19.0 and
SonarQube version to 6.7 LTS
Part of QB13-048
Change-Id: Icfc18217e59837f3c8eee89d14e8d067ca74dda1