Skip to content

Commit 97f0747

Browse files
authored
chore: Run prettier on all files (#5657)
1 parent abf12db commit 97f0747

Some content is hidden

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

60 files changed

+6365
-6248
lines changed

.clang-format

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
Language: Cpp
2+
Language: Cpp
33
AccessModifierOffset: -4
44
AlignAfterOpenBracket: AlwaysBreak
55
AlignConsecutiveAssignments: false
@@ -19,52 +19,52 @@ AlwaysBreakTemplateDeclarations: true
1919
BinPackArguments: false
2020
BinPackParameters: false
2121
BraceWrapping:
22-
AfterClass: true
22+
AfterClass: true
2323
AfterControlStatement: true
24-
AfterEnum: false
25-
AfterFunction: true
26-
AfterNamespace: false
24+
AfterEnum: false
25+
AfterFunction: true
26+
AfterNamespace: false
2727
AfterObjCDeclaration: true
28-
AfterStruct: true
29-
AfterUnion: true
30-
BeforeCatch: true
31-
BeforeElse: true
32-
IndentBraces: false
28+
AfterStruct: true
29+
AfterUnion: true
30+
BeforeCatch: true
31+
BeforeElse: true
32+
IndentBraces: false
3333
BreakBeforeBinaryOperators: false
3434
BreakBeforeBraces: Custom
3535
BreakBeforeTernaryOperators: true
3636
BreakConstructorInitializersBeforeComma: true
37-
ColumnLimit: 80
38-
CommentPragmas: '^ IWYU pragma:'
37+
ColumnLimit: 80
38+
CommentPragmas: "^ IWYU pragma:"
3939
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4040
ConstructorInitializerIndentWidth: 4
4141
ContinuationIndentWidth: 4
4242
Cpp11BracedListStyle: true
4343
DerivePointerAlignment: false
44-
DisableFormat: false
44+
DisableFormat: false
4545
ExperimentalAutoDetectBinPacking: false
46-
ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ]
47-
IncludeBlocks: Regroup
46+
ForEachMacros: [Q_FOREACH, BOOST_FOREACH]
47+
IncludeBlocks: Regroup
4848
IncludeCategories:
49-
- Regex: '^<(test)/'
50-
Priority: 0
51-
- Regex: '^<(xrpld)/'
52-
Priority: 1
53-
- Regex: '^<(xrpl)/'
54-
Priority: 2
55-
- Regex: '^<(boost)/'
56-
Priority: 3
57-
- Regex: '^.*/'
58-
Priority: 4
59-
- Regex: '^.*\.h'
60-
Priority: 5
61-
- Regex: '.*'
62-
Priority: 6
63-
IncludeIsMainRegex: '$'
49+
- Regex: "^<(test)/"
50+
Priority: 0
51+
- Regex: "^<(xrpld)/"
52+
Priority: 1
53+
- Regex: "^<(xrpl)/"
54+
Priority: 2
55+
- Regex: "^<(boost)/"
56+
Priority: 3
57+
- Regex: "^.*/"
58+
Priority: 4
59+
- Regex: '^.*\.h'
60+
Priority: 5
61+
- Regex: ".*"
62+
Priority: 6
63+
IncludeIsMainRegex: "$"
6464
IndentCaseLabels: true
6565
IndentFunctionDeclarationAfterType: false
6666
IndentRequiresClause: true
67-
IndentWidth: 4
67+
IndentWidth: 4
6868
IndentWrappedFunctionNames: false
6969
KeepEmptyLinesAtTheStartOfBlocks: false
7070
MaxEmptyLinesToKeep: 1
@@ -78,20 +78,25 @@ PenaltyBreakString: 1000
7878
PenaltyExcessCharacter: 1000000
7979
PenaltyReturnTypeOnItsOwnLine: 200
8080
PointerAlignment: Left
81-
ReflowComments: true
81+
ReflowComments: true
8282
RequiresClausePosition: OwnLine
83-
SortIncludes: true
83+
SortIncludes: true
8484
SpaceAfterCStyleCast: false
8585
SpaceBeforeAssignmentOperators: true
8686
SpaceBeforeParens: ControlStatements
8787
SpaceInEmptyParentheses: false
8888
SpacesBeforeTrailingComments: 2
89-
SpacesInAngles: false
89+
SpacesInAngles: false
9090
SpacesInContainerLiterals: true
9191
SpacesInCStyleCastParentheses: false
9292
SpacesInParentheses: false
9393
SpacesInSquareBrackets: false
94-
Standard: Cpp11
95-
TabWidth: 8
96-
UseTab: Never
97-
QualifierAlignment: Right
94+
Standard: Cpp11
95+
TabWidth: 8
96+
UseTab: Never
97+
QualifierAlignment: Right
98+
---
99+
Language: JavaScript
100+
---
101+
Language: Json
102+
IndentWidth: 2

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ github_checks:
2727
parsers:
2828
cobertura:
2929
partials_as_hits: true
30-
handle_missing_conditions : true
30+
handle_missing_conditions: true
3131

3232
slack_app: false
3333

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@
22
name: Bug Report
33
about: Create a report to help us improve rippled
44
title: "[Title with short description] (Version: [rippled version])"
5-
labels: ''
6-
assignees: ''
7-
5+
labels: ""
6+
assignees: ""
87
---
8+
99
<!-- Please search existing issues to avoid creating duplicates.-->
1010

1111
## Issue Description
12+
1213
<!--Provide a summary for your issue/bug.-->
1314

1415
## Steps to Reproduce
16+
1517
<!--List in detail the exact steps to reproduce the unexpected behavior of the software.-->
1618

1719
## Expected Result
20+
1821
<!--Explain in detail what behavior you expected to happen.-->
1922

2023
## Actual Result
24+
2125
<!--Explain in detail what behavior actually happened.-->
2226

2327
## Environment
28+
2429
<!--Please describe your environment setup (such as Ubuntu 18.04 with Boost 1.70).-->
2530
<!-- If you are using a formal release, please use the version returned by './rippled --version' as the version number-->
2631
<!-- If you are working off of develop, please add the git hash via 'git rev-parse HEAD'-->
2732

2833
## Supporting Files
34+
2935
<!--If you have supporting files such as a log, feel free to post a link here using Github Gist.-->
3036
<!--Consider adding configuration files with private information removed via Github Gist. -->
31-

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,23 @@ name: Feature Request
33
about: Suggest a new feature for the rippled project
44
title: "[Title with short description] (Version: [rippled version])"
55
labels: Feature Request
6-
assignees: ''
7-
6+
assignees: ""
87
---
8+
99
<!-- Please search existing issues to avoid creating duplicates.-->
1010

1111
## Summary
12+
1213
<!-- Provide a summary to the feature request-->
1314

1415
## Motivation
16+
1517
<!-- Why do we need this feature?-->
1618

1719
## Solution
20+
1821
<!-- What is the solution?-->
1922

2023
## Paths Not Taken
24+
2125
<!-- What other alternatives have been considered?-->

.github/workflows/libxrpl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ env:
66
on:
77
pull_request:
88
paths:
9-
- 'src/libxrpl/protocol/BuildInfo.cpp'
10-
- '.github/workflows/libxrpl.yml'
9+
- "src/libxrpl/protocol/BuildInfo.cpp"
10+
- ".github/workflows/libxrpl.yml"
1111
types: [opened, reopened, synchronize, ready_for_review]
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3131
running-workflow-name: wait-for-check-regexp
32-
check-regexp: '(dependencies|test).*linux.*' # Ignore windows and mac tests but make sure linux passes
32+
check-regexp: "(dependencies|test).*linux.*" # Ignore windows and mac tests but make sure linux passes
3333
repo-token: ${{ secrets.GITHUB_TOKEN }}
3434
wait-interval: 10
3535
- name: Checkout

