From ce908f9f673761c6b1b0040f1a1a2ea32637a19f Mon Sep 17 00:00:00 2001
From: borzechof99 <borzechof99@mi.fu-berlin.de>
Date: Wed, 2 Jun 2021 11:04:15 +0200
Subject: [PATCH] Add Linter as a seperate Script for Ease of Use

---
 .gitlab-ci.yml   | 2 +-
 custom_linter.sh | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100755 custom_linter.sh

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ace8714..0d32ad0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,7 +63,7 @@ pylint:
     - pip install -r requirements.txt
   script:
     #Due to Problems with Pylint, Ignored Files need to be presented here for now.
-     - git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
+     - ./custom_linter.sh
 #    - pylint  --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt
 #    - sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score
 #    - pylint  --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json
diff --git a/custom_linter.sh b/custom_linter.sh
new file mode 100755
index 0000000..3d4ca3f
--- /dev/null
+++ b/custom_linter.sh
@@ -0,0 +1 @@
+git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
\ No newline at end of file
-- 
GitLab