diff --git a/.gitignore b/.gitignore index 794fab1..9bfebba 100644 --- a/.gitignore +++ b/.gitignore @@ -27,16 +27,17 @@ node_modules # misc /.sass-cache /connect.lock -/coverage +**/coverage /libpeerconnection.log npm-debug.log yarn-error.log testem.log /typings +**/.scannerwork # System Files .DS_Store Thumbs.db # Next.js -.next \ No newline at end of file +.next diff --git a/analysis.sh b/analysis.sh new file mode 100755 index 0000000..2f7ec46 --- /dev/null +++ b/analysis.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +apt install wget +wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.8.0.2856-linux.zip +unzip sonar-scanner-cli-4.8.0.2856-linux.zip +ls -la +mv ./sonar-scanner-4.8.0.2856-linux ./sonarscanner +cd apps +../sonarscanner/bin/sonar-scanner -X -Dsonar.login=b6b66f8b798b46b693cc19f788215111871d5287 diff --git a/apps/sonar-project.properties b/apps/sonar-project.properties new file mode 100644 index 0000000..d7c92d3 --- /dev/null +++ b/apps/sonar-project.properties @@ -0,0 +1,34 @@ +sonar.host.url=https://sonarqube.naser.fr/ +sonar.projectKey=david:guitar-apps +sonar.projectName=Apps Guitar School +sonar.projectVersion=0.1.0-SNAPSHOT + +# ===================================================== +# Meta-data for the project +# ===================================================== + +sonar.links.homepage=https://gitea.naser.fr/sebsn86/nx-guitar-school +sonar.links.ci=https://teamcity.naser.fr/buildConfiguration/NxGuitarSchool_GuitarSchool?mode=builds#all-projects +sonar.links.issues=https://gitea.naser.fr/sebsn86/nx-guitar-school/issues + +# ===================================================== +# Definition of the modules +# ===================================================== + +sonar.modules=website + +website.sonar.projectName=NextJS Guitar School + +# ===================================================== +# Properties that will be shared amongst all modules +# ===================================================== + +# Website properties +website.sonar.projectBaseDir=./website +website.sonar.sources=./ +website.sonar.exclusions=**/.next/**/.coverage/,**/.eslintrc.json,**/index.d.ts,**/jest.config.ts,**/next.config.js,**/postcss.config.js,**/tailwind.config.js,**/with-nx.js,**/*.css,**/*.scss,**/*.spec.ts,**/*.spec.tsx +website.sonar.coverage.exclusions=**/.next/**/.coverage,**/.eslintrc.json,**/index.d.ts,**/jest.**/config.ts,**/next.config.js,**/postcss.config.js,**/tailwind.config.js,**/with-nx.js,**/*.css,**/*.scss +website.sonar.language=ts +website.sonar.tests=./tests +website.sonar.javascript.lcov.reportPaths=./coverage/lcov.info +website.sonar.sourceEncoding=UTF-8 diff --git a/apps/website/components/footer/footer.spec.tsx b/apps/website/components/footer/footer.spec.tsx deleted file mode 100644 index 97c820b..0000000 --- a/apps/website/components/footer/footer.spec.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { render } from '@testing-library/react'; - -import Footer from './footer'; - -describe('Footer', () => { - it('should render successfully', () => { - const { baseElement } = render(