From b6f01606d034288d6ab2d017794cc4aea581cddd Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sun, 17 Dec 2017 16:22:36 +0700 Subject: [PATCH] .coafile: Ignore coala in generated GCI files The GCI exported data contains 'coala', so it needs to be excluded from the relevant checks. Also ignore private/** and delete it regularly, as a preventative measure for accidental leaks. Related to https://github.com/coala/community/issues/3 --- .ci/build.sh | 1 + .coafile | 4 ++-- .travis.yml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index 1b47d121..a979235b 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -6,6 +6,7 @@ mkdir private _site public if [[ -n "$GCI_TOKEN" ]]; then python manage.py fetch_gci_task_data private + rm -rf private/ python manage.py cleanse_gci_task_data private _site else python manage.py fetch_old_gci_task_data _site || true diff --git a/.coafile b/.coafile index 644e39d8..13b9ebc3 100644 --- a/.coafile +++ b/.coafile @@ -1,6 +1,6 @@ [all] files = *.py, community/**/*.py, gci/**/*.py, activity/*.py -ignore = gci/client.py, gci/migrations/** +ignore = gci/client.py, gci/migrations/**, private/** max_line_length = 80 use_spaces = True @@ -40,7 +40,7 @@ shell = bash # Do not allow the word "coala" to ensure the repository can be generalized out # for use by other organizations. files = ** -ignore = .git/**, org_name.txt, .coafile, requirements.txt, .travis.yml, LICENSE, public/** +ignore = .git/**, org_name.txt, .coafile, requirements.txt, .travis.yml, LICENSE, public/**, _site/** bears = KeywordBear language = python 3 keywords = coala diff --git a/.travis.yml b/.travis.yml index da34d4e0..a268940d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,7 @@ before_install: script: - ./.ci/build.sh + - rm -rf private/ - coala --non-interactive -V after_success: