practicalswift
commented at 11:04 PM on August 30, 2018:
contributor
The linters are thoroughly tested under Ubuntu which is what we use in Travis. When reading #14041 I understood that some developers were experiencing problems when running the linters on their local machines.
Assuming these local machines were running macOS I installed a fresh macOS VM, followed the instructions in build-osx.md and ran the linters.
This PR contains the changes needed to make lint-all.sh run as expected.
Ideally the linters would continuously run also under a Travis macOS environment to make sure we catch these kind of issues before merge.
macOS fix: Avoid mapfile due to ancient version of bash shipped with macOSb57d7d92fe
macOS fix: Work around empty (sub)expression error when using BSD grepec4d57bbb3
macOS fix: Add excludes for checks added in the newer shellcheck version installed by brew908a559f33
macOS fix: Check for correct version of flake8 to avoid spurious warnings. The brew installed flake8 version is Python 2 based and does not work.341f7c7b0e
fanquake added the label Scripts and tools on Aug 30, 2018
practicalswift cross-referenced this on Aug 30, 2018 from issue Linter fixes by kallewoof
DrahtBot
commented at 2:21 AM on August 31, 2018:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
#13728 (Scripts and tools: Run the CI lint stage on mac and linux both by Empact)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
./test/lint/lint-all.sh
test/lint/lint-format-strings.sh: line 36: mapfile: command not found
grep: empty (sub)expression
/usr/local/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
grep: empty (sub)expression
Missing "export LC_ALL=C" (to avoid locale dependence) as first non-comment non-empty line in .travis/lint_04_install.sh
grep: empty (sub)expression
^---- failure generated from test/lint/lint-shell-locale.sh
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC