bitcoin/test/lint
MarcoFalke 45be44cce4
Merge #15257: Scripts and tools: Bump flake8 to 3.7.8
3d0a82cff8 devtools: Accomodate block-style copyright blocks (Ben Woosley)
0ef0e51fe4 lint: Bump flake8 to 3.7.8 (Ben Woosley)
838920704a lint: Disable flake8 W504 warning (Ben Woosley)
b21680baf5 test/contrib: Fix invalid escapes in regex strings (Ben Woosley)

Pull request description:

  This is a second go at #15221, fixing new lints in:
  W504 line break after binary operator
  W605 invalid escape sequence
  F841 local variable 'e' is assigned to but never used

  This time around:
  * One commit per rule, for easier review
  * I went with the PEP-8 style of breaking before binary operators
  * I looked into the raw regex newline issue, and found that raw strings with newlines embedded do work appropriately. E.g. run `re.match(r" \n ", " \n ")` to check this for yourself. `re.MULTILINE` exists to modify `^` and `$` in multiline scenarios, but  all of these searches are per-line.

ACKs for top commit:
  practicalswift:
    ACK 3d0a82cff8 -- diff looks correct

Tree-SHA512: bea0c144cadd72e4adf2e9a4b4ee0535dd91a8e694206924cf8a389dc9253f364a717edfe9abda88108fbb67fda19b9e823f46822d7303c0aaa72e48909a6105
2019-09-05 02:43:13 +02:00
..
check-doc.py test/contrib: Fix invalid escapes in regex strings 2019-09-03 14:38:38 -04:00
check-rpc-mappings.py test/contrib: Fix invalid escapes in regex strings 2019-09-03 14:38:38 -04:00
commit-script-check.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
extended-lint-all.sh
extended-lint-cppcheck.sh
git-subtree-check.sh
lint-all.sh
lint-assertions.sh
lint-circular-dependencies.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
lint-filenames.sh
lint-format-strings.py test/contrib: Fix invalid escapes in regex strings 2019-09-03 14:38:38 -04:00
lint-format-strings.sh
lint-include-guards.sh
lint-includes.sh Make lint-includes.sh work from any directory 2019-09-04 22:36:09 +03:00
lint-locale-dependence.sh
lint-logs.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
lint-python-dead-code-whitelist lint: Add false positive to python dead code linter 2019-08-15 08:05:14 -04:00
lint-python-dead-code.sh lint: Add false positive to python dead code linter 2019-08-15 08:05:14 -04:00
lint-python-mutable-default-parameters.sh lint: Catch use of [] or {} as default parameter values in Python functions 2019-08-26 10:53:10 +00:00
lint-python-utf8-encoding.sh
lint-python.sh lint: Disable flake8 W504 warning 2019-09-03 14:40:56 -04:00
lint-qt.sh
lint-rpc-help.sh
lint-shebang.sh
lint-shell-locale.sh
lint-shell.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
lint-spelling.ignore-words.txt Add test for setban 2019-08-16 13:40:31 +09:00
lint-spelling.sh Check for codespell in lint-spelling.sh 2019-08-31 00:00:11 +03:00
lint-tests.sh
lint-whitespace.sh
README.md

This folder contains lint scripts.

check-doc.py

Check for missing documentation of command line options.

commit-script-check.sh

Verification of scripted diffs.

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.

To use, make sure that you have fetched the upstream repository branch in which the subtree is maintained:

Usage: git-subtree-check.sh DIR (COMMIT)

COMMIT may be omitted, in which case HEAD is used.

lint-all.sh

Calls other scripts with the lint- prefix.