.github/workflows/macos.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- release
1212
- master
1313
# Branches that opt-in to running
14-
- 'ci/**'
14+
- "ci/**"
1515
concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
@@ -32,7 +32,6 @@ env:
3232
tools.compilation:verbosity=verbose
3333
3434
jobs:
35-
3635
test:
3736
if: ${{ github.event_name == 'push' || github.event.pull_request.draft != true || contains(github.event.pull_request.labels.*.name, 'DraftRunCI') }}
3837
strategy:
@@ -89,7 +88,7 @@ jobs:
8988
sysctl -n hw.logicalcpu
9089
clang --version
9190
- name: configure Conan
92-
run : |
91+
run: |
9392
echo "${CONAN_GLOBAL_CONF}" > $(conan config home)/global.conf
9493
conan config install conan/profiles/ -tf $(conan config home)/profiles/
9594
conan profile show

.github/workflows/missing-commits.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,49 @@ jobs:
1212
up_to_date:
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
- name: Check for missing commits
19-
id: commits
20-
env:
21-
SUGGESTION: |
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Check for missing commits
19+
id: commits
20+
env:
21+
SUGGESTION: |
2222
23-
If you are reading this, then the commits indicated above are
24-
missing from "develop" and/or "release". Do a reverse-merge
25-
as soon as possible. See CONTRIBUTING.md for instructions.
26-
run: |
27-
set -o pipefail
28-
# Branches ordered by how "canonical" they are. Every commit in
29-
# one branch should be in all the branches behind it
30-
order=( master release develop )
31-
branches=()
32-
for branch in "${order[@]}"
33-
do
34-
# Check that the branches exist so that this job will work on
35-
# forked repos, which don't necessarily have master and
36-
# release branches.
37-
if git ls-remote --exit-code --heads origin \
38-
refs/heads/${branch} > /dev/null
39-
then
40-
branches+=( origin/${branch} )
41-
fi
42-
done
23+
If you are reading this, then the commits indicated above are
24+
missing from "develop" and/or "release". Do a reverse-merge
25+
as soon as possible. See CONTRIBUTING.md for instructions.
26+
run: |
27+
set -o pipefail
28+
# Branches ordered by how "canonical" they are. Every commit in
29+
# one branch should be in all the branches behind it
30+
order=( master release develop )
31+
branches=()
32+
for branch in "${order[@]}"
33+
do
34+
# Check that the branches exist so that this job will work on
35+
# forked repos, which don't necessarily have master and
36+
# release branches.
37+
if git ls-remote --exit-code --heads origin \
38+
refs/heads/${branch} > /dev/null
39+
then
40+
branches+=( origin/${branch} )
41+
fi
42+
done
4343
44-
prior=()
45-
for branch in "${branches[@]}"
46-
do
47-
if [[ ${#prior[@]} -ne 0 ]]
44+
prior=()
45+
for branch in "${branches[@]}"
46+
do
47+
if [[ ${#prior[@]} -ne 0 ]]
48+
then
49+
echo "Checking ${prior[@]} for commits missing from ${branch}"
50+
git log --oneline --no-merges "${prior[@]}" \
51+
^$branch | tee -a "missing-commits.txt"
52+
echo
53+
fi
54+
prior+=( "${branch}" )
55+
done
56+
if [[ $( cat missing-commits.txt | wc -l ) -ne 0 ]]
4857
then
49-
echo "Checking ${prior[@]} for commits missing from ${branch}"
50-
git log --oneline --no-merges "${prior[@]}" \
51-
^$branch | tee -a "missing-commits.txt"
52-
echo
58+
echo "${SUGGESTION}"
59+
exit 1
5360
fi
54-
prior+=( "${branch}" )
55-
done
56-
if [[ $( cat missing-commits.txt | wc -l ) -ne 0 ]]
57-
then
58-
echo "${SUGGESTION}"
59-
exit 1
60-
fi

0 commit comments

Comments
 (0)