Skip to content

Commit

Permalink
.coafile: Ignore coala in generated GCI files
Browse files Browse the repository at this point in the history
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 coala#3
  • Loading branch information
jayvdb committed Dec 17, 2017
1 parent 731aa97 commit 890cafa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mkdir private _site public
if [[ -n "$GCI_TOKEN" ]]; then
python manage.py fetch_gci_task_data private
python manage.py cleanse_gci_task_data private _site
rm -rf private/
else
python manage.py fetch_old_gci_task_data _site || true
fi
Expand Down
4 changes: 2 additions & 2 deletions .coafile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ before_install:

script:
- ./.ci/build.sh
- rm -rf private/
- coala --non-interactive -V

after_success:
Expand Down

0 comments on commit 890cafa

Please sign in to comment.