mirror of
https://github.com/super-linter/super-linter.git
synced 2025-03-12 01:09:26 -04:00
fix: emit prettier verbose output when debugging (#6636)
Some checks failed
Publish Images / Build and Test (push) Has been cancelled
Build and Test / Set build metadata (push) Has been cancelled
Build and Test / Build test suite matrix (push) Has been cancelled
Build and Test / preview-release-notes (push) Has been cancelled
Lint commit / commitlint (push) Has been cancelled
Publish Images / Release (push) Has been cancelled
Build and Test / Build and Test (push) Has been cancelled
Build and Test / Test the Super-linter GitHub Action (push) Has been cancelled
Build and Test / Run test cases (push) Has been cancelled
Build and Test / Check if all the tests passed (push) Has been cancelled
Some checks failed
Publish Images / Build and Test (push) Has been cancelled
Build and Test / Set build metadata (push) Has been cancelled
Build and Test / Build test suite matrix (push) Has been cancelled
Build and Test / preview-release-notes (push) Has been cancelled
Lint commit / commitlint (push) Has been cancelled
Publish Images / Release (push) Has been cancelled
Build and Test / Build and Test (push) Has been cancelled
Build and Test / Test the Super-linter GitHub Action (push) Has been cancelled
Build and Test / Run test cases (push) Has been cancelled
Build and Test / Check if all the tests passed (push) Has been cancelled
Set Prettier output to warn unless Super-linter debug output is enabled to avoid that Prettier prints its default output when formatting the summary file, potentially confusing users.
This commit is contained in:
parent
417a58a62d
commit
4e1eb5f5e0
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,12 @@ WriteSummaryFooterFailure() {
|
|||
FormatSuperLinterSummaryFile() {
|
||||
local SUPER_LINTER_SUMMARY_OUTPUT_PATH="${1}"
|
||||
local SUPER_LINTER_SUMMARY_FORMAT_COMMAND=(prettier --write)
|
||||
|
||||
# Avoid emitting output except of warnings and errors if debug logging is
|
||||
# disabled.
|
||||
if [[ "${LOG_DEBUG}" != "true" ]]; then
|
||||
SUPER_LINTER_SUMMARY_FORMAT_COMMAND+=(--log-level warn)
|
||||
fi
|
||||
# Override the default prettier ignore paths (.gitignore, .prettierignore) to
|
||||
# avoid considering their defaults because prettier will skip formatting
|
||||
# the summary report file if the summary report file is ignored in those
|
||||
|
|
Loading…
Add table
Reference in a new issue