A new behavior is added to --dry-run switch in
order to be able to run it without project file
and list GNATdashboard predefined plugins.
The old behavior is kept unchanged.
Adding specific test for "gnathub --dry-run"
Change-Id: I05019f8442ac84eae5420ee9cce567d86b429405
When no switch is provided this switch will be
ignored without raising error.
A warning message is displayed to notify the user
about that.
Change-Id: I3d170ad300c38c2a1d8f6fcf2ae2ef676ac95ef1
* -X switch argument parsing is separately done
to ensure a better handling for cases where the
paths contains white spaces in folder names
* handling white spaces for sonar-scanner command
line execution
Change-Id: I5d4b33953dec87ea50546ef43ab82c2a63374ed1
For the case that one or more plugins are failing
during plugin-runner execution report a non-zero
error code is returned to notify this behavior.
Change-Id: I68cb5e0404462e91940dcdb43e79b57682b96d88
- All routes from old server replicated
- Server is working on its own
DONE:
- Link with GNAThub endled
- Endpoints completed
- Check in production mode
- Logs working fine
Change-Id: I908502a17f27287db573ecbc3174c43ab4fa1192
For: SB18-033
- Fix the bug with truncated logs while using GNAThub.Run()
- Handle exception like "port already in use"
- Fix the bug while closing/opening server too quickly
Change-Id: I9a063c60f1726302e0837423274cb259fab84795
For: RA22-034
For: S911-037
Handling blank spaces in folder names passed as
-P switch argument in GNAThub command line.
Specific testcase added based on simple project.
Change-Id: I259e7982a101eae399f2cb11357f627def35a9b7
* For all GNAThub tool plugins:
Method clear_references for current tool is
called only if it is not incremental mode for
GNAThub run specified in command line
* __init__.py and gnathub-python.adb:
Add "incremental" command interface available
for GNAThub in Python
* gnathub-python-database.adb:
Tool/add_messages command:
It is used for bulk addition at tool level.
Additional check added in order to ensure
that no duplicated messages will be added
to database (usefull for incremental mode).
Message/Constructor_Method:
In order to avoid duplicate messages when
new properties are associated to an already
present message, only messages properties
entries will be created.
* codepeer-mocked/test.py and test.out:
Removing test from testsuite since replaced
codepeer/test.py
* create-message-with-property.py:
Update test according to the changes related
to Message/Constructor_Method
* test-incremnetal:
Testcase added to test incremental switch
usage effect on database
Change-Id: I21271b8d1116ccb61aa062c39215cb18db792a7b
This information let to retrieve GNATmetric
measures for file entities
In order to differentiate high level compilation
unit, the high level entity (package or procedure)
has set "compilation unit" as kind.
Change-Id: Icdfd41e2b8519a779a720937a184334250509dca
Gather in GNAThub all gcov information originated
by complex GPR files having multiple object dirs
specified in different .gpr files
New test case added for gcov based on sdc project
modified in order to create a specific object
folders hierarchy using Object_Dir attributes in
the .gpr files
Change-Id: Ic8e645ebb95b0d02b61c7be7e75165c5cc1dd31b
"Output_Directory" and "Database_Directory"
These attributes could be used by adding to
.gpr file a "Codepeer" package like bellow:
package Codepeer is
for Output_Directory use "my_dir";
for Database_Directory use "my_db";
end Codepeer;
Use of these attributes will set Codepeer output
and database directories to the specified values.
GNAThub interface from server.py is
* for "Output_Directory" attribute value:
GNAThub.output_dir()
* for "Database_Directory" attribute value:
GNAThub.db_dir()
Part of R703-038
Change-Id: I562367880c60d64966efca1d0d6f1ca4775923dd
In order to pass to the web server the Codepeer
* output directory: switch --output-dir is added
(if not passed as command line argument,
default value is set to
[prj_obj_path]/codepeer/[prj_name].output)
* db directory: switch --db-dir is added
(if not passed as command line argument,
default value is set to
[prj_obj_path]/codepeer/[prj_name].db)
GNAThub interface from server.py is
* for --output-dir switch value or default:
GNAThub.output_dir()
* for --db-dir switch value or default:
GNAThub.db_dir()
Part of R703-038
Change-Id: Id6537d2ca61a3737d5380c0795934359907059ed
* __init_.py :
'-U' switch interface u_process_all()
method was added
* gnathub-python.adb:
U_Process_All_Function was added
* gnatmetric.py, gnatcheck.py, codepeer.py,
spark2014.py:
propagate use of -U switch when used
NOTE: The '-U main_file' switch implementation is
not removed but kept as comment in the sources
for later implementation
Part of P315-042
Change-Id: Iaff11740e3538d39c8a82f595f0a9ec5a65aa91c
* db.model:
messages table changed by adding a columns to
store messages id that are originally given
by the specific tools
(Note : default value is set to 0)
* __init__.py:
adding new parameter to constructor for new
tool original message id column of messages
table
* gnathub-python-database.adb:
adapt message handling to take into account
new tool_msg_id column in messages table
* codepeer.py:
fill tool_msg_id field of messages table with
corresponding values gathered from .csv output
* updating codepeer.injected-results.csv with the
currently generated output as reference
Part of R620-010
Change-Id: I2bc181d26d091305e34dc3ed24489d525200e0f5
* Remove --server-dir switch
* Launch only WEB server when --server switch
provided. Only --port switch will be taken into
account defining port for server launch. If no
port is specified the default value used for
port is 8000.
* User manual is updated for the --server and
--port switches
Part of R616-001
Change-Id: I6b6d391d28dc64589d1b649197907490b00208c4
Note: '--server-dir' switch is provided but not
used by server.py since is not useful since
json files location is relative always to the
root repository of the given .gpr file
Part of R616-001
Change-Id: Ic13f6a9ba6e18a5e42632c81859ba7d0a3bf950f
* __init_.py : subdirs interface method was added
* gnathub-python.adb: Subdirs_Function was added
* codepeer.py, gnatmetric.py, gnatcheck.py:
propagate use of '--subdirs' switch
* spark2014.py:
prepared to support --subdirs when this switch
will be implemented for gnatprove
* test.py:
test added for --subdirs switch
* mock.py:
add support for 'subdirs' argument used in
GNAThub calls
Part of R208-037
Change-Id: I192804f54f61b3dffa80057b57a98af497a63ff0