Browse Source

qa: add code quality checker

master
Adler Neves 2 months ago
parent
commit
ab69f012ff
2 changed files with 17 additions and 0 deletions
  1. +9
    -0
      .drone.yml
  2. +8
    -0
      sonar-project.properties

+ 9
- 0
.drone.yml View File

@ -3,6 +3,15 @@ type: exec
name: default
steps:
- name: analyze
environment:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$$SONAR_TOKEN
- name: deploy
commands:
- make deploy
depends_on:
- analyze

+ 8
- 0
sonar-project.properties View File

@ -0,0 +1,8 @@
sonar.projectKey=telegram-spell-checker
sonar.projectName=Telegram Spell Checker bot
sonar.projectVersion=1.0
sonar.sources=propergrammar
sonar.coverage.exclusions=**/*
sonar.sourceEncoding=UTF-8

Loading…
Cancel
Save