Changeset View
Changeset View
Standalone View
Standalone View
CONTRIBUTING.md
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
During submission of patches, arcanist will automatically run `arc lint` to | During submission of patches, arcanist will automatically run `arc lint` to | ||||
enforce Bitcoin ABC code formatting standards, and often suggests changes. | enforce Bitcoin ABC code formatting standards, and often suggests changes. | ||||
If code formatting tools do not install automatically on your system, you | If code formatting tools do not install automatically on your system, you | ||||
will have to install the following: | will have to install the following: | ||||
On Ubuntu (>= 18.04+updates): | On Ubuntu (>= 18.04+updates): | ||||
``` | ``` | ||||
sudo apt-get install clang-format-8 clang-tidy-8 clang-tools-8 cppcheck python3-autopep8 flake8 php-codesniffer yamllint | sudo apt-get install clang-format-8 clang-tidy-8 clang-tools-8 cppcheck mypy python3-autopep8 flake8 php-codesniffer yamllint | ||||
``` | ``` | ||||
On Debian (>= 10), the clang-8 family of tools is available from the `buster-backports` repository: | On Debian (>= 10), the clang-8 family of tools is available from the `buster-backports` repository: | ||||
``` | ``` | ||||
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list | echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list | ||||
sudo apt-get update | sudo apt-get update | ||||
sudo apt-get install cppcheck python3-autopep8 flake8 php-codesniffer | sudo apt-get install cppcheck python3-autopep8 flake8 php-codesniffer mypy | ||||
sudo apt-get -t buster-backports install clang-format-8 clang-tidy-8 clang-tools-8 | sudo apt-get -t buster-backports install clang-format-8 clang-tidy-8 clang-tools-8 | ||||
``` | ``` | ||||
If not available in the distribution, `clang-format-8` and `clang-tidy` can be | If not available in the distribution, `clang-format-8` and `clang-tidy` can be | ||||
installed from <https://releases.llvm.org/download.html> or <https://apt.llvm.org>. | installed from <https://releases.llvm.org/download.html> or <https://apt.llvm.org>. | ||||
For example, for macOS: | For example, for macOS: | ||||
``` | ``` | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |