Fix default environment for clang-tidy (#2420)

* Drop unnecessary platformio call from script/lint-cpp

* Default environment for clang-tidy to esp32-tidy
This commit is contained in:
Oxan van Leeuwen 2021-09-30 16:24:02 +02:00 committed by GitHub
parent 946db3fd50
commit 0e4f1ac40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -122,7 +122,7 @@ def main():
parser.add_argument('-j', '--jobs', type=int, parser.add_argument('-j', '--jobs', type=int,
default=multiprocessing.cpu_count(), default=multiprocessing.cpu_count(),
help='number of tidy instances to be run in parallel.') help='number of tidy instances to be run in parallel.')
parser.add_argument('-e', '--environment', default='esp8266-tidy', parser.add_argument('-e', '--environment', default='esp32-tidy',
help='the PlatformIO environment to run against (esp8266-tidy or esp32-tidy)') help='the PlatformIO environment to run against (esp8266-tidy or esp32-tidy)')
parser.add_argument('files', nargs='*', default=[], parser.add_argument('files', nargs='*', default=[],
help='files to be processed (regex on path)') help='files to be processed (regex on path)')

View File

@ -3,9 +3,6 @@
set -e set -e
cd "$(dirname "$0")/.." cd "$(dirname "$0")/.."
if [[ ! -e ".gcc-flags.json" ]]; then
pio init --ide atom
fi
set -x set -x