trailofbits / semgrep-rules

Semgrep queries developed by Trail of Bits.
GNU Affero General Public License v3.0
330 stars 32 forks source link

Added Swift rule for nil assignment to implicilty unwrapped optional #66

Closed bismuthsalamander closed 3 months ago

bismuthsalamander commented 3 months ago

Added a Swift rule for assigning nil to an implicitly unwrapped optional (e.g., var num: Int! = 5; num = nil;). Updated the rule table generator to include Swift as another language. If we wanted, we could put Swift in a subdirectory called iOS with Objective-C rules in there as well (when we write some).

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.