Browse Source

qa: add code quality checker

master
Adler Neves 6 months ago
parent
commit
def6841782
3 changed files with 19 additions and 9 deletions
  1. +10
    -9
      .drone.yml
  2. +1
    -0
      .gitignore
  3. +8
    -0
      sonar-project.properties

+ 10
- 9
.drone.yml View File

@ -1,20 +1,21 @@
kind: pipeline
type: ssh
type: exec
name: default
server:
host:
from_secret: host
user:
from_secret: username
ssh_key:
from_secret: ssh_key
clone:
depth: 50
steps:
- name: analyze
environment:
SONAR_TOKEN:
from_secret: sonar_token
commands:
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$$SONAR_TOKEN
- name: submodules
depends_on:
- analyze
commands:
- git submodule update --init --recursive --remote


+ 1
- 0
.gitignore View File

@ -1 +1,2 @@
public/
.scannerwork/

+ 8
- 0
sonar-project.properties View File

@ -0,0 +1,8 @@
sonar.projectKey=static-site-manual-notifier
sonar.projectName=Static Site: Manual Notifier
sonar.projectVersion=1.0
sonar.sources=content,resources,static
sonar.coverage.exclusions=**/*
sonar.sourceEncoding=UTF-8

Loading…
Cancel
Save