Skip to content

build: Expand editor config style rules - #281

Draft
ValeraFinebits wants to merge 3 commits into
masterfrom
build/Expand-EditorConfig-style-rules
Draft

ValeraFinebits wants to merge 3 commits into
masterfrom
build/Expand-EditorConfig-style-rules

Conversation

@ValeraFinebits

Copy link
Copy Markdown
Owner

No description provided.

@ValeraFinebits
ValeraFinebits requested a balanced review from Copilot December 1, 2026 21:22
@ValeraFinebits ValeraFinebits changed the title Build/expand editor config style rules build: Expand editor config style rules Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review concerns are reported for the formatting and C# style changes.

No open issues 🎉

What changed in this PR

Standardizes formatting and C# style across the Async Payjoin plugin, its tests, and build tooling, with automated checks to keep repository-owned code consistent.

Changes:

  • Expands EditorConfig with formatting, naming, namespace, and analyzer rules, including generated-migration exceptions.
  • Applies import ordering, primary constructors, collection expressions, simplified null checks, and whitespace cleanup.
  • Adds CI formatting and file-scoped namespace checks, and sets a .NET SDK baseline with minor-version roll-forward.
File Description
global.json Sets SDK baseline and roll-forward policy.
BTCPayServer.Plugins.Payjoin/​Views/​PayjoinNavPages.cs Adds final newline.
BTCPayServer.Plugins.Payjoin/​Views/​_ViewImports.cshtml Removes UTF-8 byte-order mark.
BTCPayServer.Plugins.Payjoin/​Services/​RunTestPaymentService.cs Modernizes constructor, null guard, and collection initialization.
BTCPayServer.Plugins.Payjoin/​Services/​PostgresPayjoinUniqueConstraintViolationDetector.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinWalletOwnershipService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinUriSessionService.cs Reorders imports and simplifies null guard.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinUriResult.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSwaggerProvider.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinStoreSettingsRepository.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinStalePaidOverCorrectionService.cs Adopts primary constructor and normalizes formatting.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSessionUriReader.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSessionBuildLock.cs Adopts primary constructor for lock lease.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderWallet.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSigningRequestService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSignatureHandler.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionTerminator.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionStore.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionResourceReleaser.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionProcessor.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionLock.cs Reorders imports and adjusts initializer indentation.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderSessionCloser.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderService.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderPoller.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSenderBroadcaster.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinSeenInputStore.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverWalletAdapter.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverStateProcessor.cs Reorders imports and uses collection expression.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverSessionStore.cs Reorders imports and simplifies null guards.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverSessionState.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverSessionProcessor.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverSessionGuard.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverRelayRequestSender.cs Adopts primary constructor and simplifies null guard.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverProposalSigner.cs Modernizes constructor, imports, and null guard.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverProposalFinalizer.cs Modernizes constructor, imports, and null guards.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverPoller.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverPaymentValidation.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverOutputBuilder.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverInputSelector.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinReceiverInputProposalOperations.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinPluginDbContextFactory.cs Adopts primary constructor with base initialization.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinOwnershipLookupStateStore.cs Reorders imports and uses collection expressions.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinOhttpKeysProvider.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinMailroomManager.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoiceSessionLifecycleService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoicePaymentUrlService.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoiceLookup.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoiceEventWriter.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoiceEventPublisher.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinInvoiceEventHostedService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinFeeRateProvider.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinCheckoutPaymentUrl.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinBridgeAttentionService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinBitcoinCheckoutModelExtension.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinBip21.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinAvailabilityService.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinAttentionRecordSeeder.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinAccountingPaymentService.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​PayjoinAccountingBridgeService.cs Adopts primary constructor and null-conditional assignment.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinWalletTransactionReader.cs Modernizes implementation constructor and imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinTransactionLabeler.cs Modernizes implementation constructor and imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinStoreSettingsRepository.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinReceiverStateProcessor.cs Adopts primary constructor for state context.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinReceiverSessionGuard.cs Adopts primary constructor for guard result.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinReceiverProposalSigner.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinReceiverProposalFinalizer.cs Adopts primary constructor for finalization context.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinReceiverInputSelector.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinPlatformPaymentRecorder.cs Modernizes implementation constructor and imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinInvoicePaymentUrlService.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​IPayjoinInvoiceLookup.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​CapturingSenderSessionPersister.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Services/​CapturingReceiverSessionPersister.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​PluginMigrationRunner.cs Modernizes constructor, imports, and encoding.
BTCPayServer.Plugins.Payjoin/​Models/​PayjoinStoreSettingsViewModel.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Models/​PayjoinCheckoutAvailabilityResponse.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Data/​PayjoinReceiverSessionData.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​UIStorePayjoinController.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​UIPayjoinSenderController.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​UIPayjoinOverviewController.cs Modernizes view-model constructors and imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​UIPayJoinController.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​PayjoinExceptionFilterAttribute.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​Controllers/​GreenfieldPayjoinController.cs Reorders imports.
BTCPayServer.Plugins.Payjoin/​BTCPayServer.Plugins.AsyncPayjoin.csproj Normalizes indentation and encoding.
BTCPayServer.Plugins.Payjoin.Tests/​UIPayjoinOverviewControllerTests.cs Reorders imports and formats initializers.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinWalletOwnershipServiceTests.cs Reorders imports and formats initializer.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverSessionProcessorTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverRelayRequestSenderTests.cs Removes UTF-8 byte-order mark.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverRelayFlowTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverRelayClientTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverPollerTests.cs Modernizes test-double constructors and collection initialization.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinReceiverInputSelectorTests.cs Uses collection expressions.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinOwnershipLookupBudgetTests.cs Reorders imports and formats response initializers.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinOriginalTransactionValidatorTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinOhttpKeysProviderTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinInvoiceEventHostedServiceTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​Services/​PayjoinAccountingPaymentServiceTests.cs Adopts primary constructor for test helper.
BTCPayServer.Plugins.Payjoin.Tests/​RelationalPluginTestSupport.cs Reorders imports and uses null-conditional assignment.
BTCPayServer.Plugins.Payjoin.Tests/​PluginRegistrationTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PluginMigrationRunnerPolicyTests.cs Adopts primary constructor for test context.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinUriSessionServiceStatusTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinStoreSettingsTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinSenderSessionStoreTests.cs Reorders imports and formats initializer.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinSenderHttpTests.cs Reorders imports and alias.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinSenderControllerPolicyTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinReceiverSessionStoreRelationalTests.cs Reorders imports and aliases.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinPluginSchemaTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinInvoiceEventTestSupport.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinCheckoutPaymentUrlTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​PayjoinCheckoutModelAssemblyTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​GreenfieldPayjoinControllerTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.Tests/​BTCPayServer.Plugins.Payjoin.Tests.csproj Normalizes indentation and encoding.
BTCPayServer.Plugins.Payjoin.sln Removes UTF-8 byte-order mark.
BTCPayServer.Plugins.Payjoin.Migrations/​BTCPayServer.Plugins.Payjoin.Migrations.csproj Removes UTF-8 byte-order mark.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​UnexpectedReceiverDependencies.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​PostgresSeenInputTestFixture.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​PayjoinTestPayer.cs Simplifies amount null guard and collection initialization.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​PayjoinReceiverTestHelper.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​PayjoinCliPayer.cs Reorders imports and simplifies null guards.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​TestUtils/​BitcoindNode.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​RunTestPaymentIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinWalletOwnershipIntegrationTests.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinTestRelaySenderTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinSenderWalletSendIntegrationTests.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinSenderTickConcurrencyIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinSenderIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinSenderDatabaseIntegrationTests.cs Reorders imports and formats initializer.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinSenderConcurrencyIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinReceiverOutputBuilderIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinPluginIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinPluginConcurrencyIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinOriginalPaymentAmountIntegrationTests.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinMissingStoreSettingsIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinInvoiceEventIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinHistoryRetentionIntegrationTests.cs Uses null-conditional assignment in seeding helper.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinGreenfieldContractIntegrationTests.cs Adopts primary constructor and reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinFallbackIntegrationTests.cs Reorders imports.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinCliIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​PayjoinAccountingUpgradeIntegrationTests.cs Adopts primary test constructor.
BTCPayServer.Plugins.Payjoin.IntegrationTests/​BTCPayServer.Plugins.Payjoin.IntegrationTests.csproj Removes UTF-8 byte-order mark.
.github/​workflows/​build.yml Adds formatting and file-scoped namespace checks.
.github/​scripts/​generate-csharp-bindings.sh Normalizes shell indentation.
.editorconfig Defines repository-wide formatting and C# style rules.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants