freeleaps-ops/first-class-pipeline/src/com/freeleaps/devops/lint/PyLint.groovy

14 lines
346 B
Groovy
Raw Normal View History

package com.freeleaps.devops.lint
import com.freeleaps.devops.enums.CodeLinterTypes
import com.freeleaps.devops.lint.LinterBase
class PyLint extends LinterBase {
PyLint(steps, workspace, configs) {
super(steps, workspace, configs, CodeLinterTypes.PYLINT)
}
def doLint() {
steps.sh("pylint --rcfile=${configs} ${workspace}")
}
}