From f31eac6ec6fb2345d8fb970258fd1400fcc58863 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Fri, 8 Oct 2021 14:43:17 +0300 Subject: [PATCH] Remove bridges from checks (#4040) * Remove bridges from check_line_width * Remove bridges from spellcheck --- polkadot/.gitlab-ci.yml | 4 ++-- polkadot/scripts/gitlab/check_line_width.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polkadot/.gitlab-ci.yml b/polkadot/.gitlab-ci.yml index 6a7d381c07..ae10e34d62 100644 --- a/polkadot/.gitlab-ci.yml +++ b/polkadot/.gitlab-ci.yml @@ -242,9 +242,9 @@ spellcheck: - cargo spellcheck --version # compare with the commit parent to the PR, given it's from a default branch - git fetch origin +${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH} - - cargo spellcheck list-files -vvv $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH})) + - cargo spellcheck list-files -vvv $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges)) - time cargo spellcheck check -vvv --cfg=scripts/gitlab/spellcheck.toml --checkers hunspell --code 1 - $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH})) + $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges)) allow_failure: true build-adder-collator: diff --git a/polkadot/scripts/gitlab/check_line_width.sh b/polkadot/scripts/gitlab/check_line_width.sh index c31cab4465..b147488d92 100755 --- a/polkadot/scripts/gitlab/check_line_width.sh +++ b/polkadot/scripts/gitlab/check_line_width.sh @@ -8,7 +8,7 @@ BASE_BRANCH="origin/master" LINE_WIDTH="121" GOOD_LINE_WIDTH="101" -git diff --name-only "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- \*.rs | ( while read -r file +git diff --name-only "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- \*.rs :^bridges | ( while read -r file do if [ ! -f "${file}" ]; then