guibranco / Sankhya-SDK-dotnet

📊 ⚙️ Sankhya platform .NET SDK
https://guibranco.github.io/Sankhya-SDK-dotnet/
MIT License
4 stars 3 forks source link

Bump csharpier from 0.28.2 to 0.29.1 #292

Closed dependabot[bot] closed 3 weeks ago

dependabot[bot] commented 3 weeks ago

Bumps csharpier from 0.28.2 to 0.29.1.

Release notes

Sourced from csharpier's releases.

0.29.1

What's Changed

Sorting of usings with underscore differs from Visual Studio #1327

CSharpier now sorts _ to the bottom of usings.

using SomeCompany.MWord;
using SomeCompany.ZWord;
using SomeCompany._Word;

Process cannot access the file "....net8.0\any\server.log" while running multiple extensions. #1324

CSharpier Server now uses a log file name based on the port that it is starting on to avoid concurrency issues trying to access the same log file

Full Changelog: https://github.com/belav/csharpier/compare/0.29.0...0.29.1

0.29.0

Breaking Changes

The formatting command will now exit with an error code of 1 if one of the target files cannot be compiled #1131

Prior to 0.29.0 if csharpier encountered a file that could not be compiled it would treat it as a warning and exit with a code of 0.
As of 0.29.0 a file that cannot be compiled is now treated as an error and csharpier will exit with code 1

What's Changed

Enforce trailing commas in object and collection initializer #668

CSharpier will now add trailing commas automatically where appropriate. It will collapse to a single line and remove the trailing comma in cases where everything fits on one line.

// input
public enum SomeEnum
{
    Value1,
    Value2
}

string[] someArray = new string[] { someLongValue_____________________________________________, someLongValue_____________________________________________ };

string[] someArray = new string[] { someValue, someValue, };

// 0.29.0 public enum SomeEnum { Value1, Value2, }

</tr></table>

... (truncated)

Changelog

Sourced from csharpier's changelog.

# 0.29.1

What's Changed

Sorting of usings with underscore differs from Visual Studio #1327

CSharpier now sorts _ to the bottom of usings.

using SomeCompany.MWord;
using SomeCompany.ZWord;
using SomeCompany._Word;

Process cannot access the file "....net8.0\any\server.log" while running multiple extensions. #1324

CSharpier Server now uses a log file name based on the port that it is starting on to avoid concurrency issues trying to access the same log file

Full Changelog: https://github.com/belav/csharpier/compare/0.29.0...0.29.1

0.29.0

Breaking Changes

The formatting command will now exit with an error code of 1 if one of the target files cannot be compiled #1131

Prior to 0.29.0 if csharpier encountered a file that could not be compiled it would treat it as a warning and exit with a code of 0.
As of 0.29.0 a file that cannot be compiled is now treated as an error and csharpier will exit with code 1

What's Changed

Enforce trailing commas in object and collection initializer #668

CSharpier will now add trailing commas automatically where appropriate. It will collapse to a single line and remove the trailing comma in cases where everything fits on one line.

// input
public enum SomeEnum
{
    Value1,
    Value2
}

string[] someArray = new string[] { someLongValue_____________________________________________, someLongValue_____________________________________________ };

string[] someArray = new string[] { someValue, someValue, };

// 0.29.0 public enum SomeEnum { Value1, Value2, }

string[] someArray = new string[] </tr></table>

... (truncated)

