From 413c221f90002fda1f51fa21d2784b932219c372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=81abu=C5=9B?= Date: Thu, 18 Aug 2022 16:09:27 +0200 Subject: [PATCH] Fixed JSON file formatting (indent_size=4) --- .../data-aggregator-fixed-configuration.json | 20 ++-- .../gateway-api-fixed-configuration.json | 20 ++-- .../Properties/launchSettings.json | 36 +++---- .../appsettings.Development.json | 50 +++++----- .../appsettings.Production.json | 28 +++--- samples/DataAggregator/appsettings.json | 96 +++++++++---------- .../Properties/launchSettings.json | 32 +++---- samples/DatabaseMigrations/appsettings.json | 38 ++++---- .../GatewayApi/Properties/launchSettings.json | 36 +++---- .../GatewayApi/appsettings.Development.json | 54 +++++------ .../GatewayApi/appsettings.Production.json | 28 +++--- samples/GatewayApi/appsettings.json | 74 +++++++------- stylecop.json | 40 ++++---- 13 files changed, 276 insertions(+), 276 deletions(-) diff --git a/deployment/data-aggregator-fixed-configuration.json b/deployment/data-aggregator-fixed-configuration.json index 90a564d42..5b725fdf0 100644 --- a/deployment/data-aggregator-fixed-configuration.json +++ b/deployment/data-aggregator-fixed-configuration.json @@ -1,13 +1,13 @@ { - "Logging": { - "Console": { - "FormatterName": "simple", - "FormatterOptions": { - "IncludeScopes": true, - "ColorBehavior": "Enabled", - "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z ", - "UseUtcTimestamp": true - } + "Logging": { + "Console": { + "FormatterName": "simple", + "FormatterOptions": { + "IncludeScopes": true, + "ColorBehavior": "Enabled", + "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z ", + "UseUtcTimestamp": true + } + } } - } } diff --git a/deployment/gateway-api-fixed-configuration.json b/deployment/gateway-api-fixed-configuration.json index 90a564d42..5b725fdf0 100644 --- a/deployment/gateway-api-fixed-configuration.json +++ b/deployment/gateway-api-fixed-configuration.json @@ -1,13 +1,13 @@ { - "Logging": { - "Console": { - "FormatterName": "simple", - "FormatterOptions": { - "IncludeScopes": true, - "ColorBehavior": "Enabled", - "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z ", - "UseUtcTimestamp": true - } + "Logging": { + "Console": { + "FormatterName": "simple", + "FormatterOptions": { + "IncludeScopes": true, + "ColorBehavior": "Enabled", + "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z ", + "UseUtcTimestamp": true + } + } } - } } diff --git a/samples/DataAggregator/Properties/launchSettings.json b/samples/DataAggregator/Properties/launchSettings.json index 3b94685fe..dfd8cbb3e 100644 --- a/samples/DataAggregator/Properties/launchSettings.json +++ b/samples/DataAggregator/Properties/launchSettings.json @@ -1,21 +1,21 @@ { - "$schema": "https://json.schemastore.org/launchsettings.json", - "profiles": { - "Data Aggregator": { - "commandName": "Project", - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7214;http://localhost:5207", - "environmentVariables": { - "DOTNET_ENVIRONMENT": "Development" - } - }, - "Data Aggregator (Production)": { - "commandName": "Project", - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7214;http://localhost:5207", - "environmentVariables": { - "DOTNET_ENVIRONMENT": "Production" - } + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "Data Aggregator": { + "commandName": "Project", + "dotnetRunMessages": true, + "applicationUrl": "https://localhost:7214;http://localhost:5207", + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development" + } + }, + "Data Aggregator (Production)": { + "commandName": "Project", + "dotnetRunMessages": true, + "applicationUrl": "https://localhost:7214;http://localhost:5207", + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Production" + } + } } - } } diff --git a/samples/DataAggregator/appsettings.Development.json b/samples/DataAggregator/appsettings.Development.json index 2b23ce621..d25f8f4e4 100644 --- a/samples/DataAggregator/appsettings.Development.json +++ b/samples/DataAggregator/appsettings.Development.json @@ -1,32 +1,32 @@ { - "Logging": { - "LogLevel": { - "Default": "Debug", - "Microsoft": "Warning", - "System": "Warning", + "Logging": { + "LogLevel": { + "Default": "Debug", + "Microsoft": "Warning", + "System": "Warning", + }, }, - }, - "__COMMENT__": "Everything below is quite temporary", + "__COMMENT__": "Everything below is quite temporary", - "DataAggregator": { - "Network": { - "NetworkName": "mainnet", - "DisableCoreApiHttpsCertificateChecks": false, - "CoreApiNodes": [ - { - "Name": "node1", - "CoreApiAddress": "http://localhost:3333", - "TrustWeighting": 1, - "Enabled": true, - }, - { - "Name": "node2", - "CoreApiAddress": "http://localhost:3334", - "TrustWeighting": 1, - "Enabled": false, + "DataAggregator": { + "Network": { + "NetworkName": "mainnet", + "DisableCoreApiHttpsCertificateChecks": false, + "CoreApiNodes": [ + { + "Name": "node1", + "CoreApiAddress": "http://localhost:3333", + "TrustWeighting": 1, + "Enabled": true, + }, + { + "Name": "node2", + "CoreApiAddress": "http://localhost:3334", + "TrustWeighting": 1, + "Enabled": false, + }, + ], }, - ], }, - }, } diff --git a/samples/DataAggregator/appsettings.Production.json b/samples/DataAggregator/appsettings.Production.json index 0eeb0be5c..52542ad9b 100644 --- a/samples/DataAggregator/appsettings.Production.json +++ b/samples/DataAggregator/appsettings.Production.json @@ -1,17 +1,17 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "System": "Warning", + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "System": "Warning", + }, + "Console": { + "FormatterName": "json", + "FormatterOptions": { + "IncludeScopes": true, + "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z", + "UseUtcTimestamp": true, + }, + }, }, - "Console": { - "FormatterName": "json", - "FormatterOptions": { - "IncludeScopes": true, - "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z", - "UseUtcTimestamp": true, - }, - }, - }, } diff --git a/samples/DataAggregator/appsettings.json b/samples/DataAggregator/appsettings.json index 0cfa46274..6cdcc2a45 100644 --- a/samples/DataAggregator/appsettings.json +++ b/samples/DataAggregator/appsettings.json @@ -1,55 +1,55 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", + "Logging": { + "LogLevel": { + "Default": "Information", + }, + "Console": { + "FormatterName": "simple", + "FormatterOptions": { + "SingleLine": true, + "IncludeScopes": true, + "TimestampFormat": "HH:mm:ss", + "UseUtcTimestamp": false, + }, + }, }, - "Console": { - "FormatterName": "simple", - "FormatterOptions": { - "SingleLine": true, - "IncludeScopes": true, - "TimestampFormat": "HH:mm:ss", - "UseUtcTimestamp": false, - }, - }, - }, - "__COMMENT__": "Everything below is quite temporary", + "__COMMENT__": "Everything below is quite temporary", - "ConnectionStrings": { - "NetworkGatewayReadOnly": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", - "NetworkGatewayReadWrite": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", - }, + "ConnectionStrings": { + "NetworkGatewayReadOnly": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", + "NetworkGatewayReadWrite": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", + }, - "PrometheusMetricsPort": 1234, + "PrometheusMetricsPort": 1234, - "DataAggregator": { - "Network": { - "NetworkName": "mainnet", - "DisableCoreApiHttpsCertificateChecks": false, - "CoreApiNodes": [], - }, - "Mempool": { - "MinDelayBetweenMissingFromMempoolAndResubmissionSeconds": 10, - "MinDelayBetweenResubmissionsSeconds": 10, - "StopResubmittingAfterSeconds": 300, - "PruneCommittedAfterSeconds": 10, - "PruneMissingTransactionsAfterTimeSinceLastGatewaySubmissionSeconds": 604800, - "PruneMissingTransactionsAfterTimeSinceFirstSeenSeconds": 604800, - "PruneRequiresMissingFromMempoolForSeconds": 60, - }, - "LedgerConfirmation": { - "CommitRequiresNodeQuorumTrustProportion": 0.51, - "OnlyUseSufficientlySyncedUpNodesForQuorumCalculation": true, - "SufficientlySyncedStateVersionThreshold": 1000, - "MaxCommitBatchSize": 1000, - "MaxTransactionPipelineSizePerNode": 3000, - "LargeBatchSizeToAddDelay": 500, - "DelayBetweenLargeBatchesMilliseconds": 0, - }, - "TransactionAssertions": { - "AssertDownedSubstatesMatchDownFromCoreApi": false, - "SubstateTypesWhichAreAllowedToHaveIncompleteHistoryCommaSeparated": "ValidatorSystemMetadataSubstate", - }, - } + "DataAggregator": { + "Network": { + "NetworkName": "mainnet", + "DisableCoreApiHttpsCertificateChecks": false, + "CoreApiNodes": [], + }, + "Mempool": { + "MinDelayBetweenMissingFromMempoolAndResubmissionSeconds": 10, + "MinDelayBetweenResubmissionsSeconds": 10, + "StopResubmittingAfterSeconds": 300, + "PruneCommittedAfterSeconds": 10, + "PruneMissingTransactionsAfterTimeSinceLastGatewaySubmissionSeconds": 604800, + "PruneMissingTransactionsAfterTimeSinceFirstSeenSeconds": 604800, + "PruneRequiresMissingFromMempoolForSeconds": 60, + }, + "LedgerConfirmation": { + "CommitRequiresNodeQuorumTrustProportion": 0.51, + "OnlyUseSufficientlySyncedUpNodesForQuorumCalculation": true, + "SufficientlySyncedStateVersionThreshold": 1000, + "MaxCommitBatchSize": 1000, + "MaxTransactionPipelineSizePerNode": 3000, + "LargeBatchSizeToAddDelay": 500, + "DelayBetweenLargeBatchesMilliseconds": 0, + }, + "TransactionAssertions": { + "AssertDownedSubstatesMatchDownFromCoreApi": false, + "SubstateTypesWhichAreAllowedToHaveIncompleteHistoryCommaSeparated": "ValidatorSystemMetadataSubstate", + }, + } } diff --git a/samples/DatabaseMigrations/Properties/launchSettings.json b/samples/DatabaseMigrations/Properties/launchSettings.json index a31108548..84b6d83cf 100644 --- a/samples/DatabaseMigrations/Properties/launchSettings.json +++ b/samples/DatabaseMigrations/Properties/launchSettings.json @@ -1,19 +1,19 @@ { - "$schema": "http://json.schemastore.org/launchsettings.json", - "profiles": { - "DatabaseMigrations": { - "commandName": "Project", - "environmentVariables": { - "DOTNET_ENVIRONMENT": "Development" + "$schema": "http://json.schemastore.org/launchsettings.json", + "profiles": { + "DatabaseMigrations": { + "commandName": "Project", + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development" + } + }, + "Wipe Database": { + "commandName": "Project", + "dotnetRunMessages": true, + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development", + "WIPE_DATABASE": "true" + } + } } - }, - "Wipe Database": { - "commandName": "Project", - "dotnetRunMessages": true, - "environmentVariables": { - "DOTNET_ENVIRONMENT": "Development", - "WIPE_DATABASE": "true" - } - } - } } diff --git a/samples/DatabaseMigrations/appsettings.json b/samples/DatabaseMigrations/appsettings.json index b7b0f65dd..11c5d7ca1 100644 --- a/samples/DatabaseMigrations/appsettings.json +++ b/samples/DatabaseMigrations/appsettings.json @@ -1,24 +1,24 @@ { - "Logging": { - "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information", + "Logging": { + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information", + }, + "Console": { + "FormatterName": "simple", + "FormatterOptions": { + "SingleLine": true, + "IncludeScopes": true, + "TimestampFormat": "HH:mm:ss", + "UseUtcTimestamp": false, + }, + }, }, - "Console": { - "FormatterName": "simple", - "FormatterOptions": { - "SingleLine": true, - "IncludeScopes": true, - "TimestampFormat": "HH:mm:ss", - "UseUtcTimestamp": false, - }, - }, - }, - "__COMMENT__": "Everything below is quite temporary", + "__COMMENT__": "Everything below is quite temporary", - "ConnectionStrings": { - "NetworkGatewayMigrations": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true" - } + "ConnectionStrings": { + "NetworkGatewayMigrations": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true" + } } diff --git a/samples/GatewayApi/Properties/launchSettings.json b/samples/GatewayApi/Properties/launchSettings.json index af23d6df5..2f07a213a 100644 --- a/samples/GatewayApi/Properties/launchSettings.json +++ b/samples/GatewayApi/Properties/launchSettings.json @@ -1,21 +1,21 @@ { - "$schema": "https://json.schemastore.org/launchsettings.json", - "profiles": { - "Gateway Api": { - "commandName": "Project", - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7215;http://localhost:5208", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "Gateway Api (Production)": { - "commandName": "Project", - "dotnetRunMessages": true, - "applicationUrl": "https://localhost:7215;http://localhost:5208", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Production" - } + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "Gateway Api": { + "commandName": "Project", + "dotnetRunMessages": true, + "applicationUrl": "https://localhost:7215;http://localhost:5208", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Gateway Api (Production)": { + "commandName": "Project", + "dotnetRunMessages": true, + "applicationUrl": "https://localhost:7215;http://localhost:5208", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Production" + } + } } - } } diff --git a/samples/GatewayApi/appsettings.Development.json b/samples/GatewayApi/appsettings.Development.json index c92f6182f..83d843bea 100644 --- a/samples/GatewayApi/appsettings.Development.json +++ b/samples/GatewayApi/appsettings.Development.json @@ -1,35 +1,35 @@ { - "Logging": { - "LogLevel": { - "Default": "Debug", - "Microsoft": "Warning", - "System": "Warning", + "Logging": { + "LogLevel": { + "Default": "Debug", + "Microsoft": "Warning", + "System": "Warning", + }, }, - }, - "__COMMENT__": "Everything below is quite temporary", + "__COMMENT__": "Everything below is quite temporary", - "GatewayApi": { - "AcceptableLedgerLag": { - "PreventReadRequestsIfDbLedgerIsBehind": false, - "PreventConstructionRequestsIfDbLedgerIsBehind": false, - }, - "Network": { - "NetworkName": "mainnet", - "CoreApiNodes": [ - { - "Name": "node1", - "CoreApiAddress": "http://localhost:3333", - "Enabled": true + "GatewayApi": { + "AcceptableLedgerLag": { + "PreventReadRequestsIfDbLedgerIsBehind": false, + "PreventConstructionRequestsIfDbLedgerIsBehind": false, }, - { - "Name": "node2", - "CoreApiAddress": "http://localhost:3334", - "Enabled": false + "Network": { + "NetworkName": "mainnet", + "CoreApiNodes": [ + { + "Name": "node1", + "CoreApiAddress": "http://localhost:3333", + "Enabled": true + }, + { + "Name": "node2", + "CoreApiAddress": "http://localhost:3334", + "Enabled": false + }, + ], + "MaxAllowedStateVersionLagToBeConsideredSynced": 100, + "IgnoreNonSyncedNodes": true, }, - ], - "MaxAllowedStateVersionLagToBeConsideredSynced": 100, - "IgnoreNonSyncedNodes": true, }, - }, } diff --git a/samples/GatewayApi/appsettings.Production.json b/samples/GatewayApi/appsettings.Production.json index 0eeb0be5c..52542ad9b 100644 --- a/samples/GatewayApi/appsettings.Production.json +++ b/samples/GatewayApi/appsettings.Production.json @@ -1,17 +1,17 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft": "Warning", - "System": "Warning", + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "System": "Warning", + }, + "Console": { + "FormatterName": "json", + "FormatterOptions": { + "IncludeScopes": true, + "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z", + "UseUtcTimestamp": true, + }, + }, }, - "Console": { - "FormatterName": "json", - "FormatterOptions": { - "IncludeScopes": true, - "TimestampFormat": "yyyy-MM-ddTHH\\:mm\\:ss.fff\\Z", - "UseUtcTimestamp": true, - }, - }, - }, } diff --git a/samples/GatewayApi/appsettings.json b/samples/GatewayApi/appsettings.json index 36661ad1e..4cd366584 100644 --- a/samples/GatewayApi/appsettings.json +++ b/samples/GatewayApi/appsettings.json @@ -1,45 +1,45 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", + "Logging": { + "LogLevel": { + "Default": "Information", + }, + "Console": { + "FormatterName": "simple", + "FormatterOptions": { + "SingleLine": true, + "IncludeScopes": true, + "TimestampFormat": "HH:mm:ss", + "UseUtcTimestamp": false, + }, + }, }, - "Console": { - "FormatterName": "simple", - "FormatterOptions": { - "SingleLine": true, - "IncludeScopes": true, - "TimestampFormat": "HH:mm:ss", - "UseUtcTimestamp": false, - }, - }, - }, - "__COMMENT__": "Everything below is quite temporary", + "__COMMENT__": "Everything below is quite temporary", - "ConnectionStrings": { - "NetworkGatewayReadOnly": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", - "NetworkGatewayReadWrite": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", - }, + "ConnectionStrings": { + "NetworkGatewayReadOnly": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", + "NetworkGatewayReadWrite": "Host=localhost:5432;Database=radixdlt_ledger;Username=db_dev_superuser;Password=db_dev_password;Include Error Detail=true", + }, - "PrometheusMetricsPort": 1235, - "EnableSwagger": false, + "PrometheusMetricsPort": 1235, + "EnableSwagger": false, - "GatewayApi": { - "Endpoint": { - "GatewayOpenApiSchemaVersion": "2.0.0", - "MaxPageSize": 30, - }, - "AcceptableLedgerLag": { - "PreventReadRequestsIfDbLedgerIsBehind": true, - "ReadRequestAcceptableDbLedgerLagSeconds": 60, - "PreventConstructionRequestsIfDbLedgerIsBehind": true, - "ConstructionRequestsAcceptableDbLedgerLagSeconds": 60, - }, - "Network": { - "NetworkName": "mainnet", - "CoreApiNodes": [], - "MaxAllowedStateVersionLagToBeConsideredSynced": 100, - "IgnoreNonSyncedNodes": true, + "GatewayApi": { + "Endpoint": { + "GatewayOpenApiSchemaVersion": "2.0.0", + "MaxPageSize": 30, + }, + "AcceptableLedgerLag": { + "PreventReadRequestsIfDbLedgerIsBehind": true, + "ReadRequestAcceptableDbLedgerLagSeconds": 60, + "PreventConstructionRequestsIfDbLedgerIsBehind": true, + "ConstructionRequestsAcceptableDbLedgerLagSeconds": 60, + }, + "Network": { + "NetworkName": "mainnet", + "CoreApiNodes": [], + "MaxAllowedStateVersionLagToBeConsideredSynced": 100, + "IgnoreNonSyncedNodes": true, + }, }, - }, } diff --git a/stylecop.json b/stylecop.json index da0e1ef46..1637cc9dd 100644 --- a/stylecop.json +++ b/stylecop.json @@ -1,23 +1,23 @@ { - "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", - "settings": { - "documentationRules": { - "companyName": "Radix DLT", - "documentExposedElements": false, - "documentInterfaces": false, - "documentInternalElements": false, - "documentPrivateElements": false, - "documentPrivateFields": false - }, - "orderingRules": { - "systemUsingDirectivesFirst": false, - "usingDirectivesPlacement": "outsideNamespace" - }, - "maintainabilityRules": { - "topLevelTypes": [ "class", "interface" ] - }, - "layoutRules": { - "newlineAtEndOfFile": "require" + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "documentationRules": { + "companyName": "Radix DLT", + "documentExposedElements": false, + "documentInterfaces": false, + "documentInternalElements": false, + "documentPrivateElements": false, + "documentPrivateFields": false + }, + "orderingRules": { + "systemUsingDirectivesFirst": false, + "usingDirectivesPlacement": "outsideNamespace" + }, + "maintainabilityRules": { + "topLevelTypes": [ "class", "interface" ] + }, + "layoutRules": { + "newlineAtEndOfFile": "require" + } } - } }