Skip to content

Instantly share code, notes, and snippets.

Pavel Zdeněk pavel-zdenek

Block or report user

Report or block pavel-zdenek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pavel-zdenek
pavel-zdenek / find_force_unwraps_swift.md
Last active Jan 25, 2017
Regex to search for force unwraps in Swift code
View find_force_unwraps_swift.md

^(?!(.*?\s+)?(#|\/\/)).*?\w+\!([ .\)]|$)

Breakdown:

^(?!.*?\s+(#|\/\/)\s+) Filter out comments in shellscript and C++ single-line style. C-style multiline would be nice to have but extremely complicated and this already covers 80%

?! Assert nonmatch of (.*?\s+)? Optionally a sequence of any characters followed by at least one whitespace

@pavel-zdenek
pavel-zdenek / Signing.md
Last active Nov 5, 2016
Xcode8 on Circle insists on Pod signing
View Signing.md
You can’t perform that action at this time.