Commits
  • b87b4df Releasing 0.29.1 (#1331)
  • 10e0780 Support for multiple csharpier servers running at the same time, have them wr...
  • 2ed8622 Getting _ to sort to the top like it should (#1328)
  • 688aeb7 VS - Use dotnet tool list to find both local and global installs of csharpier...
  • 1cdcf0a fix width
  • c529570 prettier all the java
  • 88383e7 Using dotnet tool list for rider extension (#1325)
  • 2456512 Modify VSCode extension to use dotnet tool list + only warn to instal… (#1323)
  • 6cb3821 Format with 29 (#1322)
  • 0abbc1d fix typo
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @guibranco.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
guibranco commented 3 weeks ago

@dependabot squash and merge

codacy-production[bot] commented 3 weeks ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.00% (target: -1.00%) :white_check_mark:
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (481135bff325ab19ef5229f13892d52393cc85e9) | 9566 | 2 | 0.02% | | | Head commit (e4a18119d185d7b065f59c3d171a7a4600569c76) | 9566 (+0) | 2 (+0) | 0.02% (**+0.00%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#292) | 0 | 0 | **∅ (not applicable)** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

AppVeyorBot commented 3 weeks ago

:white_check_mark: Build Sankhya-SDK-dotnet 3.0.669 completed (commit https://github.com/guibranco/Sankhya-SDK-dotnet/commit/604975e2d7 by @dependabot[bot])

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 85 lines in your changes missing coverage. Please review.

Project coverage is 0.02%. Comparing base (8757d4e) to head (fd462c6). Report is 1 commits behind head on main.

Files Patch % Lines
...khya/RequestWrappers/KnowServicesRequestWrapper.cs 0.00% 50 Missing :warning:
Src/Sankhya/Helpers/ServiceRequestExtensions.cs 0.00% 25 Missing :warning:
Src/Sankhya/SankhyaWrapper.cs 0.00% 4 Missing :warning:
Src/Sankhya/Service/ServiceResponse.cs 0.00% 2 Missing :warning:
Src/Sankhya/Helpers/StatusMessageHelper.cs 0.00% 1 Missing :warning:
.../Sankhya/RequestWrappers/OnDemandRequestFactory.cs 0.00% 1 Missing :warning:
.../Sankhya/RequestWrappers/OnDemandRequestWrapper.cs 0.00% 1 Missing :warning:
Src/Sankhya/SankhyaContext.cs 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #292 +/- ## ===================================== Coverage 0.02% 0.02% ===================================== Files 158 158 Lines 9566 9566 Branches 757 757 ===================================== Hits 2 2 + Misses 9564 9562 -2 - Partials 0 2 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

dependabot[bot] commented 3 weeks ago

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

codacy-production[bot] commented 3 weeks ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.00% (target: -1.00%) :white_check_mark:
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (8757d4ee41de1ee37dc913caf33032e1946a8899) | 9566 | 2 | 0.02% | | | Head commit (80877d7104700d985b40322103edc0c7617173bb) | 9566 (+0) | 2 (+0) | 0.02% (**+0.00%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#292) | 0 | 0 | **∅ (not applicable)** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

AppVeyorBot commented 3 weeks ago

:white_check_mark: Build Sankhya-SDK-dotnet 3.0.688 completed (commit https://github.com/guibranco/Sankhya-SDK-dotnet/commit/8351b13a93 by @gstraccini[bot])

AppVeyorBot commented 3 weeks ago

:white_check_mark: Build Sankhya-SDK-dotnet 3.0.699 completed (commit https://github.com/guibranco/Sankhya-SDK-dotnet/commit/b8ecb23654 by @gstraccini[bot])

AppVeyorBot commented 3 weeks ago

:white_check_mark: Build Sankhya-SDK-dotnet 3.0.704 completed (commit https://github.com/guibranco/Sankhya-SDK-dotnet/commit/ede222e168 by @gstraccini[bot])

guibranco commented 3 weeks ago

@gstraccini csharpier

gstraccini[bot] commented 3 weeks ago

Running CSharpier on this branch! :wrench:

gstraccini[bot] commented 3 weeks ago

:white_check_mark: CSharpier result:

Error ./Src/Sankhya/Enums/InvoiceFollowUpReference.cs - Was not formatted.
  ----------------------------- Expected: Around Line 85 -----------------------------
      [InternalValue("V")]
      Seller,
  }
  ----------------------------- Actual: Around Line 85 -----------------------------
      [InternalValue("V")]
      Seller
  }

Error ./Src/Sankhya/Enums/SankhyaWarningType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 43 -----------------------------
      [HumanReadable("Grupo")]
      Group = 2,
  }
  ----------------------------- Actual: Around Line 43 -----------------------------
      [HumanReadable("Grupo")]
      Group = 2
  }

Error ./Src/Sankhya/Enums/ServiceModule.cs - Was not formatted.
  ----------------------------- Expected: Around Line 50 -----------------------------
      [HumanReadable("MGEFIN")]
      Mgefin = 3,
  }
  ----------------------------- Actual: Around Line 50 -----------------------------
      [HumanReadable("MGEFIN")]
      Mgefin = 3
  }

Error ./Src/Sankhya/Enums/SankhyaWarningLevel.cs - Was not formatted.
  ----------------------------- Expected: Around Line 50 -----------------------------
      [HumanReadable("Informação")]
      Information = 3,
  }
  ----------------------------- Actual: Around Line 50 -----------------------------
      [HumanReadable("Informação")]
      Information = 3
  }

Error ./Src/Sankhya/Enums/ServiceRequestType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 58 -----------------------------
      [HumanReadable("Know services")]
      KnowServices,
  }
  ----------------------------- Actual: Around Line 58 -----------------------------
      [HumanReadable("Know services")]
      KnowServices
  }

Error ./Src/Sankhya/SankhyaContext.cs - Was not formatted.
  ----------------------------- Expected: Around Line 98 -----------------------------
                  Host = host,
                  Port = port,
              }
  ----------------------------- Actual: Around Line 98 -----------------------------
                  Host = host,
                  Port = port
              }

