Created
September 13, 2020 21:09
-
-
Save damian-burke/5807211c86981004e80d91c76993cbc0 to your computer and use it in GitHub Desktop.
Dangerfile to scan ktlint / detekt / Android Lint reports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {danger, fail, message, warn, schedule} from 'danger' | |
const reporter = require("danger-plugin-lint-report") | |
// Scan ktlint reports | |
schedule(reporter.scan({ | |
fileMask: "**/reports/ktlint/*.xml", | |
reportSeverity: true, | |
requireLineModification: true, | |
})) | |
// Scan detekt reports | |
schedule(reporter.scan({ | |
fileMask: "**/reports/detekt.xml", | |
reportSeverity: true, | |
requireLineModification: true, | |
})) | |
// Scan Android Lint reports | |
schedule(reporter.scan({ | |
fileMask: "**/reports/lint-results-*.xml", | |
reportSeverity: true, | |
requireLineModification: true, | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment