Update sloccount plugin
- update sloccount plugin to convert xml - add new parameters - add plugin='sloccount' attribute - update docstring - update test cases Change-Id: I74919fdd18d2d22ab07e7cd1e48df6572db8885b
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<publishers>
|
||||
<hudson.plugins.sloccount.SloccountPublisher>
|
||||
<hudson.plugins.sloccount.SloccountPublisher plugin="sloccount">
|
||||
<pattern>sloccount.sc</pattern>
|
||||
<encoding>latin-1</encoding>
|
||||
<numBuildsInGraph>1</numBuildsInGraph>
|
||||
<commentIsCode>true</commentIsCode>
|
||||
<ignoreBuildFailure>true</ignoreBuildFailure>
|
||||
</hudson.plugins.sloccount.SloccountPublisher>
|
||||
</publishers>
|
||||
</project>
|
||||
7
tests/publishers/fixtures/sloccount-complete.yaml
Normal file
7
tests/publishers/fixtures/sloccount-complete.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
publishers:
|
||||
- sloccount:
|
||||
report-files: sloccount.sc
|
||||
charset: latin-1
|
||||
builds-in-graph: 1
|
||||
comment-is-code: true
|
||||
ignore-build-failure: true
|
||||
12
tests/publishers/fixtures/sloccount-minimal.xml
Normal file
12
tests/publishers/fixtures/sloccount-minimal.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<project>
|
||||
<publishers>
|
||||
<hudson.plugins.sloccount.SloccountPublisher plugin="sloccount">
|
||||
<pattern>**/sloccount.sc</pattern>
|
||||
<encoding>UTF-8</encoding>
|
||||
<numBuildsInGraph>0</numBuildsInGraph>
|
||||
<commentIsCode>false</commentIsCode>
|
||||
<ignoreBuildFailure>false</ignoreBuildFailure>
|
||||
</hudson.plugins.sloccount.SloccountPublisher>
|
||||
</publishers>
|
||||
</project>
|
||||
2
tests/publishers/fixtures/sloccount-minimal.yaml
Normal file
2
tests/publishers/fixtures/sloccount-minimal.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
publishers:
|
||||
- sloccount
|
||||
@@ -1,4 +0,0 @@
|
||||
publishers:
|
||||
- sloccount:
|
||||
report-files: sloccount.sc
|
||||
charset: latin-1
|
||||
Reference in New Issue
Block a user