Skip to content

Commit 6251dbc

Browse files
committed
feat: master: added sonar check
1 parent eb5db4e commit 6251dbc

3 files changed

Lines changed: 198 additions & 0 deletions

File tree

.gitignore

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,184 @@
1+
2+
# Byte-compiled / optimized / DLL files
13
__pycache__/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
29

10+
# Distribution / packaging
11+
.Python
12+
build/
13+
gfp/static/react/build/
14+
develop-eggs/
315
dist/
416

17+
downloads/
18+
eggs/
19+
.eggs/
20+
lib/
21+
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
share/python-wheels/
528
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.nox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*.cover
53+
.hypothesis/
54+
.pytest_cache/
55+
56+
# Translations
57+
*.mo
58+
*.pot
59+
60+
# Django stuff:
61+
*.log
62+
local_settings.py
63+
db.sqlite3
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
.python-version
87+
88+
# celery beat schedule file
89+
celerybeat-schedule
90+
91+
# SageMath parsed files
92+
*.sage.py
93+
94+
# Environments
95+
.env
96+
.venv
97+
env/
98+
venv/
99+
ENV/
100+
env.bak/
101+
venv.bak/
102+
gfp-drive.json
103+
104+
# Spyder project settings
105+
.spyderproject
106+
.spyproject
107+
108+
# Rope project settings
109+
.ropeproject
110+
111+
# mkdocs documentation
112+
/site
113+
114+
# mypy
115+
.mypy_cache/
116+
.dmypy.json
117+
dmypy.json
118+
119+
# Pyre type checker
120+
.pyre/
121+
122+
123+
.idea
124+
125+
.DS_Store
126+
127+
# db dump file
128+
dump.zip
129+
130+
# local settings, to get rid of personal project settings in the project repository
131+
**/configs/local.py
132+
**/configs/test.py
133+
**/config/local.py
134+
**/config/test.py
135+
**/configs/docker.py
136+
node-modules
137+
# my emacs config
138+
.\#*
139+
/gfp/static/*.xls
140+
gfp/static/company_products/*.png
141+
142+
# vscode
143+
.vscode/*
144+
# vscode config files
145+
.vscode/settings.json
146+
147+
# scrapper datafeeds
148+
AUTHORS
149+
ChangeLog
150+
151+
#sitemap
152+
# gfp/static/pages/sitemap.xml
153+
154+
# configuration files
155+
.env*
156+
.env_vars
157+
.env_vars.*
158+
159+
commands.txt
160+
run-selenium.log
161+
162+
.scannerwork
163+
164+
gfp/saml_config/certs/*
165+
166+
elasticsearch/nodes/
167+
168+
# vagrant data directory
169+
.vagrant/
170+
171+
*.xls
172+
*.xlsx
173+
*.zip
174+
certs/*
175+
/gfp/sso/metadata/*
176+
177+
data/
178+
plugins/
179+
import/
180+
/gfp/static/react/build/
6181

182+
# Centric
183+
*.csv
184+
.~lock

.gitlab-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sonarqube-check:
2+
image:
3+
name: sonarsource/sonar-scanner-cli:latest
4+
entrypoint: [""]
5+
variables:
6+
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
7+
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
8+
cache:
9+
key: "${CI_JOB_NAME}"
10+
paths:
11+
- .sonar/cache
12+
script:
13+
- sonar-scanner
14+
allow_failure: true
15+
only:
16+
- merge_requests
17+
- main
18+
- dev

sonar-project.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sonar.projectKey=onix-systems_python-internal-mono_AYxFQRwwy7GA8tDzaz8P
2+
sonar.qualitygate.wait=true

0 commit comments

Comments
 (0)