dogecoin/test/lint
Hennadii Stepanov 753f7cccce
scripted-diff: Make translation bilingual
-BEGIN VERIFY SCRIPT-
sed -i 's/inline std::string _(const char\* psz)/inline bilingual_str _(const char\* psz)/' src/util/translation.h
sed -i 's/return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz;/return bilingual_str{psz, G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz};/' src/util/translation.h
sed -i 's/\b_("\([^"]\|\\"\)*")/&.translated/g' $(git grep --files-with-matches '\b_("' src)
echo Hard cases - multiline strings.
sed -i 's/"Visit %s for further information about the software.")/&.translated/g' src/init.cpp
sed -i "s/\"Only rebuild the block database if you are sure that your computer's date and time are correct\")/&.translated/g" src/init.cpp
sed -i 's/" restore from a backup.")/&.translated/g' src/wallet/db.cpp
sed -i 's/" or address book entries might be missing or incorrect.")/&.translated/g' src/wallet/wallet.cpp
echo Special case.
sed -i 's/_(COPYRIGHT_HOLDERS)/&.translated/' src/util/system.cpp test/lint/lint-format-strings.py
-END VERIFY SCRIPT-
2019-07-24 16:33:20 +03:00
..
check-doc.py lint: Check that all wallet args are hidden 2019-04-28 12:43:50 -04:00
check-rpc-mappings.py
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
lint-all.sh Run all lint scripts 2019-05-16 16:42:59 +02:00
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 scripted-diff: Make translation bilingual 2019-07-24 16:33:20 +03:00
lint-format-strings.sh Replace remaining fprintf with tfm::format manually 2019-06-13 11:46:38 -04:00
lint-include-guards.sh
lint-includes.sh scripted-diff: Replace boost::bind with std::bind 2018-10-20 02:29:59 +08:00
lint-locale-dependence.sh Replace remaining fprintf with tfm::format manually 2019-06-13 11:46:38 -04:00
lint-logs.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
lint-python-dead-code.sh Pure python EC 2019-04-18 11:58:32 -07:00
lint-python-utf8-encoding.sh
lint-python.sh Limit Python linting to files in the repo 2019-05-30 22:36:54 +02:00
lint-qt.sh
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
lint-shell.sh Enable ShellCheck rules 2019-07-04 19:35:25 +03:00
lint-spelling.ignore-words.txt Fix spelling errors identified by codespell 1.15.0 2019-06-11 17:18:16 +02:00
lint-spelling.sh Revert "qa: Fix codespell error and have lint-spelling error instead of warn" 2018-10-16 13:33:05 +02:00
lint-tests.sh
lint-whitespace.sh Replace script name with special parameter 2019-02-12 23:25:54 +02:00
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.