Skip to content

Files

Latest commit

f4149bd · Sep 8, 2023

History

History
This branch is 18 commits behind bitcoin-core/gui-qml:main.

lint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 16, 2023
Jan 3, 2023
Dec 24, 2022
Dec 24, 2022
Dec 30, 2021
Jun 14, 2023
Aug 18, 2023
Dec 24, 2022
Aug 3, 2023
Feb 1, 2023
Aug 3, 2023
Aug 3, 2023
Mar 27, 2023
Apr 5, 2022
Jan 18, 2023
Jul 20, 2023
Aug 26, 2023
Jun 15, 2022
Jan 18, 2023
Dec 19, 2022
Jan 18, 2023
Jan 18, 2023
Sep 8, 2023
Aug 8, 2023
Jun 29, 2023

This folder contains lint scripts.

Running locally

To run linters locally with the same versions as the CI environment, use the included Dockerfile:

DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./

docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter

After building the container once, you can simply run the last command any time you want to lint.

check-doc.py

Check for missing documentation of command line options.

commit-script-check.sh

Verification of scripted diffs. Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Running them on other operating systems might require installing GNU tools, such as GNU sed.

git-subtree-check.sh

Run this script from the root of the repository to verify that a subtree matches the contents of the commit it claims to have been updated to.

Usage: test/lint/git-subtree-check.sh [-r] DIR [COMMIT]
       test/lint/git-subtree-check.sh -?
  • DIR is the prefix within the repository to check.
  • COMMIT is the commit to check, if it is not provided, HEAD will be used.
  • -r checks that subtree commit is present in repository.

To do a full check with -r, make sure that you have fetched the upstream repository branch in which the subtree is maintained:

To do so, add the upstream repository as remote:

git remote add --fetch secp256k1 https://github.com/bitcoin-core/secp256k1.git

all-lint.py

Calls other scripts with the lint- prefix.