Error ./Src/Sankhya/Enums/ProductSourceType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 42 -----------------------------
      [InternalValue("P")]
      Product,
  }
  ----------------------------- Actual: Around Line 42 -----------------------------
      [InternalValue("P")]
      Product
  }

Error ./Src/Sankhya/Enums/BillingType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 43 -----------------------------
      [InternalValue("FaturamentoDireto")]
      Direct,
  }
  ----------------------------- Actual: Around Line 43 -----------------------------
      [InternalValue("FaturamentoDireto")]
      Direct
  }

Error ./Src/Sankhya/Enums/FiscalPersonType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 36 -----------------------------
      [InternalValue("J")]
      Corporation,
  }
  ----------------------------- Actual: Around Line 36 -----------------------------
      [InternalValue("J")]
      Corporation
  }

Error ./Src/Sankhya/Enums/ParameterType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 43 -----------------------------
      [HumanReadable("Datetime")]
      Datetime,
  }
  ----------------------------- Actual: Around Line 43 -----------------------------
      [HumanReadable("Datetime")]
      Datetime
  }

Error ./Src/Sankhya/Enums/ProductSuggestionType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 49 -----------------------------
      [InternalValue("C")]
      BuyTogether,
  }
  ----------------------------- Actual: Around Line 49 -----------------------------
      [InternalValue("C")]
      BuyTogether
  }

Error ./Src/Sankhya/Enums/ProductSource.cs - Was not formatted.
  ----------------------------- Expected: Around Line 95 -----------------------------
      [HumanReadable("8 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 70%")]
      NationalForeignOver70,
  }
  ----------------------------- Actual: Around Line 95 -----------------------------
      [HumanReadable("8 - Nacional, mercadoria ou bem com Conteúdo de Importação superior a 70%")]
      NationalForeignOver70
  }

Error ./Src/Sankhya/Enums/InvoiceStatus.cs - Was not formatted.
  ----------------------------- Expected: Around Line 43 -----------------------------
      [HumanReadable("Pendente")]
      Pending,
  }
  ----------------------------- Actual: Around Line 43 -----------------------------
      [HumanReadable("Pendente")]
      Pending
  }

Error ./Src/Sankhya/Enums/ServiceResponseStatus.cs - Was not formatted.
  ----------------------------- Expected: Around Line 45 -----------------------------
      /// </summary>
      ServiceCanceled = 4,
  }
  ----------------------------- Actual: Around Line 45 -----------------------------
      /// </summary>
      ServiceCanceled = 4
  }

Error ./Src/Sankhya/Enums/ServiceCategory.cs - Was not formatted.
  ----------------------------- Expected: Around Line 55 -----------------------------
      /// </summary>
      Invoice,
  }
  ----------------------------- Actual: Around Line 55 -----------------------------
      /// </summary>
      Invoice
  }

Error ./Src/Sankhya/Enums/SellerType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 78 -----------------------------
      [InternalValue("T")]
      Technician,
  }
  ----------------------------- Actual: Around Line 78 -----------------------------
      [InternalValue("T")]
      Technician
  }

Error ./Src/Sankhya/Enums/InvoiceFreightType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 36 -----------------------------
      [HumanReadable("Incluso")]
      Included,
  }
  ----------------------------- Actual: Around Line 36 -----------------------------
      [HumanReadable("Incluso")]
      Included
  }

Error ./Src/Sankhya/Enums/ServiceType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 40 -----------------------------
      /// </summary>
      Transactional = 3,
  }
  ----------------------------- Actual: Around Line 40 -----------------------------
      /// </summary>
      Transactional = 3
  }

Error ./Src/Sankhya/Enums/MovementType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 197 -----------------------------
      [HumanReadable("Modelo")]
      Model,
  }
  ----------------------------- Actual: Around Line 197 -----------------------------
      [HumanReadable("Modelo")]
      Model
  }

Error ./Src/Sankhya/Enums/ProductUse.cs - Was not formatted.
  ----------------------------- Expected: Around Line 127 -----------------------------
      [HumanReadable("Venda (fabricação própria)")]
      SaleOwnManufacturing,
  }
  ----------------------------- Actual: Around Line 127 -----------------------------
      [HumanReadable("Venda (fabricação própria)")]
      SaleOwnManufacturing
  }

Error ./Src/Sankhya/Enums/FiscalInvoiceStatus.cs - Was not formatted.
  ----------------------------- Expected: Around Line 99 -----------------------------
      [HumanReadable("NF-e terceiro")]
      NfeThird,
  }
  ----------------------------- Actual: Around Line 99 -----------------------------
      [HumanReadable("NF-e terceiro")]
      NfeThird
  }

Error ./Src/Sankhya/Enums/ServiceEnvironment.cs - Was not formatted.
  ----------------------------- Expected: Around Line 50 -----------------------------
      [HumanReadable("Treinamento")]
      Training,
  }
  ----------------------------- Actual: Around Line 50 -----------------------------
      [HumanReadable("Treinamento")]
      Training
  }

Error ./Src/Sankhya/SankhyaWrapper.cs - Was not formatted.
  ----------------------------- Expected: Around Line 123 -----------------------------
              { @"image/png", @"png" },
              { @"image/gif", @"gif" },
          };
  ----------------------------- Actual: Around Line 123 -----------------------------
              { @"image/png", @"png" },
              { @"image/gif", @"gif" }
          };

Error ./Src/Sankhya/Enums/InventoryType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 36 -----------------------------
      [InternalValue("T")]
      Third,
  }
  ----------------------------- Actual: Around Line 36 -----------------------------
      [InternalValue("T")]
      Third
  }

Error ./Src/Sankhya/Helpers/StatusMessageHelper.cs - Was not formatted.
  ----------------------------- Expected: Around Line 140 -----------------------------
                  (_, _, request, _) => new ServiceRequestInvalidSubQueryException(request)
              },
          };
  ----------------------------- Actual: Around Line 140 -----------------------------
                  (_, _, request, _) => new ServiceRequestInvalidSubQueryException(request)
              }
          };

Error ./Src/Sankhya/Helpers/ServiceRequestExtensions.cs - Was not formatted.
  ----------------------------- Expected: Around Line 525 -----------------------------
                      Name = result.Name,
                      IncludePresentationFields = false,
                  };
  ----------------------------- Actual: Around Line 525 -----------------------------
                      Name = result.Name,
                      IncludePresentationFields = false
                  };

Error ./Src/Sankhya/RequestWrappers/KnowServicesRequestWrapper.cs - Was not formatted.
  ----------------------------- Expected: Around Line 57 -----------------------------
          {
              RequestBody = new() { Session = new() { Id = sessionId } },
          };
  ----------------------------- Actual: Around Line 57 -----------------------------
          {
              RequestBody = new() { Session = new() { Id = sessionId } }
          };

Error ./Src/Sankhya/RequestWrappers/OnDemandRequestFactory.cs - Was not formatted.
  ----------------------------- Expected: Around Line 52 -----------------------------
              Service = service,
              Type = typeof(T),
          };
  ----------------------------- Actual: Around Line 52 -----------------------------
              Service = service,
              Type = typeof(T)
          };

Error ./Src/Sankhya/RequestWrappers/OnDemandRequestWrapper.cs - Was not formatted.
  ----------------------------- Expected: Around Line 139 -----------------------------
              Name = $@"OnDemandRequest<{_entityName}_{throughput}_{_service}>",
              Priority = ThreadPriority.Lowest,
          };
  ----------------------------- Actual: Around Line 139 -----------------------------
              Name = $@"OnDemandRequest<{_entityName}_{throughput}_{_service}>",
              Priority = ThreadPriority.Lowest
          };

Error ./Src/Sankhya/Service/ServiceResponse.cs - Was not formatted.
  ----------------------------- Expected: Around Line 629 -----------------------------
              Total = reader.GetAttribute(SankhyaConstants.Total).ToInt32(),
              TotalPages = reader.GetAttribute(SankhyaConstants.TotalPages).ToInt32(),
          };
  ----------------------------- Actual: Around Line 629 -----------------------------
              Total = reader.GetAttribute(SankhyaConstants.Total).ToInt32(),
              TotalPages = reader.GetAttribute(SankhyaConstants.TotalPages).ToInt32()
          };

Error ./Src/Sankhya/Enums/FiscalClassification.cs - Was not formatted.
  ----------------------------- Expected: Around Line 64 -----------------------------
      [InternalValue("X")]
      TaxpayerCustomer,
  }
  ----------------------------- Actual: Around Line 64 -----------------------------
      [InternalValue("X")]
      TaxpayerCustomer
  }

Error ./Src/Sankhya/Enums/OrderHistoryEvent.cs - Was not formatted.
  ----------------------------- Expected: Around Line 57 -----------------------------
      [HumanReadable("Inclusão")]
      Inclusion,
  }
  ----------------------------- Actual: Around Line 57 -----------------------------
      [HumanReadable("Inclusão")]
      Inclusion
  }

Error ./Src/Sankhya/Enums/FreightType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 50 -----------------------------
      [HumanReadable("Terceiros")]
      Third,
  }
  ----------------------------- Actual: Around Line 50 -----------------------------
      [HumanReadable("Terceiros")]
      Third
  }

Error ./Src/Sankhya/Enums/TradingSubType.cs - Was not formatted.
  ----------------------------- Expected: Around Line 85 -----------------------------
      [InternalValue("8")]
      DebitCard,
  }
  ----------------------------- Actual: Around Line 85 -----------------------------
      [InternalValue("8")]
      DebitCard
  }
github-actions[bot] commented 3 weeks ago

Infisical secrets check: :white_check_mark: No secrets leaked!

Scan results:

12:20PM INF scanning for exposed secrets...
12:20PM INF 327 commits scanned.
12:20PM INF scan completed in 334ms
12:20PM INF no leaks found
codacy-production[bot] commented 3 weeks ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.00% (target: -1.00%) :white_check_mark: 0.00%
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (8757d4ee41de1ee37dc913caf33032e1946a8899) | 9566 | 2 | 0.02% | | | Head commit (fd462c61ae8ebabcc942956dd2abee14efad636e) | 9566 (+0) | 2 (+0) | 0.02% (**+0.00%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#292) | 85 | 0 | **0.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

sonarcloud[bot] commented 3 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
10.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

AppVeyorBot commented 3 weeks ago

:white_check_mark: Build Sankhya-SDK-dotnet 3.0.706 completed (commit https://github.com/guibranco/Sankhya-SDK-dotnet/commit/2ad5b1e663 by @)