GeezerVison is showing github.com — Minor cleanup all around · roji/Npgsql@e59da52
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .editorconfig +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,3 +37,4 @@ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion | 37 | 37 | csharp_style_inlined_variable_declaration = true:suggestion | 38 | 38 | csharp_style_throw_expression = true:suggestion | 39 | 39 | csharp_style_conditional_delegate_call = true:suggestion | | 40 | +csharp_indent_case_contents_when_block = false |
Collapse file Copy file name to clipboardExpand all lines: Npgsql.sln.DotSettings +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArgumentsStyleStringLiteral/@EntryIndexedValue">DO_NOT_SHOW</s:String> | 7 | 7 | <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBePrivate_002EGlobal/@EntryIndexedValue">DO_NOT_SHOW</s:String> | 8 | 8 | <s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=MemberCanBeProtected_002EGlobal/@EntryIndexedValue">DO_NOT_SHOW</s:String> | | 9 | + <s:String x:Key="/Default/CodeInspection/Highlighting/UsageCheckingInspectionLevel/@EntryValue">InternalsOnly</s:String> | 9 | 10 | <s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/ARGUMENTS_LITERAL/@EntryValue">Positional</s:String> | 10 | 11 | <s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/ARGUMENTS_NAMED/@EntryValue">Positional</s:String> | 11 | 12 | <s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/DEFAULT_INTERNAL_MODIFIER/@EntryValue">Implicit</s:String> | | 14 | 15 | <s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_ACCESSORHOLDER_ATTRIBUTE_ON_SAME_LINE_EX/@EntryValue">NEVER</s:String> | 15 | 16 | <s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AFTER_TYPECAST_PARENTHESES/@EntryValue">False</s:Boolean> | 16 | 17 | <s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES/@EntryValue">True</s:Boolean> | | 18 | + <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=CRS/@EntryIndexedValue">CRS</s:String> | 17 | 19 | <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GIS/@EntryIndexedValue">GIS</s:String> | 18 | 20 | <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=GSS/@EntryIndexedValue">GSS</s:String> | | 21 | + <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=HMAC/@EntryIndexedValue">HMAC</s:String> | 19 | 22 | <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MD/@EntryIndexedValue">MD</s:String> | 20 | 23 | <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=OID/@EntryIndexedValue">OID</s:String> | 21 | 24 | <s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=SASL/@EntryIndexedValue">SASL</s:String> | | 88 | 91 | <s:Boolean x:Key="/Default/UserDictionary/Words/=Npgsql/@EntryIndexedValue">True</s:Boolean> | 89 | 92 | <s:Boolean x:Key="/Default/UserDictionary/Words/=Npgsql_0027s/@EntryIndexedValue">True</s:Boolean> | 90 | 93 | <s:Boolean x:Key="/Default/UserDictionary/Words/=PGTZ/@EntryIndexedValue">True</s:Boolean> | | 94 | + <s:Boolean x:Key="/Default/UserDictionary/Words/=Postgis/@EntryIndexedValue">True</s:Boolean> | 91 | 95 | <s:Boolean x:Key="/Default/UserDictionary/Words/=Postgre/@EntryIndexedValue">True</s:Boolean> | 92 | 96 | <s:Boolean x:Key="/Default/UserDictionary/Words/=Pregenerated/@EntryIndexedValue">True</s:Boolean> | 93 | 97 | <s:Boolean x:Key="/Default/UserDictionary/Words/=P_0020keepaliv/@EntryIndexedValue">True</s:Boolean> | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.GeoJSON/NpgsqlGeoJSONExtensions.cs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | using Npgsql.TypeMapping; | 7 | 7 | using NpgsqlTypes; | 8 | 8 |
| | 9 | +// ReSharper disable once CheckNamespace | 9 | 10 | namespace Npgsql | 10 | 11 | { | 11 | 12 | /// <summary> | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.Json.NET/JsonHandler.cs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ public override NpgsqlTypeHandler<string> Create(PostgresType postgresType, Npgs | 20 | 20 | => new JsonHandler(postgresType, conn, _settings); | 21 | 21 | } | 22 | 22 |
| 23 | | - class JsonHandler : Npgsql.TypeHandlers.TextHandler | | 23 | + class JsonHandler : TypeHandlers.TextHandler | 24 | 24 | { | 25 | 25 | readonly JsonSerializerSettings _settings; | 26 | 26 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.Json.NET/JsonbHandler.cs -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | using System; | 2 | | -using System.Linq; | 3 | | -using System.Text.Json; | 4 | 2 | using System.Threading.Tasks; | 5 | 3 | using Newtonsoft.Json; | 6 | 4 | using Npgsql.BackendMessages; | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.NetTopologySuite/NetTopologySuiteHandler.cs +9-9Lines changed: 9 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -135,30 +135,30 @@ public override void Write(byte[] buffer, int offset, int count) | 135 | 135 | #region Write | 136 | 136 |
| 137 | 137 | public override Task Write(Geometry value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 138 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 138 | + => WriteCore(value, buf); | 139 | 139 |
| 140 | 140 | Task INpgsqlTypeHandler<Point>.Write(Point value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 141 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 141 | + => WriteCore(value, buf); | 142 | 142 |
| 143 | 143 | Task INpgsqlTypeHandler<LineString>.Write(LineString value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 144 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 144 | + => WriteCore(value, buf); | 145 | 145 |
| 146 | 146 | Task INpgsqlTypeHandler<Polygon>.Write(Polygon value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 147 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 147 | + => WriteCore(value, buf); | 148 | 148 |
| 149 | 149 | Task INpgsqlTypeHandler<MultiPoint>.Write(MultiPoint value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 150 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 150 | + => WriteCore(value, buf); | 151 | 151 |
| 152 | 152 | Task INpgsqlTypeHandler<MultiLineString>.Write(MultiLineString value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 153 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 153 | + => WriteCore(value, buf); | 154 | 154 |
| 155 | 155 | Task INpgsqlTypeHandler<MultiPolygon>.Write(MultiPolygon value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 156 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 156 | + => WriteCore(value, buf); | 157 | 157 |
| 158 | 158 | Task INpgsqlTypeHandler<GeometryCollection>.Write(GeometryCollection value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | 159 | | - => WriteCore(value, buf, lengthCache, parameter, async); | | 159 | + => WriteCore(value, buf); | 160 | 160 |
| 161 | | - Task WriteCore(Geometry value, NpgsqlWriteBuffer buf, NpgsqlLengthCache? lengthCache, NpgsqlParameter? parameter, bool async) | | 161 | + Task WriteCore(Geometry value, NpgsqlWriteBuffer buf) | 162 | 162 | { | 163 | 163 | _writer.Write(value, buf.GetStream()); | 164 | 164 | return Task.CompletedTask; | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.NetTopologySuite/NpgsqlNetTopologySuiteExtensions.cs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | using Npgsql.TypeMapping; | 8 | 8 | using NpgsqlTypes; | 9 | 9 |
| | 10 | +// ReSharper disable once CheckNamespace | 10 | 11 | namespace Npgsql | 11 | 12 | { | 12 | 13 | /// <summary> | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.RawPostgis/NpgsqlRawPostgisExtensions.cs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -using Npgsql.LegacyPostgis; | | 1 | +using Npgsql.RawPostgis; | 2 | 2 | using Npgsql.TypeMapping; | 3 | 3 | using NpgsqlTypes; | 4 | 4 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql.RawPostgis/PostgisRawHandler.cs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 |
| 5 | 5 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member | 6 | 6 |
| 7 | | -namespace Npgsql.LegacyPostgis | | 7 | +namespace Npgsql.RawPostgis | 8 | 8 | { | 9 | 9 | public class PostgisRawHandlerFactory : NpgsqlTypeHandlerFactory<byte[]> | 10 | 10 | { | |
Collapse file Copy file name to clipboardExpand all lines: src/Npgsql/BackendMessages/AuthenticationMessages.cs +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -using System; | 2 | | -using System.Collections.Generic; | 3 | | -using System.Diagnostics; | | 1 | +using System.Collections.Generic; | 4 | 2 | using Npgsql.Logging; | 5 | 3 | using Npgsql.Util; | 6 | 4 |
| |
|