Programming Search⌘K

Swift lints, page 1 of 2

The lint rules of Swift, with what each one finds. This page has 237 cards.

Non-constant variables should not be listed in a closure's capture list to avoid confusion about closures capturing variables at creation time. capture_variable

Its name is Capture Variable. It is in the lint kind of rules. It is an opt-in rule, so SwiftLint runs it only when the configuration enables it. It is an analyzer rule, so it runs with swiftlint analyze and needs the compiler log.

Code
capture_variable

Source: github.com, realm.github.io. JSON record. This entry is a card. Help write this page.