zcashd/test/lint
John Newbery 9069364e56 [linter] Strip trailing / in path for git-subtree-check
git-subtree-check fails if the directory is given with a trailing slash,
eg:

```
> test/lint/git-subtree-check.sh src/univalue/
ERROR: src/univalue/ is not a subtree
```

Shell autocompletes will add the trailing slash when autofilling the
path name, which will therefore cause the script to fail.

Just ignore any trailing slash.
2020-11-09 23:06:21 +00:00
..
README.md test: Move linters to test/lint, add readme 2020-10-27 23:05:02 +00:00
commit-script-check.sh Use HTTPS in script license headers 2020-10-26 18:04:19 +00:00
git-subtree-check.sh [linter] Strip trailing / in path for git-subtree-check 2020-11-09 23:06:21 +00:00
lint-all.sh Small documentation fixes 2020-11-09 17:15:46 +00:00
lint-include-guards.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-includes.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-locale-dependence.sh lint: Allow stoi in src/rpc/blockchain.cpp 2020-11-09 20:03:22 +00:00
lint-python-utf8-encoding.sh Follow-up to #13454: Fix broken build by exporting LC_ALL=C 2020-10-28 13:14:39 +00:00
lint-shebang.sh lints: Add a missing copyright header 2020-11-09 17:17:08 +00:00
lint-shell-locale.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-shell.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00
lint-whitespace.sh lint: Remove some subtrees from exclusion 2020-11-09 20:06:45 +00:00

README.md

This folder contains lint scripts.

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.