dogecoin/test/lint
Wladimir J. van der Laan 1f59885d27
Merge #17361: script: Lint Gitian descriptors with ShellCheck
17f81e9648 script: Enable SC2001 rule for Gitian scripts (Hennadii Stepanov)
61bb21b418 script: Enable SC2155 rule for Gitian scripts (Hennadii Stepanov)
577682d9e8 script: Enable SC2006 rule for Gitian scripts (Hennadii Stepanov)
14aded46df script: Lint Gitian descriptors with ShellCheck (Hennadii Stepanov)

Pull request description:

  This PR extracts shell scripts from Gitian descriptors (`contrib/gitian-descriptors/`) and checks for ShellCheck warnings as any other one.

  Some non-controversial warnings are fixed.

ACKs for top commit:
  practicalswift:
    ACK 17f81e9648 -- diff looks correct

Tree-SHA512: bdfa3d35bbb65ff634c90835d75c3df63e958b558599771d21366724f5cf64da83a68957d926e926a99c3704b9529e96a17697dc8d9ff3adf7154d9cb1999a8d
2019-11-28 10:18:22 +01: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 Add Travis check for single parameter constructors not marked "explicit" 2019-06-26 16:57:14 +02:00
extended-lint-cppcheck.sh Add Travis check for single parameter constructors not marked "explicit" 2019-06-26 16:57:14 +02:00
git-subtree-check.sh [linter] Strip trailing / in path for git-subtree-check 2019-10-31 11:53:46 -04:00
lint-all.sh Run all lint scripts 2019-05-16 16:42:59 +02:00
lint-assertions.sh replace asserts in RPC code with CHECK_NONFATAL and add linter 2019-10-30 12:03:07 -04:00
lint-circular-dependencies.sh refactor: Nuke coincontrol circular dependency 2019-11-23 08:30:03 +02:00
lint-filenames.sh tests: Add FuzzedDataProvider fuzzing helper from the Chromium project 2019-10-10 21:13:33 +00:00
lint-format-strings.py Refactor: Split up CWallet and LegacyScriptPubKeyMan and classes 2019-10-25 19:20:24 -04:00
lint-format-strings.sh Replace remaining fprintf with tfm::format manually 2019-06-13 11:46:38 -04:00
lint-include-guards.sh tests: Add FuzzedDataProvider fuzzing helper from the Chromium project 2019-10-10 21:13:33 +00:00
lint-includes.sh Make lint-includes.sh work from any directory 2019-09-04 22:36:09 +03:00
lint-locale-dependence.sh Replace remaining fprintf with tfm::format manually 2019-06-13 11:46:38 -04:00
lint-logs.sh Refactor: Split up CWallet and LegacyScriptPubKeyMan and classes 2019-10-25 19:20:24 -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: Make sure we read the command line inputs using utf-8 decoding in python 2018-09-02 21:40:51 +08:00
lint-python.sh build: Remove install command samples 2019-11-06 13:22:06 +02:00
lint-qt.sh test: Add lint to prevent SIGNAL/SLOT connect style 2018-08-21 09:43:55 +01:00
lint-rpc-help.sh rpc: Documentation fixups 2018-11-15 12:19:11 -05:00
lint-shebang.sh Scripts and tools & Docs: Used #!/usr/bin/env bash instead of obsolete #!/bin/bash, added linting for .sh files shebang and updated the Developer Notes. 2018-12-02 16:14:21 +02:00
lint-shell-locale.sh macOS fix: Work around empty (sub)expression error when using BSD grep 2018-08-31 00:52:48 +02:00
lint-shell.sh script: Enable SC2001 rule for Gitian scripts 2019-11-27 19:27:56 +02:00
lint-spelling.ignore-words.txt doc: Fix some misspellings 2019-11-04 04:22:53 -05:00
lint-spelling.sh doc: Fix some misspellings 2019-11-04 04:22:53 -05:00
lint-tests.sh Obsolete #!/bin/bash shebang 2018-06-20 11:12:41 +03:00
lint-whitespace.sh test: Avoid whitespace linting in qt translations 2019-09-30 09:55:54 +02:00
README.md doc: Document that GNU tools are required for linters 2019-10-17 10:52:11 -04:00

This folder contains lint scripts.

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.

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.