Refactor Query.cs for readability and resource management #28
Annotations
1 error and 31 warnings
windows-build
Container action is only supported on Linux
|
mac-build:
DataProviders/WebServiceWsdl.cs#L209
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
mac-build:
DataProviders/TxtDataReader.cs#L209
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
mac-build:
DataProviders/TxtDataReader.cs#L205
Call System.IDisposable.Dispose on object created by 'new FileStream(fname.Substring(5), System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
mac-build:
DataProviders/MultipleStreamReader.cs#L141
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
mac-build:
Majorsilence.Drawing.Common/Bitmap.cs#L34
'Bitmap.Save(Stream, ImageFormat)' hides inherited member 'Image.Save(Stream, ImageFormat)'. Use the new keyword if hiding was intended.
|
mac-build:
Majorsilence.Drawing.Common/Bitmap.cs#L46
'Bitmap.Dispose()' hides inherited member 'Image.Dispose()'. Use the new keyword if hiding was intended.
|
mac-build:
Majorsilence.Drawing.Common/Bitmap.cs#L52
'Bitmap.FromFile(string)' hides inherited member 'Image.FromFile(string)'. Use the new keyword if hiding was intended.
|
mac-build:
Majorsilence.Drawing.Common/Drawing2D/HatchBrush.cs#L24
'HatchBrush.ToSkPaint()' hides inherited member 'Brush.ToSkPaint()'. Use the new keyword if hiding was intended.
|
mac-build:
Majorsilence.Drawing.Common/Point.cs#L35
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
|
mac-build:
Majorsilence.Drawing.Common/Point.cs#L5
'Point' overrides Object.Equals(object o) but does not override Object.GetHashCode()
|
linux-build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
linux-build:
DataProviders/WebServiceWsdl.cs#L209
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
linux-build:
DataProviders/TxtDataReader.cs#L209
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
linux-build:
DataProviders/TxtDataReader.cs#L205
Call System.IDisposable.Dispose on object created by 'new FileStream(fname.Substring(5), System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
linux-build:
DataProviders/MultipleStreamReader.cs#L141
Call System.IDisposable.Dispose on object created by 'new FileStream(fname, System.IO.FileMode.Open, FileAccess.Read)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
linux-build:
Majorsilence.Drawing.Common/Bitmap.cs#L34
'Bitmap.Save(Stream, ImageFormat)' hides inherited member 'Image.Save(Stream, ImageFormat)'. Use the new keyword if hiding was intended.
|
linux-build:
Majorsilence.Drawing.Common/Bitmap.cs#L46
'Bitmap.Dispose()' hides inherited member 'Image.Dispose()'. Use the new keyword if hiding was intended.
|
linux-build:
Majorsilence.Drawing.Common/Bitmap.cs#L52
'Bitmap.FromFile(string)' hides inherited member 'Image.FromFile(string)'. Use the new keyword if hiding was intended.
|
linux-build:
Majorsilence.Drawing.Common/Point.cs#L35
Nullability of type of parameter 'obj' doesn't match overridden member (possibly because of nullability attributes).
|
linux-build:
Majorsilence.Drawing.Common/Drawing2D/HatchBrush.cs#L24
'HatchBrush.ToSkPaint()' hides inherited member 'Brush.ToSkPaint()'. Use the new keyword if hiding was intended.
|
linux-build:
Majorsilence.Drawing.Common/Point.cs#L5
'Point' overrides Object.Equals(object o) but does not override Object.GetHashCode()
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1732
'WebRequest.Create(string)' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.' (https://aka.ms/dotnet-warnings/SYSLIB0014)
|
windows-build:
RdlMapFile/RdlMapFile.cs#L53
Call System.IDisposable.Dispose on object created by 'new MapFile(file)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L816
Call System.IDisposable.Dispose on object created by 'new ContextMenuStrip()' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1179
Call System.IDisposable.Dispose on object created by 'new Font("Arial", 12)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1219
Call System.IDisposable.Dispose on object created by 'new Font("Arial", 12)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1320
Call System.IDisposable.Dispose on object created by 'new Font("Arial", 12)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1362
Call System.IDisposable.Dispose on object created by 'new Font("Arial", 12)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1455
Call System.IDisposable.Dispose on object created by 'new Font("Arial", 12)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/DesignXmlDraw.cs#L1662
Call System.IDisposable.Dispose on object created by 'new GraphicsPath()' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|
windows-build:
RdlMapFile/ShapeFile.cs#L762
Call System.IDisposable.Dispose on object created by 'new OleDbDataAdapter()' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
|