swsnu / swpp2020-team4

0 stars 2 forks source link

[Backend]Handle pylint settings and refine the current master branch #48

Closed hwarim-hyun closed 4 years ago

hwarim-hyun commented 4 years ago

For now, the pylint score is about 9.55 / 10

Major changes:

Linters staged to be handled later:

************* Module qc_api.models
qc_api/models/__init__.py:4:0: E5142: User model imported from django.contrib.auth.models (imported-auth-user)
************* Module snippet
qc_api/models/algorithm/snippet.py:6:0: E5142: User model imported from django.contrib.auth.models (imported-auth-user)
************* Module auth_views
qc_api/views/auth/auth_views.py:7:0: E5142: User model imported from django.contrib.auth.models (imported-auth-user)
************* Module qc_back.wsgi
qc_back/wsgi.py:1:0: R0801: Similar lines in 2 files
==kosdaq:6
==kospi:6
    date = models.DateField(primary_key=True)  # 해당 데이터 생성일자
    close = models.DecimalField(max_digits=8, decimal_places=3)
    open = models.DecimalField(max_digits=8, decimal_places=3)
    high = models.DecimalField(max_digits=8, decimal_places=3)
    low = models.DecimalField(max_digits=8, decimal_places=3)
    volume = models.FloatField()
    d1_diff_rate = models.DecimalField(max_digits=6, decimal_places=3)

    class Meta:
        """Table Meta""" (duplicate-code)

------------------------------------------------------------------
Your code has been rated at 9.55/10 (previous run: 9.55/10, +0.00)

@ChanHyup98 please refactor the kosdaq / kospi code if you are available

sonarcloud[bot] commented 4 years ago

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 3 Code Smells

34.8% 34.8% Coverage
0.0% 0.0% Duplication