Skip to content

Commit 35d9f6b

Browse files
add internal and private prefix with _
1 parent 55bdbc6 commit 35d9f6b

File tree

5 files changed

+17
-24
lines changed

5 files changed

+17
-24
lines changed

.editorconfig

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,34 @@ max_line_length = 150
1717
# naming style
1818
dotnet_naming_style.prefix_and_pascal_case.required_prefix = I
1919
dotnet_naming_style.prefix_and_pascal_case.capitalization = pascal_case
20-
2120
# naming symbols
2221
dotnet_naming_symbols.interfaces.applicable_kinds = interface
23-
2422
dotnet_naming_rule.interfaces_begin_with_I.severity = error
2523
dotnet_naming_rule.interfaces_begin_with_I.symbols = interfaces
2624
dotnet_naming_rule.interfaces_begin_with_I.style = prefix_and_pascal_case
27-
2825
dotnet_diagnostic.interfaces_begin_with_I.enabled = true
2926

3027
## Static fields should start with _s
3128
# naming style
3229
dotnet_naming_style.prefix_s.required_prefix = _s
3330
dotnet_naming_style.prefix_s.capitalization = camel_case
34-
3531
# naming symbols
3632
dotnet_naming_rule.static_fields_begin_with_s.style = prefix_s
3733
dotnet_naming_symbols.static_fields.applicable_kinds = field
3834
dotnet_naming_symbols.static_fields.applicable_accessibilities = public, internal, private, protected, protected_internal
3935
dotnet_naming_symbols.static_fields.required_modifiers = static
40-
4136
dotnet_naming_rule.static_fields_begin_with_s.severity = error
4237
dotnet_naming_rule.static_fields_begin_with_s.symbols = static_fields
4338
dotnet_diagnostic.static_fields_begin_with_s.enabled = true
39+
40+
## Internal or private member should prefixed with _
41+
# naming style
42+
dotnet_naming_style.internal_prefix_.required_prefix = _
43+
dotnet_naming_style.internal_prefix_.capitalization = camel_case
44+
# naming symbols
45+
dotnet_naming_rule.private_internal_prefix_.style = internal_prefix_
46+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
47+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = internal, private, protected_internal
48+
dotnet_naming_rule.private_internal_prefix_.severity = error
49+
dotnet_naming_rule.private_internal_prefix_.symbols = private_internal_fields
50+
dotnet_diagnostic.private_internal_prefix_.enabled = true

.github/workflows/linter.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
tags:
1414
description: "Linter"
1515
required: false
16-
permissions: { }
1716

1817
concurrency:
1918
# older builds for the same pull request number or branch should be cancelled
@@ -41,9 +40,6 @@ jobs:
4140
- name: Add dotnet tools to PATH
4241
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
4342

44-
# - name: Run dotnet restore
45-
# run: dotnet restore
46-
4743
- name: Run Linter Bash Script
4844
run: |
4945
bash ci/scripts/linter.sh

Snowflake.Data.Tests/Snowflake.Data.Tests.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net6.0;net471;net472</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net8.0</TargetFrameworks>
5-
<RuntimeFrameworkVersion>6.0.0</RuntimeFrameworkVersion>
6-
<RuntimeFrameworkVersion Condition="'$(TargetFramework)' == 'net8.0'">8.0.0</RuntimeFrameworkVersion>
3+
<TargetFrameworks>net6.0;net7.0;net8.0;net462;net471;net472;net48;net481</TargetFrameworks>
4+
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0;</TargetFrameworks>
75
<Title>Snowflake.Data.Tests</Title>
86
<Description>Snowflake Connector for .NET</Description>
97
<Company>Snowflake Computing, Inc</Company>

Snowflake.Data/Core/LinterTestFile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ namespace Snowflake.Data.Core
1212
public class LinterTestFile
1313
{
1414
private static int nuevoCampo;
15+
private int intWithoutPrefix_;
1516
}
1617
}

Snowflake.Data/Snowflake.Data.csproj

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net6.0;net471;net472</TargetFrameworks>
4-
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net8.0</TargetFrameworks>
3+
<TargetFramework>netstandard2.0</TargetFramework>
54
<Title>Snowflake.Data</Title>
65
<PackageId>Snowflake.Data</PackageId>
76
<PackageLicenseUrl>https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE</PackageLicenseUrl>
@@ -26,7 +25,7 @@
2625
<ItemGroup>
2726
<PackageReference Include="Apache.Arrow" Version="14.0.2" />
2827
<PackageReference Include="AWSSDK.S3" Version="3.7.0.4" />
29-
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.6.0" />
28+
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.10.0" />
3029
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" />
3130
<PackageReference Include="Azure.Storage.Common" Version="12.12.0" />
3231
<PackageReference Include="Mono.Unix" Version="7.1.0-final.1.21458.1" />
@@ -37,14 +36,6 @@
3736
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
3837
</ItemGroup>
3938

40-
<ItemGroup Condition="'$(TargetFramework)' == 'net471' Or '$(TargetFramework)' == 'net472'">
41-
<Reference Include="System.Net.Http" />
42-
</ItemGroup>
43-
44-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
45-
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
46-
</ItemGroup>
47-
4839
<ItemGroup Condition="'$(Configuration)' != 'Release'">
4940
<InternalsVisibleTo Include="Snowflake.Data.Tests" />
5041
<!--needed by Moq to be able to mock internal interfaces-->

0 commit comments

Comments
 (0)