Skip to content

Commit

Permalink
test commit new linter action
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-erojaslizano committed May 20, 2024
1 parent abb5c4a commit 6565142
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 20 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected] # x-release-please-version
with:
dotnet_format: true
continue_on_error: true
check_name: ${linter} run
VALIDATE_ALL_CODEBASE: false

51 changes: 51 additions & 0 deletions Snowflake.Data/Core/LinterTestFile.cs
Original file line number Diff line number Diff line change
@@ -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()
{
}
}
}
13 changes: 2 additions & 11 deletions Snowflake.Data/Snowflake.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;net471;net472</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net8.0</TargetFrameworks>
<TargetFramework>netstandard2.0</TargetFramework>
<Title>Snowflake.Data</Title>
<PackageId>Snowflake.Data</PackageId>
<PackageLicenseUrl>https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE</PackageLicenseUrl>
Expand All @@ -20,7 +19,7 @@
<ItemGroup>
<PackageReference Include="Apache.Arrow" Version="14.0.2" />
<PackageReference Include="AWSSDK.S3" Version="3.7.0.4" />
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.6.0" />
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.10.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" />
<PackageReference Include="Azure.Storage.Common" Version="12.12.0" />
<PackageReference Include="Mono.Unix" Version="7.1.0-final.1.21458.1" />
Expand All @@ -31,14 +30,6 @@
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net471' Or '$(TargetFramework)' == 'net472'">
<Reference Include="System.Net.Http" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' != 'Release'">
<InternalsVisibleTo Include="Snowflake.Data.Tests" />
<!--needed by Moq to be able to mock internal interfaces-->
Expand Down

0 comments on commit 6565142

Please sign in to comment.