mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
scanNextLineForParam -> docuEnd
since this naming is more open, e.g. when dealing with header comments we do not scan the next line for a parameter.
This commit is contained in:
parent
9532e1c05d
commit
77419882dd
@ -130,7 +130,7 @@ class Helper {
|
||||
|
||||
boolean docu = false,
|
||||
value = false,
|
||||
scanNextLineForParamName = false
|
||||
docuEnd = false
|
||||
|
||||
def docuLines = [],
|
||||
valueLines = []
|
||||
@ -138,8 +138,8 @@ class Helper {
|
||||
f.eachLine {
|
||||
line ->
|
||||
|
||||
if(scanNextLineForParamName) {
|
||||
scanNextLineForParamName = false
|
||||
if(docuEnd) {
|
||||
docuEnd = false
|
||||
|
||||
// first we check if we have a header comment for a step
|
||||
Matcher headerMatcher = (line =~ /(def|void)\s*call\s*\(/ )
|
||||
@ -190,7 +190,7 @@ class Helper {
|
||||
if(docu && line.trim() ==~ /^\*\//) {
|
||||
docu = false
|
||||
value = false
|
||||
scanNextLineForParamName = true
|
||||
docuEnd = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user