From 6532a1074998a9f52e2305d2d44d718fcdf7a993 Mon Sep 17 00:00:00 2001 From: AlekseyMartynov Date: Fri, 8 Sep 2023 17:44:24 +0300 Subject: [PATCH] `dotnet format` --- .github/workflows/ci.yml | 7 +++++++ Tagging/PeakFinder.cs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d320a83..8d8045a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,9 +17,16 @@ jobs: steps: - uses: actions/checkout@v4 + - run: curl -L https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.1/ec-linux-amd64.tar.gz | tar xzf - -C /opt - run: /opt/bin/ec-linux-amd64 + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8 + + - run: dotnet format Project.csproj --verify-no-changes + unit-test: runs-on: ubuntu-latest diff --git a/Tagging/PeakFinder.cs b/Tagging/PeakFinder.cs index 4fce768..27b66e1 100644 --- a/Tagging/PeakFinder.cs +++ b/Tagging/PeakFinder.cs @@ -106,7 +106,7 @@ PeakInfo CreatePeakAt(int stripe, int bin) { } float GetLogMagnitude(int stripe, int bin) { - return 18 * 1024 * (1 - MathF.Log(Analysis.GetMagnitudeSquared(stripe, bin)) / LOG_MIN_MAGN_SQUARED); + return 18 * 1024 * (1 - MathF.Log(Analysis.GetMagnitudeSquared(stripe, bin)) / LOG_MIN_MAGN_SQUARED); } bool IsPeak(int stripe, int bin, int stripeRadius, int binRadius) {