diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 3d242d98..76495cf4 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -40,7 +40,6 @@ reviews: - "!**/perf/**" # Exclude performance tests - "!**/quantower/**" # Exclude root quantower directory - "!**/Mocks/**" # Exclude Mocks - - "!**/test_collection_expr.cs" # Exclude scratch files - "!**/*.so" # Exclude Shared Objects - "!**/*.dylib" # Exclude Dynamic Libraries - "!**/*.log" # Exclude Log files diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 8c985075..394b2893 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -177,7 +177,7 @@ jobs: path: .qodana/code-coverage - name: Qodana Scan - uses: JetBrains/qodana-action@v2024.3.4 + uses: JetBrains/qodana-action@b60a4b95388c6e8647571e16f3984e9d0da499e1 # v2024.3.4 env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} with: @@ -201,7 +201,7 @@ jobs: path: coverage - name: Upload to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@1e68e06f1dbfde0f4cefc87efeba9e4643565303 # v5.1.2 with: directory: coverage verbose: true @@ -262,7 +262,7 @@ jobs: dotnet-version: ${{ env.DOTNET_VERSION }} - name: Install Snyk CLI - uses: snyk/actions/setup@master + uses: snyk/actions/setup@806182742461562b67788a64410098c9d9b96adb # master - name: Restore dependencies run: dotnet restore @@ -331,14 +331,14 @@ jobs: dotnet-version: ${{ env.DOTNET_VERSION }} - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.1.11 + uses: gittools/actions/gitversion/setup@4934e803a6603a118d0979e2c608a113d077b946 # v3.1.11 with: versionSpec: '6.x' includePrerelease: true - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.1.11 + uses: gittools/actions/gitversion/execute@9393967d73967d6a599b514b1b31278f99e82110 # v3.1.11 with: useConfigFile: true updateAssemblyInfo: false diff --git a/test_collection_expr.cs b/test_collection_expr.cs deleted file mode 100644 index 72d08685..00000000 --- a/test_collection_expr.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; -using QuanTAlib; - -public class Test -{ - public TSeries Create() - { - return []; - } -} diff --git a/test_record_struct.cs b/test_record_struct.cs deleted file mode 100644 index dcaf5c5a..00000000 --- a/test_record_struct.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; - -namespace QuanTAlib; - -public class RecordStructTest -{ - private record struct State(double Val, bool Flag); - - public static void Run() - { - var s1 = new State(1.0, true); - var s2 = new State(1.0, true); - var s3 = new State(2.0, false); - - Console.WriteLine($"s1 == s2: {s1 == s2}"); // Should be True - Console.WriteLine($"s1 == s3: {s1 == s3}"); // Should be False - Console.WriteLine($"s1 equals s2: {s1.Equals(s2)}"); // Should be True - - // Verify mutability - s1.Val = 3.0; - Console.WriteLine($"s1 modified: {s1.Val}"); - } -}