Skip to content

Commit

Permalink
editorconfig - Enable CA2247 to error on build (#4943)
Browse files Browse the repository at this point in the history
* Docs - Fix some invalid XML doc tags

* editorconfig - Enable CA2247
  • Loading branch information
campersau authored Sep 29, 2024
1 parent 17269dc commit 8aaa165
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,5 @@ csharp_space_between_square_brackets =
# Modifier order
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async : error

# CA2247: Argument passed to TaskCompletionSource constructor should be TaskCreationOptions enum instead of TaskContinuationOptions enum
dotnet_diagnostic.CA2247.severity = error
2 changes: 1 addition & 1 deletion CefSharp.OffScreen/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ protected virtual bool GetScreenPoint(int viewX, int viewY, out int screenX, out
return RenderHandler?.GetScreenPoint(viewX, viewY, out screenX, out screenY) ?? false;
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderWebBrowser.OnAcceleratedPaint(PaintElementType type, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
RenderHandler?.OnAcceleratedPaint(type, dirtyRect, acceleratedPaintInfo);
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.Wpf/ChromiumWebBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ void IRenderWebBrowser.OnAcceleratedPaint(PaintElementType type, Rect dirtyRect,
/// client application. The contents of <paramref name="acceleratedPaintInfo"/>acceleratedPaintInfo
/// will be released back to the pool after this callback returns.
/// </summary>
/// <param name="type">indicates whether the element is the view or the popup widget.</param>
/// <param name="isPopup">indicates whether the element is the view or the popup widget.</param>
/// <param name="dirtyRect">contains the set of rectangles in pixel coordinates that need to be repainted</param>
/// <param name="acceleratedPaintInfo">contains the shared handle; on Windows it is a
/// HANDLE to a texture that can be opened with D3D11 OpenSharedResource.</param>
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.Wpf/IRenderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public interface IRenderHandler : IDisposable
/// client application. The contents of <paramref name="acceleratedPaintInfo"/>acceleratedPaintInfo
/// will be released back to the pool after this callback returns.
/// </summary>
/// <param name="type">indicates whether the element is the view or the popup widget.</param>
/// <param name="isPopup">indicates whether the element is the view or the popup widget.</param>
/// <param name="dirtyRect">contains the set of rectangles in pixel coordinates that need to be repainted</param>
/// <param name="acceleratedPaintInfo">contains the shared handle; on Windows it is a
/// HANDLE to a texture that can be opened with D3D11 OpenSharedResource.</param>
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.Wpf/Rendering/AbstractRenderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected void ReleaseMemoryMappedView(ref MemoryMappedFile mappedFile, ref Memo
}
}

/// </<inheritdoc/>
/// <inheritdoc/>
public virtual void OnAcceleratedPaint(bool isPopup, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
// NOT USED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected virtual void Dispose(bool disposing)
}
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnAcceleratedPaint(bool isPopup, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
//NOT USED
Expand Down
6 changes: 3 additions & 3 deletions CefSharp.Wpf/Rendering/DirectWritableBitmapRenderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ public DirectWritableBitmapRenderHandler(double dpiX, double dpiY, bool invalida
this.invalidateDirtyRect = invalidateDirtyRect;
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IDisposable.Dispose()
{

}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnAcceleratedPaint(bool isPopup, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
throw new NotImplementedException();
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnPaint(bool isPopup, Rect dirtyRect, IntPtr buffer, int width, int height, Image image)
{
var writeableBitmap = image.Source as WriteableBitmap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public ByteArrayWritableBitmapRenderHandler(double dpiX, double dpiY, bool inval
this.dispatcherPriority = dispatcherPriority;
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnAcceleratedPaint(bool isPopup, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
//NOT USED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void BrowserIsVisibleChanged(object sender, DependencyPropertyChangedEve
}
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IDisposable.Dispose()
{
CompositionTarget.Rendering -= OnRendering;
Expand All @@ -79,13 +79,13 @@ void IDisposable.Dispose()
}
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnAcceleratedPaint(bool isPopup, Rect dirtyRect, AcceleratedPaintInfo acceleratedPaintInfo)
{
throw new NotImplementedException();
}

/// </<inheritdoc/>
/// <inheritdoc/>
void IRenderHandler.OnPaint(bool isPopup, Rect dirtyRect, IntPtr buffer, int width, int height, Image image)
{
if (image.Dispatcher.HasShutdownStarted)
Expand Down
2 changes: 1 addition & 1 deletion CefSharp/IWindowInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public interface IWindowInfo : IDisposable

/// <summary>
/// Optionally change the runtime style. Alloy style will always be used if
/// <see cref="WindowlessRenderingEnabled"> is true. See <see cref="CefRuntimeStyle"/>
/// <see cref="WindowlessRenderingEnabled"/> is true. See <see cref="CefRuntimeStyle"/>
/// documentation for details.
/// </summary>
CefRuntimeStyle RuntimeStyle { get; set; }
Expand Down

0 comments on commit 8aaa165

Please sign in to comment.