diff --git a/.deepsource.toml b/.deepsource.toml deleted file mode 100644 index 4f240cc9a643..000000000000 --- a/.deepsource.toml +++ /dev/null @@ -1,33 +0,0 @@ -version = 1 -exclude_patterns = [ - "docs/docs/javascripts/**", # Docs: Helpers - "docs/ci/**", # Docs: CI - "InvenTree/InvenTree/static/**", # Backend: CUI static files - "ci/**", # Backend: CI - "InvenTree/**/migrations/*.py", # Backend: Migration files - "src/frontend/src/locales/**", # Frontend: Translations -] -test_patterns = ["**/test_*.py", "**/test.py", "**/tests.py"] - - -[[analyzers]] -name = "shell" - -[[analyzers]] -name = "javascript" - -[analyzers.meta] -plugins = ["react"] - -[[analyzers]] -name = "python" - -[analyzers.meta] -runtime_version = "3.x.x" - -[[analyzers]] -name = "docker" - -[[analyzers]] -name = "test-coverage" -enabled = false diff --git a/.sonarcloud.properties b/.sonarcloud.properties new file mode 100644 index 000000000000..faad1980aca6 --- /dev/null +++ b/.sonarcloud.properties @@ -0,0 +1,19 @@ +# Path to sources +sonar.sources=["InvenTree", "src", "docs"] +sonar.exclusions=[ + "docs/docs/javascripts/**", # Docs: Helpers + "docs/ci/**", # Docs: CI + "InvenTree/InvenTree/static/**", # Backend: CUI static files + "ci/**", # Backend: CI + "InvenTree/**/migrations/*.py", # Backend: Migration files + "src/frontend/src/locales/**", # Frontend: Translations +] + +# Path to tests +sonar.tests=["**/test_*.py", "**/test.py", "**/tests.py"] +#sonar.test.exclusions= +#sonar.test.inclusions= + +# Source encoding +sonar.sourceEncoding=UTF-8 +sonar.python.version=3.9 diff --git a/README.md b/README.md index 4f3786e266c4..e0a020263856 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ [![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/7179/badge)](https://bestpractices.coreinfrastructure.org/projects/7179) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/inventree/InvenTree/badge)](https://securityscorecards.dev/viewer/?uri=github.com/inventree/InvenTree) [![Netlify Status](https://api.netlify.com/api/v1/badges/9bbb2101-0a4d-41e7-ad56-b63fb6053094/deploy-status)](https://app.netlify.com/sites/inventree/deploys) -[![DeepSource](https://app.deepsource.com/gh/inventree/InvenTree.svg/?label=active+issues&show_trend=false&token=trZWqixKLk2t-RXtpSIAslVJ)](https://app.deepsource.com/gh/inventree/InvenTree/) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=inventree_InvenTree&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=inventree_InvenTree) [![Coveralls](https://img.shields.io/coveralls/github/inventree/InvenTree)](https://coveralls.io/github/inventree/InvenTree) [![Crowdin](https://badges.crowdin.net/inventree/localized.svg)](https://crowdin.com/project/inventree)