From 3fba557d5c310e1fc4e6866a6a342c40331b3ad2 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 27 Sep 2017 09:52:03 +0100 Subject: Add static analysis job to find invalid YAML in changelogs When a changelog has invalid YAML (typically, there is an unquoted @ at the start of the author field), then the entry will be discarded. This script checks all unreleased changelogs for validity, and runs as part of the static-analysis step, so the pipeline will fail if this happens in future. --- scripts/static-analysis | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/static-analysis') diff --git a/scripts/static-analysis b/scripts/static-analysis index 295b6f132c1..aeefb2bc96f 100755 --- a/scripts/static-analysis +++ b/scripts/static-analysis @@ -13,7 +13,8 @@ tasks = [ %w[yarn run eslint], %w[bundle exec rubocop --require rubocop-rspec], %w[scripts/lint-conflicts.sh], - %w[bundle exec rake gettext:lint] + %w[bundle exec rake gettext:lint], + %w[scripts/lint-changelog-yaml] ] failed_tasks = tasks.reduce({}) do |failures, task| -- cgit v1.2.1