freeleaps-ops/first-class-pipeline/src/com/freeleaps/devops/lint/PyLint.groovy
2025-02-07 16:16:43 +08:00

16 lines
381 B
Groovy

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.dir(workspace) {
steps.sh("pylint --rcfile=${configs} ${workspace}")
}
}
}