Skip to content

Commit b283783

Browse files
committed
fix: editorconfig for *.md and *.json
1 parent 13760a5 commit b283783

106 files changed

Lines changed: 272 additions & 274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codeclimate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins:
77
markdownlint:
88
enabled: true
99
exclude_patterns:
10+
- "**/*.x"
1011
- "**/generated/"
1112
- "**/examples/"
1213
- "**/spec/"

.editorconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ root = true
77
[*]
88
end_of_line = lf
99
trim_trailing_whitespace = true
10+
indent_size = 2
1011
indent_style = space
1112
insert_final_newline = true
1213

13-
[*.x]
14-
indent_size = 4
15-
16-
[*.{rb,js,yml,yaml}]
14+
[*.{rb,rake,js,json,yml,yaml,md}]
1715
charset = utf-8
18-
indent_size = 2
1916
max_line_length = 120

base/Stellar.x

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ enum SCValType
170170
SCV_ADDRESS = 18,
171171

172172
// The following are the internal SCVal variants that are not
173-
// exposed to the contracts.
173+
// exposed to the contracts.
174174
SCV_CONTRACT_INSTANCE = 19,
175175

176176
// SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique
@@ -444,7 +444,7 @@ struct ConfigSettingContractLedgerCostV0
444444
int64 bucketListTargetSizeBytes;
445445
// Fee per 1KB write when the bucket list is empty
446446
int64 writeFee1KBBucketListLow;
447-
// Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes`
447+
// Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes`
448448
int64 writeFee1KBBucketListHigh;
449449
// Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes`
450450
uint32 bucketListWriteFeeGrowthFactor;
@@ -493,7 +493,7 @@ enum ContractCostType {
493493
// Cost of a host function dispatch, not including the actual work done by
494494
// the function nor the cost of VM invocation machinary
495495
DispatchHostFunction = 5,
496-
// Cost of visiting a host object from the host object storage. Exists to
496+
// Cost of visiting a host object from the host object storage. Exists to
497497
// make sure some baseline cost coverage, i.e. repeatly visiting objects
498498
// by the guest will always incur some charges.
499499
VisitObject = 6,
@@ -2076,7 +2076,7 @@ enum ContractIDPreimageType
20762076
CONTRACT_ID_PREIMAGE_FROM_ADDRESS = 0,
20772077
CONTRACT_ID_PREIMAGE_FROM_ASSET = 1
20782078
};
2079-
2079+
20802080
union ContractIDPreimage switch (ContractIDPreimageType type)
20812081
{
20822082
case CONTRACT_ID_PREIMAGE_FROM_ADDRESS:
@@ -2135,7 +2135,7 @@ struct SorobanAddressCredentials
21352135
{
21362136
SCAddress address;
21372137
int64 nonce;
2138-
uint32 signatureExpirationLedger;
2138+
uint32 signatureExpirationLedger;
21392139
SCVal signature;
21402140
};
21412141

@@ -2155,7 +2155,7 @@ case SOROBAN_CREDENTIALS_ADDRESS:
21552155

21562156
/* Unit of authorization data for Soroban.
21572157
2158-
Represents an authorization for executing the tree of authorized contract
2158+
Represents an authorization for executing the tree of authorized contract
21592159
and/or host function calls by the user defined by `credentials`.
21602160
*/
21612161
struct SorobanAuthorizationEntry
@@ -2280,7 +2280,7 @@ case ENVELOPE_TYPE_POOL_REVOKE_OP_ID:
22802280
struct
22812281
{
22822282
AccountID sourceAccount;
2283-
SequenceNumber seqNum;
2283+
SequenceNumber seqNum;
22842284
uint32 opNum;
22852285
PoolID liquidityPoolID;
22862286
Asset asset;
@@ -2396,11 +2396,11 @@ struct LedgerFootprint
23962396
// Resource limits for a Soroban transaction.
23972397
// The transaction will fail if it exceeds any of these limits.
23982398
struct SorobanResources
2399-
{
2399+
{
24002400
// The ledger footprint of the transaction.
24012401
LedgerFootprint footprint;
24022402
// The maximum number of instructions this transaction can use
2403-
uint32 instructions;
2403+
uint32 instructions;
24042404

24052405
// The maximum number of bytes this transaction can read from ledger
24062406
uint32 readBytes;
@@ -4041,7 +4041,7 @@ struct DiagnosticEvent
40414041
ContractEvent event;
40424042
};
40434043

4044-
struct SorobanTransactionMeta
4044+
struct SorobanTransactionMeta
40454045
{
40464046
ExtensionPoint ext;
40474047

@@ -4064,11 +4064,11 @@ struct TransactionMetaV3
40644064
OperationMeta operations<>; // meta for each operation
40654065
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
40664066
// applied if any
4067-
SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for
4067+
SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for
40684068
// Soroban transactions).
40694069
};
40704070

4071-
// This is in Stellar-ledger.x to due to a circular dependency
4071+
// This is in Stellar-ledger.x to due to a circular dependency
40724072
struct InvokeHostFunctionSuccessPreImage
40734073
{
40744074
SCVal returnValue;
@@ -4591,30 +4591,30 @@ namespace stellar
45914591
union StoredTransactionSet switch (int v)
45924592
{
45934593
case 0:
4594-
TransactionSet txSet;
4594+
TransactionSet txSet;
45954595
case 1:
4596-
GeneralizedTransactionSet generalizedTxSet;
4596+
GeneralizedTransactionSet generalizedTxSet;
45974597
};
45984598

45994599
struct PersistedSCPStateV0
46004600
{
4601-
SCPEnvelope scpEnvelopes<>;
4602-
SCPQuorumSet quorumSets<>;
4603-
StoredTransactionSet txSets<>;
4601+
SCPEnvelope scpEnvelopes<>;
4602+
SCPQuorumSet quorumSets<>;
4603+
StoredTransactionSet txSets<>;
46044604
};
46054605

46064606
struct PersistedSCPStateV1
46074607
{
4608-
// Tx sets are saved separately
4609-
SCPEnvelope scpEnvelopes<>;
4610-
SCPQuorumSet quorumSets<>;
4608+
// Tx sets are saved separately
4609+
SCPEnvelope scpEnvelopes<>;
4610+
SCPQuorumSet quorumSets<>;
46114611
};
46124612

46134613
union PersistedSCPState switch (int v)
46144614
{
46154615
case 0:
4616-
PersistedSCPStateV0 v0;
4616+
PersistedSCPStateV0 v0;
46174617
case 1:
4618-
PersistedSCPStateV1 v1;
4618+
PersistedSCPStateV1 v1;
46194619
};
4620-
}
4620+
}

base/generated/stellar/account_entry.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# // drives the reserve
1515
# AccountID* inflationDest; // Account to vote for during inflation
1616
# uint32 flags; // see AccountFlags
17-
#
17+
#
1818
# string32 homeDomain; // can be used for reverse federation and memo lookup
19-
#
19+
#
2020
# // fields used for signatures
2121
# // thresholds stores unsigned bytes: [weight of master|low|medium|high]
2222
# Thresholds thresholds;
23-
#
23+
#
2424
# Signer signers<MAX_SIGNERS>; // possible signers for this account
25-
#
25+
#
2626
# // reserved for future use
2727
# union switch (int v)
2828
# {

base/generated/stellar/account_entry_extension_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# struct AccountEntryExtensionV1
99
# {
1010
# Liabilities liabilities;
11-
#
11+
#
1212
# union switch (int v)
1313
# {
1414
# case 0:

base/generated/stellar/account_entry_extension_v2.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# uint32 numSponsored;
1111
# uint32 numSponsoring;
1212
# SponsorshipDescriptor signerSponsoringIDs<MAX_SIGNERS>;
13-
#
13+
#
1414
# union switch (int v)
1515
# {
1616
# case 0:

base/generated/stellar/account_entry_extension_v3.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
# // We can use this to add more fields, or because it is first, to
1111
# // change AccountEntryExtensionV3 into a union.
1212
# ExtensionPoint ext;
13-
#
13+
#
1414
# // Ledger number at which `seqNum` took on its present value.
1515
# uint32 seqLedger;
16-
#
16+
#
1717
# // Time at which `seqNum` took on its present value.
1818
# TimePoint seqTime;
1919
# };

base/generated/stellar/account_flags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# enum AccountFlags
99
# { // masks for each flag
10-
#
10+
#
1111
# // Flags set on issuer accounts
1212
# // TrustLines are created with authorized set to "false" requiring
1313
# // the issuer to set it for each TrustLine

base/generated/stellar/allow_trust_op.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# {
1010
# AccountID trustor;
1111
# AssetCode asset;
12-
#
12+
#
1313
# // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
1414
# uint32 authorize;
1515
# };

base/generated/stellar/asset.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
# {
1010
# case ASSET_TYPE_NATIVE: // Not credit
1111
# void;
12-
#
12+
#
1313
# case ASSET_TYPE_CREDIT_ALPHANUM4:
1414
# AlphaNum4 alphaNum4;
15-
#
15+
#
1616
# case ASSET_TYPE_CREDIT_ALPHANUM12:
1717
# AlphaNum12 alphaNum12;
18-
#
18+
#
1919
# // add other asset types here in the future
2020
# };
2121
#

0 commit comments

Comments
 (0)