File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ let filesToLint = (danger.git.modifiedFiles + danger.git.createdFiles)
2222
2323SwiftLint . lint ( . files( filesToLint) , inline: true )
2424
25+ let configuration = DangerSwiftCommitLint . Configuration ( warn: . all)
26+ let commitLint = DangerSwiftCommitLint ( danger: danger, configuration: configuration)
27+ commitLint. check ( )
28+
2529// Only run GitHub related checks when GitHub dsl is available. This allows `danger-swift local` to work.
2630guard let github = danger. github else {
2731 warn ( " Unable to parse GitHub DSL response, the GitHub related checks will be skipped. (i.e. running `danger-swift local`). " )
@@ -38,7 +42,3 @@ let foundWIPLabel = github.issue.labels.contains {
3842if foundWIPMessageInTitle || foundWIPLabel {
3943 warn ( " PR is classed as Work in Progress " )
4044}
41-
42- let configuration = DangerSwiftCommitLint . Configuration ( warn: . all)
43- let commitLint = DangerSwiftCommitLint ( danger: danger, configuration: configuration)
44- commitLint. check ( )
You can’t perform that action at this time.
0 commit comments