-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathDangerfile
More file actions
25 lines (19 loc) · 692 Bytes
/
Dangerfile
File metadata and controls
25 lines (19 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# github comment settings
github.dismiss_out_of_range_messages
# for PR
if github.pr_title.include?('[WIP]') || github.pr_labels.include?('WIP')
warn('PR is classed as Work in Progress')
end
# Warn when there is a big PR
warn('a large PR') if git.lines_of_code > 300
checkstyle_format.base_path = Dir.pwd
# ktlint
checkstyle_format.base_path = Dir.pwd
checkstyle_format.report 'app/build/reports/ktlint/ktlintMainSourceSetCheck.xml'
# detekt
checkstyle_format.report 'build/reports/detekt/detekt.xml'
# AndroidLint
android_lint.report_file = "app/build/reports/lint-results.xml"
android_lint.skip_gradle_task = true
android_lint.severity = "Error"
android_lint.lint(inline_mode: true)