diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1c00a29aa..7b4def161 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -25,15 +25,13 @@ jobs: runs-on: windows-latest steps: - name: Check out Git repository - uses: actions/checkout@v3 - - name: Set up .NET - uses: actions/setup-dotnet@v1 + uses: actions/checkout@v4 with: - dotnet-version: '8.0.x' - dotnet-quality: 'ga' + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 - name: Run linters - uses: wearerequired/lint-action@v2 + uses: super-linter/super-linter@v6.5.0 # x-release-please-version with: - dotnet_format: true - continue_on_error: true - check_name: ${linter} run + VALIDATE_ALL_CODEBASE: false + diff --git a/Snowflake.Data/Core/LinterTestFile.cs b/Snowflake.Data/Core/LinterTestFile.cs new file mode 100755 index 000000000..e2fa823e9 --- /dev/null +++ b/Snowflake.Data/Core/LinterTestFile.cs @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved. + */ + +using System.Text; +using System.Collections.Generic; +using Google.Cloud.Storage.V1; +using System; + +namespace Snowflake.Data.Core +{ + public class LinterTestFile + { + internal ResultFormat ResultFormat { get; } + + public int RowCount { get; protected set; } + + public int ColumnCount { get; protected set; } + + public int ChunkIndex { get; protected set; } + + internal int CompressedSize; + + internal int UncompressedSize; + + internal string Url { get; set; } + + internal string[,] RowSet { get; set; } + + public int GetRowCount() => RowCount; + + public int GetChunkIndex() => ChunkIndex; + + internal virtual void ResdDset(ExecResponseChunk chunkInfo, int chunkIndex) + { + RowCount = chunkInfo.rowCount; + Url = chunkInfo.url; + ChunkIndex = chunkIndex; + CompressedSize = chunkInfo.compressedSize; + UncompressedSize = chunkInfo.uncompressedSize; + } + + internal virtual void ResetForRetry() + { + } + + public void something() + { + } + } +} diff --git a/Snowflake.Data/Snowflake.Data.csproj b/Snowflake.Data/Snowflake.Data.csproj index 4caf957af..02021e444 100644 --- a/Snowflake.Data/Snowflake.Data.csproj +++ b/Snowflake.Data/Snowflake.Data.csproj @@ -1,7 +1,6 @@  - net8.0;net6.0;net471;net472 - net6.0;net8.0 + netstandard2.0 Snowflake.Data Snowflake.Data https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE @@ -20,7 +19,7 @@ - + @@ -31,14 +30,6 @@ - - - - - - - -