Danger

Danger

Intro

github | danger

using-swiftlint-and-danger-for-swift-best-practices

iOS

iOS Getting started

danger docs | iOS App

danger docs | getting_started

Gitlab

gitlab | dangerbot

Gitlab integration
gitlab | danger bot

getting_started - creating-a-dangerfile

CI

medium | your-guide-to-danger-swift-on-ci

Config

Sample Danger file

danger-in-ci-automate-your-mobile-code-reviews

Best Practices for Swiftlint and Danger

Implementation

how-to-implement-danger-in-swift

how-to-implement-danger-in-swift

medium | your-guide-to-danger-swift-on-ci

Danger plugins
avanderlee | danger-plugins

local setup

x86 vs ARM issues with Danger / xcode / terminal / homebrew

To install the package.

brew install danger/tap/danger-swift

Make sure you have homebrew installed in x86 mode rather than ARM mode. You can check by running this command

This command to run danger swift with base branch as main. My setup requires swift-lint installed globally or locally or else danger won't parse swift-lint command.
It's complicated given how our project workspace, SPM, frameworks are organized in our project.

danger-swift local -b main

A big architecture decision would be needed to be made whether we want to decouple our plugin - checks or just have it build locally before every project gets compiled or with PR.

Commands

Edit a workspace

danger-swift edit

Make a local comparison

danger-swift local -b main