optin.osx.cocoa.localizability.EmptyLocalizationContextChecke | Check that NSLocalizedString macros include a comment for context | – (void)test { NSString *string = NSLocalizedString(@”LocalizedString”, nil); // warn NSString *string2 = NSLocalizedString(@”LocalizedString”, @” “); // warn NSString *string3 = NSLocalizedStringWithDefaultValue( @”LocalizedString”, nil, [[NSBundle alloc | Maintainability |
osx.cocoa.Loops | Improved modeling of loops using Cocoa collection types | | Maintainability |
osx.cocoa.NonNilReturnValue | Model the APIs that are guaranteed to return a non-nil value | | Maintainability |
osx.cocoa.NSAutoreleasePool | Warn for suboptimal uses of NSAutoreleasePool in Objective-C GC mode | void test() { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [pool release]; // warn } | Maintainability |
osx.cocoa.UnusedIvars | Warn about private ivars that are never used | @interface MyObj : NSObject { @private id x; // warn } @end @implementation MyObj @end | Maintainability |