diff --git a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.todo b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.todo index 7a57662295..7eb9d3c21a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.todo +++ b/tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-UIKit.todo @@ -1,7 +1,7 @@ !extra-null-allowed! 'Foundation.NSIndexPath UIKit.UICollectionViewDataSource::GetIndexPath(UIKit.UICollectionView,System.String,System.nint)' has a extraneous [NullAllowed] on return type -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 !extra-null-allowed! 'System.Boolean UIKit.UIApplication::CanOpenUrl(Foundation.NSUrl)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.IntPtr Foundation.NSAttributedString::InitWithURL(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 !extra-null-allowed! 'System.Void Foundation.NSAttributedString::.ctor(Foundation.NSData,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 @@ -187,7 +187,7 @@ !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesChanged(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesEnded(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScene::set_Title(System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,System.nfloat)' is missing an [NullAllowed] on parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,ObjCRuntime.nfloat)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingStarted(UIKit.UIScrollView,UIKit.UIView)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UISearchBar::_SetScopeBarButtonTitle(Foundation.NSDictionary,UIKit.UIControlState)' is missing an [NullAllowed] on parameter #0 !missing-null-allowed! 'System.Void UIKit.UISearchTextField::set_TokenBackgroundColor(UIKit.UIColor)' is missing an [NullAllowed] on parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/common-MetalKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/common-MetalKit.ignore index 9111395d0c..1a1b66cf1a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/common-MetalKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/common-MetalKit.ignore @@ -1,7 +1,7 @@ # Initial result from new rule missing-release-attribute-on-return-value !missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromCGImage(CoreGraphics.CGImage,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithCGImage:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromData(Foundation.NSData,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithData:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. -!missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromName(System.String,System.nfloat,Foundation.NSBundle,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithName:scaleFactor:bundle:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. +!missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromName(System.String,ObjCRuntime.nfloat,Foundation.NSBundle,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithName:scaleFactor:bundle:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromTexture(ModelIO.MDLTexture,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithMDLTexture:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromUrl(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithContentsOfURL:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. !missing-release-attribute-on-return-value! Metal.IMTLTexture[] MetalKit.MTKTextureLoader::FromUrls(Foundation.NSUrl[],Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTexturesWithContentsOfURLs:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore index 97b56b1120..2f9eba348b 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/iOS-UIKit.ignore @@ -78,9 +78,9 @@ # Initial result from new rule extra-null-allowed !extra-null-allowed! 'Foundation.NSIndexPath UIKit.UICollectionViewDataSource::GetIndexPath(UIKit.UICollectionView,System.String,System.nint)' has a extraneous [NullAllowed] on return type -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 !extra-null-allowed! 'System.Boolean UIKit.UIApplication::CanOpenUrl(Foundation.NSUrl)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.IntPtr Foundation.NSAttributedString::InitWithURL(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 !extra-null-allowed! 'System.Void Foundation.NSAttributedString::.ctor(Foundation.NSData,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 @@ -261,7 +261,7 @@ !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesChanged(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesEnded(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScene::set_Title(System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,System.nfloat)' is missing an [NullAllowed] on parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,ObjCRuntime.nfloat)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingStarted(UIKit.UIScrollView,UIKit.UIView)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UISearchBar::_SetScopeBarButtonTitle(Foundation.NSDictionary,UIKit.UIControlState)' is missing an [NullAllowed] on parameter #0 !missing-null-allowed! 'System.Void UIKit.UISearchTextField::set_TokenBackgroundColor(UIKit.UIColor)' is missing an [NullAllowed] on parameter #0 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore index 9216b6dbf6..411cc5857a 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.ignore @@ -345,9 +345,9 @@ !extra-null-allowed! 'AppKit.NSView AppKit.NSSharingServiceDelegate::CreateAnchoringView(AppKit.NSSharingService,CoreGraphics.CGRect&,AppKit.NSRectEdge&)' has a extraneous [NullAllowed] on parameter #2 !extra-null-allowed! 'AppKit.NSView AppKit.NSTableView::MakeView(System.String,Foundation.NSObject)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'Foundation.NSString AppKit.NSTableViewDelegate::GetToolTip(AppKit.NSTableView,AppKit.NSCell,CoreGraphics.CGRect&,AppKit.NSTableColumn,System.nint,CoreGraphics.CGPoint)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 -!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 +!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 +!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.Boolean AppKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(AppKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,AppKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 !extra-null-allowed! 'System.Boolean AppKit.NSView::KnowsPageRange(Foundation.NSRange&)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.nuint AppKit.NSTypesetter::LayoutParagraphAtPoint(CoreGraphics.CGPoint&)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.String AppKit.NSOutlineViewDelegate::ToolTipForCell(AppKit.NSOutlineView,AppKit.NSCell,CoreGraphics.CGRect&,AppKit.NSTableColumn,Foundation.NSObject,CoreGraphics.CGPoint)' has a extraneous [NullAllowed] on parameter #2 @@ -362,9 +362,9 @@ !extra-null-allowed! 'System.Void AppKit.NSFilePromiseProviderDelegate::WritePromiseToUrl(AppKit.NSFilePromiseProvider,Foundation.NSUrl,System.Action`1)' has a extraneous [NullAllowed] on parameter #2 !extra-null-allowed! 'System.Void AppKit.NSFontManager::set_Action(ObjCRuntime.Selector)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.Void AppKit.NSSegmentedControl::SetLabel(System.String,System.nint)' has a extraneous [NullAllowed] on parameter #0 -!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,System.nfloat&)' has a extraneous [NullAllowed] on parameter #0 -!extra-null-allowed! 'System.Void AppKit.NSView::AdjustPageHeightNew(System.nfloat&,System.nfloat,System.nfloat,System.nfloat)' has a extraneous [NullAllowed] on parameter #0 -!extra-null-allowed! 'System.Void AppKit.NSView::AdjustPageWidthNew(System.nfloat&,System.nfloat,System.nfloat,System.nfloat)' has a extraneous [NullAllowed] on parameter #0 +!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,ObjCRuntime.nfloat&)' has a extraneous [NullAllowed] on parameter #0 +!extra-null-allowed! 'System.Void AppKit.NSView::AdjustPageHeightNew(ObjCRuntime.nfloat&,ObjCRuntime.nfloat,ObjCRuntime.nfloat,ObjCRuntime.nfloat)' has a extraneous [NullAllowed] on parameter #0 +!extra-null-allowed! 'System.Void AppKit.NSView::AdjustPageWidthNew(ObjCRuntime.nfloat&,ObjCRuntime.nfloat,ObjCRuntime.nfloat,ObjCRuntime.nfloat)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.Void AppKit.NSView::DidAddSubview(AppKit.NSView)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.Void AppKit.NSView::set_BackgroundFilters(CoreImage.CIFilter[])' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.Void AppKit.NSView::set_ContentFilters(CoreImage.CIFilter[])' has a extraneous [NullAllowed] on parameter #0 @@ -399,12 +399,12 @@ !missing-null-allowed! 'AppKit.NSCollectionViewItem AppKit.NSCollectionView::ItemAtIndex(System.nint)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSBitmapImageRep::ColorAt(System.nint,System.nint)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSBrowserCell::HighlightColorInView(AppKit.NSView)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::BlendedColor(System.nfloat,AppKit.NSColor)' is missing an [NullAllowed] on return type +!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::BlendedColor(ObjCRuntime.nfloat,AppKit.NSColor)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::FromCatalogName(System.String,System.String)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::FromCGColor(CoreGraphics.CGColor)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::FromPasteboard(AppKit.NSPasteboard)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::HighlightWithLevel(System.nfloat)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::ShadowWithLevel(System.nfloat)' is missing an [NullAllowed] on return type +!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::HighlightWithLevel(ObjCRuntime.nfloat)' is missing an [NullAllowed] on return type +!missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::ShadowWithLevel(ObjCRuntime.nfloat)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSColor::UsingColorSpace(AppKit.NSColorSpace)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSColorList::ColorWithKey(System.String)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSColor AppKit.NSTextBlock::GetBorderColor(AppKit.NSRectEdge)' is missing an [NullAllowed] on return type @@ -429,7 +429,7 @@ !missing-null-allowed! 'AppKit.NSEvent AppKit.NSWindow::NextEventMatchingMask(System.nuint)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSEvent AppKit.NSWindow::NextEventMatchingMask(System.nuint,Foundation.NSDate,System.String,System.Boolean)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSFont AppKit.NSFontManager::ConvertFont(AppKit.NSFont,System.String)' is missing an [NullAllowed] on return type -!missing-null-allowed! 'AppKit.NSFont AppKit.NSFontManager::FontWithFamily(System.String,AppKit.NSFontTraitMask,System.nint,System.nfloat)' is missing an [NullAllowed] on return type +!missing-null-allowed! 'AppKit.NSFont AppKit.NSFontManager::FontWithFamily(System.String,AppKit.NSFontTraitMask,System.nint,ObjCRuntime.nfloat)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSFont AppKit.NSFontManager::get_SelectedFont()' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSFontCollection AppKit.NSFontCollection::FromLocale(Foundation.NSLocale)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSFontCollection AppKit.NSFontCollection::FromName(System.String)' is missing an [NullAllowed] on return type @@ -548,7 +548,7 @@ !missing-null-allowed! 'AppKit.NSTextInputContext AppKit.NSTextInputContext::get_CurrentInputContext()' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSTextInputContext AppKit.NSView::get_InputContext()' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSTextStorage AppKit.NSTextView::get_TextStorage()' is missing an [NullAllowed] on return type -!missing-null-allowed! 'AppKit.NSTextTab AppKit.NSTypesetter::GetTextTab(System.nfloat,AppKit.NSWritingDirection,System.nfloat)' is missing an [NullAllowed] on return type +!missing-null-allowed! 'AppKit.NSTextTab AppKit.NSTypesetter::GetTextTab(ObjCRuntime.nfloat,Foundation.NSWritingDirection,ObjCRuntime.nfloat)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSTextView AppKit.NSCell::FieldEditorForView(AppKit.NSView)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSTouchBar AppKit.NSResponder_NSTouchBarProvider::MakeTouchBar(AppKit.NSResponder)' is missing an [NullAllowed] on return type !missing-null-allowed! 'AppKit.NSTrackingArea AppKit.NSEvent::get_TrackingArea()' is missing an [NullAllowed] on return type @@ -1263,8 +1263,8 @@ !extra-null-allowed! 'System.Void AppKit.NSControl::EditWithFrame(CoreGraphics.CGRect,AppKit.NSText,Foundation.NSObject,AppKit.NSEvent)' has a extraneous [NullAllowed] on parameter #1 !extra-null-allowed! 'System.Void AppKit.NSControl::SelectWithFrame(CoreGraphics.CGRect,AppKit.NSText,Foundation.NSObject,System.nint,System.nint)' has a extraneous [NullAllowed] on parameter #1 !extra-null-allowed! 'System.Void AppKit.NSDraggingSession::EnumerateDraggingItems(AppKit.NSDraggingItemEnumerationOptions,AppKit.NSView,System.IntPtr,Foundation.NSDictionary,AppKit.NSDraggingEnumerator)' has a extraneous [NullAllowed] on parameter #3 -!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,System.nfloat&)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,System.nfloat&)' has a extraneous [NullAllowed] on parameter #3 +!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,ObjCRuntime.nfloat&)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.Void AppKit.NSTypesetter::WillSetLineFragment(CoreGraphics.CGRect&,Foundation.NSRange,CoreGraphics.CGRect&,ObjCRuntime.nfloat&)' has a extraneous [NullAllowed] on parameter #3 !missing-null-allowed! 'AppKit.NSEvent AppKit.NSWindow::NextEventMatchingMask(System.nuint,Foundation.NSDate,System.String,System.Boolean)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'AppKit.NSPrintOperation AppKit.NSPrintOperation::EpsFromView(AppKit.NSView,CoreGraphics.CGRect,Foundation.NSMutableData)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'Foundation.NSObject AppKit.NSAccessibilityElement::CreateElement(Foundation.NSString,CoreGraphics.CGRect,Foundation.NSString,Foundation.NSObject)' is missing an [NullAllowed] on parameter #2 @@ -1277,7 +1277,7 @@ !missing-null-allowed! 'Foundation.NSSet AppKit.NSEvent::TouchesMatchingPhase(AppKit.NSTouchPhase,AppKit.NSView)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Boolean AppKit.NSImage::HitTestRect(CoreGraphics.CGRect,CoreGraphics.CGRect,AppKit.NSGraphicsContext,Foundation.NSDictionary,System.Boolean)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Boolean AppKit.NSImage::HitTestRect(CoreGraphics.CGRect,CoreGraphics.CGRect,AppKit.NSGraphicsContext,Foundation.NSDictionary,System.Boolean)' is missing an [NullAllowed] on parameter #3 -!missing-null-allowed! 'System.Boolean AppKit.NSImageRep::DrawInRect(CoreGraphics.CGRect,CoreGraphics.CGRect,AppKit.NSCompositingOperation,System.nfloat,System.Boolean,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #5 +!missing-null-allowed! 'System.Boolean AppKit.NSImageRep::DrawInRect(CoreGraphics.CGRect,CoreGraphics.CGRect,AppKit.NSCompositingOperation,ObjCRuntime.nfloat,System.Boolean,Foundation.NSDictionary)' is missing an [NullAllowed] on parameter #5 !missing-null-allowed! 'System.Boolean AppKit.NSTextAttachmentCell::TrackMouse(AppKit.NSEvent,CoreGraphics.CGRect,AppKit.NSView,System.Boolean)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Boolean AppKit.NSTextAttachmentCell::TrackMouse(AppKit.NSEvent,CoreGraphics.CGRect,AppKit.NSView,System.nuint,System.Boolean)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Boolean AppKit.NSTextAttachmentCell::WantsToTrackMouse(AppKit.NSEvent,CoreGraphics.CGRect,AppKit.NSView,System.nuint)' is missing an [NullAllowed] on parameter #2 @@ -1289,9 +1289,9 @@ !missing-null-allowed! 'System.String[] AppKit.NSSpellChecker::CompletionsForPartialWordRange(Foundation.NSRange,System.String,System.String,System.nint)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.String[] AppKit.NSSpellChecker::GuessesForWordRange(Foundation.NSRange,System.String,System.String,System.nint)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Void AppKit.NSApplication::DiscardEvents(System.nuint,AppKit.NSEvent)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(System.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #1 -!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(System.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #2 -!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(System.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #3 +!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(ObjCRuntime.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #1 +!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(ObjCRuntime.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #2 +!missing-null-allowed! 'System.Void AppKit.NSBitmapImageRep::Colorize(ObjCRuntime.nfloat,AppKit.NSColor,AppKit.NSColor,AppKit.NSColor)' is missing an [NullAllowed] on parameter #3 !missing-null-allowed! 'System.Void AppKit.NSCell::EditWithFrame(CoreGraphics.CGRect,AppKit.NSView,AppKit.NSText,Foundation.NSObject,AppKit.NSEvent)' is missing an [NullAllowed] on parameter #4 !missing-null-allowed! 'System.Void AppKit.NSDocumentController::ReviewUnsavedDocuments(System.String,System.Boolean,Foundation.NSObject,ObjCRuntime.Selector,System.IntPtr)' is missing an [NullAllowed] on parameter #2 !missing-null-allowed! 'System.Void AppKit.NSDocumentController::ReviewUnsavedDocuments(System.String,System.Boolean,Foundation.NSObject,ObjCRuntime.Selector,System.IntPtr)' is missing an [NullAllowed] on parameter #3 diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MetalKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MetalKit.ignore index 6c12d0814c..1b7ae0d2d7 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-MetalKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/macOS-MetalKit.ignore @@ -1 +1 @@ -!missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromName(System.String,System.nfloat,AppKit.NSDisplayGamut,Foundation.NSBundle,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithName:scaleFactor:displayGamut:bundle:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. +!missing-release-attribute-on-return-value! Metal.IMTLTexture MetalKit.MTKTextureLoader::FromName(System.String,ObjCRuntime.nfloat,AppKit.NSDisplayGamut,Foundation.NSBundle,Foundation.NSDictionary,Foundation.NSError&)'s selector's ('newTextureWithName:scaleFactor:displayGamut:bundle:options:error:') Objective-C method family ('new') indicates that the native method returns a retained object, and as such a '[return: Release]' attribute is required. diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore index 5c5b3d615d..93462ff463 100644 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore +++ b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-UIKit.ignore @@ -109,9 +109,9 @@ # Initial result from new rule extra-null-allowed !extra-null-allowed! 'Foundation.NSIndexPath UIKit.UICollectionViewDataSource::GetIndexPath(UIKit.UICollectionView,System.String,System.nint)' has a extraneous [NullAllowed] on return type -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 -!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,System.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #1 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #2 +!extra-null-allowed! 'System.Boolean UIKit.NSLayoutManagerDelegate::ShouldSetLineFragmentRect(UIKit.NSLayoutManager,CoreGraphics.CGRect&,CoreGraphics.CGRect&,ObjCRuntime.nfloat&,UIKit.NSTextContainer,Foundation.NSRange)' has a extraneous [NullAllowed] on parameter #3 !extra-null-allowed! 'System.Boolean UIKit.UIApplication::CanOpenUrl(Foundation.NSUrl)' has a extraneous [NullAllowed] on parameter #0 !extra-null-allowed! 'System.Void Foundation.NSAttributedString::.ctor(Foundation.NSData,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 !extra-null-allowed! 'System.Void Foundation.NSAttributedString::.ctor(Foundation.NSUrl,Foundation.NSDictionary,Foundation.NSDictionary&,Foundation.NSError&)' has a extraneous [NullAllowed] on parameter #1 @@ -228,7 +228,7 @@ !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesChanged(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIResponder::PressesEnded(Foundation.NSSet`1,UIKit.UIPressesEvent)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScene::set_Title(System.String)' is missing an [NullAllowed] on parameter #0 -!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,System.nfloat)' is missing an [NullAllowed] on parameter #1 +!missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingEnded(UIKit.UIScrollView,UIKit.UIView,ObjCRuntime.nfloat)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UIScrollViewDelegate::ZoomingStarted(UIKit.UIScrollView,UIKit.UIView)' is missing an [NullAllowed] on parameter #1 !missing-null-allowed! 'System.Void UIKit.UISearchBar::_SetScopeBarButtonTitle(Foundation.NSDictionary,UIKit.UIControlState)' is missing an [NullAllowed] on parameter #0 !missing-null-allowed! 'System.Void UIKit.UISegmentedControl::.ctor(Foundation.NSArray)' is missing an [NullAllowed] on parameter #0