Commit Graph

435 Commits

Author SHA1 Message Date
Charly Delay
704a3f32cf sonar-scanner: set workdir
Change-Id: I5fc23c713bde7d0c658ede57ec04cbb3de7b8c0d
2017-02-28 15:22:48 -05:00
Charly Delay
c926fa681d gnathub: use collections.defaultdict when relevant
Change-Id: I7841b5016c3bff20154bc1b77d04c1ee97816f37
2017-02-27 18:49:55 -05:00
Charly Delay
c8739ce8c1 gnathub: add support for SPARK2014
Change-Id: Ib00aa2897704c877c7cb197b696fc4f195f7af4a
TN: N805-021
TN: O219-001
2017-02-27 17:09:20 -05:00
Charly Delay
80e779fabf Nits
Change-Id: Ia0ee0adbd419e7458fcae5b84f2dfcd96f55230d
2017-02-27 16:07:34 -05:00
Charly Delay
54f9e41960 webui(ProjectExplorer): activate tools/rules/properties filters
Change-Id: I4212c207d7c19a62c73dc9d162cecfa1100c2891
2017-02-16 15:03:47 -05:00
Charly Delay
600c28348d webui(AnnotatedSource): avoid unnecessary rebuild
Change-Id: Id4a01bed1b6e54036b947343ac79aacd5d0c410d
2017-02-16 09:59:59 -05:00
Charly Delay
693e7d4909 webui(AnnotatedSource): fix performance bottleneck
Refactor the component to avoid irrelevant redraw of the interface as
well as updates to components that haven't changed (due to Angular not
being able to properly analyse impact of a change).

Change-Id: If3356fb1bdb8b15263fc2100cc9015c3d545260e
2017-02-14 16:03:46 -05:00
Charly Delay
feb9a4f7aa html-report: refactor JSON serializer
Refactor and factorize a number of the JSON generator (html-report)
module. In addition to introducing a clearer and simpler interface, it
is also more memory and runtime efficient, as well as being more
maintainable.

Change-Id: I6729c3951ad6fa43cba6f73d963da35bab954d57
2017-02-14 16:03:46 -05:00
Charly Delay
9b7eba225e html-report: do not count metrics as messages
Change-Id: I8445881efedc8ab6dfc5ed03348ef31fc6ec12c5
2017-01-31 11:57:17 -05:00
Charly Delay
5653a998d3 html-report: do not forget the last line of sources
Change-Id: I4b7614fb2829df6456e25ba699b45c92d7056666
2017-01-31 10:08:28 -05:00
Charly Delay
9504d42871 webui: more compact UI for messages
* group messages from the same tool
* allow hide/show the message view

Change-Id: I49c5fb86aae09f3d30ef2b97f38e94d81056b892
2017-01-30 17:29:48 -05:00
Charly Delay
215bd17111 webui: add messages count for projects and directories
Change-Id: I5ed0ce84baf739c55717bb8c86604aea1e22ca30
2017-01-27 17:05:17 -05:00
Charly Delay
b6937488db webui: add project explorer for navigation
Change-Id: I496b654c9bd925302a31a3f33b0fd7f6004bf779
2017-01-26 16:22:32 -05:00
Charly Delay
4ec034354d chore: homogeneize Python comment style
Change-Id: Ia932f1bb3f9bac868823f213734c966018e00a86
2017-01-19 10:47:14 -05:00
Charly Delay
5e637c40ae webui: normalize report name
Change-Id: I72eaa65921085070765937d9d7848ff73c8b4656
2017-01-19 10:46:08 -05:00
Charly Delay
dce5a17ee0 gnathub(plugin-runner): minor refacor
Change-Id: I8f5dac2376cfab1964ea6a0e5e766b25ae9950dd
TN: P720-035
2017-01-19 10:46:08 -05:00
Charly Delay
b54fbf7c21 gnathub: implement --[runners|reporters]-only
Teach those two switches to GNAThub's command line and wire them within
gnathub.

Change-Id: Ie6db3c8034650499123bd3e6405567296ab89362
TN: P720-035
2017-01-19 10:46:08 -05:00
Charly Delay
c53730d781 gnathub: introduce Runner & Reporter interface
The GNAThub.Plugin class is no longer an abstract class and
GNAThub.Runner & GNAThub.Reporter are two new interfaces exposing
respectively run() and report(). Plugins now have tools execution
done in run() methods, and results collection done in report() methods
(when it make sense for the plugin, ie. coverage plugins only implement
the GNAThub.Reporter interface whereas eg. CodePeer plugin implements
both GNAThub.Runner and GNAThub.Reporter interfaces).

Change-Id: Ic702a98eb3bb02e7f7416b5ff3c998f9b20eaefc
TN: P720-035
2017-01-18 16:04:50 -05:00
Charly Delay
81db410c2e fix(html-report): ensure that we can encode files as UTF-8
The HTML report module output JSON files that are UTF-8 encoded. In
order for this serialization process to work, the input files need to be
decoded first.

For now, the implementation expects all input files to be UTF-8
otherwise the source code won't be available in the HTML report.

In the future GNAThub could expose a switch to allow the user to specify
the input encoding.

Change-Id: If9ae4bec08ca15301caab447665346e7da94d5f7
2017-01-12 14:31:59 -05:00
Charly Delay
ce4d2d3da8 gnathub: pass tool arguments to inferiors
By default, use the first argument of Run() to get the list of extra
switches, and append them to the provided argv. For more complex cases
one can use one or more ToolArgsPlaceholder to insert those extra
switches at a specific position in the command line.

Change-Id: I2b46eb36ed298e9dae0995278074ff13afdd33b6
TN: PC20-033
2017-01-11 11:56:20 -05:00
Charly Delay
07d4393c64 gnathub: do not call codepeer_msg_reader directly
Change-Id: I4d4cfd3420ffb5c494d31af443e852a307e77777
TN: Q110-043
2017-01-11 08:34:01 -05:00
Charly Delay
8d2ee4d2e4 gnathub: add support for --targs:
Change-Id: I7b5127b1801e61a28dfa2faf0e0e9fb69f7a6e59
TN: PC20-033
2016-12-22 10:19:27 -05:00
Charly Delay
aa2f1e2d77 chore(gnathub): fix warning output
Change-Id: Iaccf79908412c28c3a1d50e73ce68f09ea9481de
2016-12-20 12:59:13 -05:00
Charly Delay
ea345b6adc chore(gnathub): adjust copyrights
Change-Id: I170a5541bdd08546b59b2cfafe41e0abf87b9682
2016-12-20 12:59:13 -05:00
Charly Delay
652e2ba9c2 fix(html-report): HTML generation for some sources
Change-Id: I5f1379f5e690bc0767d141c7c4a7eea74ae23a42
2016-12-13 18:22:32 -05:00