Skip to content

Commit 1e55310

Browse files
2fa480a partial bitcoin#25288: Reliably don't start itself (lint-all.py runs all tests twice) (Kittywhiskers Van Gogh) bda1e03 merge bitcoin#24982: Port `lint-all.sh` to `lint-all.py` (Kittywhiskers Van Gogh) b054a0d merge bitcoin#24840: port `lint-shell.sh` to python (Kittywhiskers Van Gogh) 973ca7b merge bitcoin#23506: Make more shell scripts verifiable by the `shellcheck` tool (Kittywhiskers Van Gogh) 694c1a4 merge bitcoin#24929: convert shell locale linter test to Python (Kittywhiskers Van Gogh) 2a7d32a merge bitcoin#24916: Convert lint-python-utf8-encoding.sh to Python (Kittywhiskers Van Gogh) 0321fa0 merge bitcoin#24915: Convert lint-circular-dependencies.sh to Python (Kittywhiskers Van Gogh) e3dc4b1 merge bitcoin#24902: Convert lint-include-guards.sh to Python (Kittywhiskers Van Gogh) fc48a13 merge bitcoin#23524: Fix typos in endif header comments (Kittywhiskers Van Gogh) 1f8c3b5 merge bitcoin#24794: Convert Python linter to Python (Kittywhiskers Van Gogh) 110b6ac partial revert dash#4807: enable more multi-threading and caching in linters (Kittywhiskers Van Gogh) Pull request description: ## Additional Information * Depends on #6428 * The introduction in `flake8-cached` for `lint-python.sh` in [dash#4807](#4807) was reverted as this logic wasn't going to be ported over to the Python replacement as the `flake8-cached` repo has been archived since April 2023 ([source](https://github.com/jnoortheen/flake8-cached)) and we don't use it in CI through GitLab ([build](https://gitlab.com/dashpay/dash/-/jobs/8456994796#L144)) or GitHub Actions ([build](https://github.com/dashpay/dash/actions/runs/11981121905/job/33406844883#step:7:75)). * [bitcoin#25288](bitcoin#25288) has been marked as partial as the change of the glob pattern from `{mod_path}/lint-*` to `{mod_path}/lint-*.py` as we still have `lint-cppcheck-dash.sh` around ([source](https://github.com/dashpay/dash/blob/b88d9910a8362ad7a47cf2ea822a00649793350b/test/lint/lint-cppcheck-dash.sh)) (and the original `cppcheck` linter upstream was removed in [bitcoin#25091](bitcoin#25091)). A Python port of that linter would allow for completing [bitcoin#25288](bitcoin#25288). ## Breaking Changes None expected. ## Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas **(note: N/A)** - [x] I have added or updated relevant unit/integration/functional/e2e tests - [x] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK 2fa480a PastaPastaPasta: utACK 2fa480a Tree-SHA512: 48ddf11be11232df26051b39dfadac9f363d2f201b9f303cad6ddd54550e2f1881947061155da9d4eaf3f5a87cdd371368dc36b4d70eb81ff4c48a7a93af63ae
2 parents 89ca1ae + 2fa480a commit 1e55310

Some content is hidden

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

51 files changed

+708
-464
lines changed

ci/dash/build_src.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ "$CHECK_DOC" = 1 ]; then
2525
# TODO: Check docs (re-enable after all Bitcoin PRs have been merged and docs fully fixed)
2626
#test/lint/check-doc.py
2727
# Run all linters
28-
test/lint/lint-all.sh
28+
test/lint/all-lint.py
2929
fi
3030

3131
ccache --zero-stats --max-size=$CCACHE_SIZE

ci/lint/06_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test/lint/git-subtree-check.sh src/minisketch
2121
test/lint/git-subtree-check.sh src/univalue
2222
test/lint/git-subtree-check.sh src/leveldb
2323
test/lint/check-doc.py
24-
test/lint/lint-all.sh
24+
test/lint/all-lint.py
2525

2626
if [ "$CIRRUS_REPO_FULL_NAME" = "dashpay/dash" ] && [ -n "$CIRRUS_CRON" ]; then
2727
git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit

contrib/guix/libexec/prelude.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
export LC_ALL=C
33
set -e -o pipefail
44

5-
# shellcheck source=../../shell/realpath.bash
5+
# shellcheck source=contrib/shell/realpath.bash
66
source contrib/shell/realpath.bash
77

8-
# shellcheck source=../../shell/git-utils.bash
8+
# shellcheck source=contrib/shell/git-utils.bash
99
source contrib/shell/git-utils.bash
1010

1111
################

src/banman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ class BanMan
9797
CRollingBloomFilter m_discouraged GUARDED_BY(m_cs_banned) {50000, 0.000001};
9898
};
9999

100-
#endif
100+
#endif // BITCOIN_BANMAN_H

src/batchedlogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ class CBatchedLogger
3535
void Flush();
3636
};
3737

38-
#endif//BITCOIN_BATCHEDLOGGER_H
38+
#endif // BITCOIN_BATCHEDLOGGER_H

src/coinjoin/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ constexpr int CalculateAmountPriority(CAmount nInputAmount)
132132

133133
} // namespace CoinJoin
134134

135-
#endif
135+
#endif // BITCOIN_COINJOIN_COMMON_H

src/consensus/amount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ static constexpr CAmount COIN = 100000000;
2626
static constexpr CAmount MAX_MONEY = 21000000 * COIN;
2727
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
2828

29-
#endif // BITCOIN_CONSENSUS_AMOUNT_H
29+
#endif // BITCOIN_CONSENSUS_AMOUNT_H

src/context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ T* GetContext(const CoreContext& context) noexcept
3333
: nullptr;
3434
}
3535

36-
#endif // BITCOIN_CONTEXT_VARIANT_H
36+
#endif // BITCOIN_CONTEXT_H

src/evo/creditpool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ std::optional<CCreditPoolDiff> GetCreditPoolDiffForBlock(CCreditPoolManager& cpo
141141
const CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams,
142142
const CAmount blockSubsidy, BlockValidationState& state);
143143

144-
#endif
144+
#endif // BITCOIN_EVO_CREDITPOOL_H

src/evo/dmnstate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,4 +377,4 @@ class CDeterministicMNStateDiff
377377
};
378378

379379

380-
#endif //BITCOIN_EVO_DMNSTATE_H
380+
#endif // BITCOIN_EVO_DMNSTATE_H

0 commit comments

Comments
 (0)