Skip to content

Commit

Permalink
Add Sonar properties to exclude tests from Sonar analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrgredowski committed Aug 13, 2021
1 parent 765ca7d commit a282533
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![codecov](https://codecov.io/gh/piotrgredowski/table2sql/branch/main/graph/badge.svg?token=fNkIDyWLq7)](https://codecov.io/gh/piotrgredowski/table2sql)
[![CodeQL](https://github.com/piotrgredowski/table2sql/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/piotrgredowski/table2sql/actions/workflows/codeql-analysis.yml)

Python CLI tool which allows you to convert file with table (for now only CSV) to SQL insert statements.
Python CLI tool which allows you to convert file with table (CSV and Excel) to SQL insert statements.


`some.csv`
Expand Down
5 changes: 5 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonar.sources=table2sql
sonar.python.coverage.reportPaths=coverage.xml
sonar.python.xunit.reportPath=junit.xml
sonar.coverage.exclusions=**/test_*.py,**/tests/*.py
sonar.exclusions=**/test_*.py,**/tests/*.py

0 comments on commit a282533

Please sign in to comment.