Skip to content

Commit ba4bfa5

Browse files
Merge branch 'tmp'
2 parents 406e458 + acaff45 commit ba4bfa5

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

sonar-project.properties

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
11
sonar.language = php
2-
32
sonar.sourceEncoding = UTF-8
3+
4+
sonar.projectKey=dev-utils
5+
sonar.qualitygate.wait=true
6+
7+
sonar.exclusions=**/vendor/**,\
8+
**/.env.*,\
9+
**.github/**,\
10+
**.vscode/**,\
11+
**/coverage/**
12+
13+
########## Coverage Reading Process ##########
14+
# Coverage Settings
15+
sonar.php.coverage.reportPaths=clover.xml
16+
17+
# Project settings for correct file mapping
18+
sonar.projectBaseDir=.
19+
sonar.working.directory=.sonarqube
20+
21+
# Source code and test directories
22+
sonar.sources=src,,config,public_html,tests
23+
24+
sonar.coverage.exclusions=**/tests/**,\
25+
config/**,\
26+
public_html/index.php,\
27+
**/*.js,\
28+
**/*.css,\
29+
**/*.html,\
30+
**/*.htm,\
31+
**/*.xml,\
32+
**/*.json,\
33+
**/*.md,\
34+
**/*.txt,\
35+
**/*.yml,\
36+
**/*.yaml,\
37+
**/*.ini,\
38+
**/*.conf,\
39+
**/*.properties
40+
41+
# Specific exclusions for tests (only utility files, not the actual tests)
42+
sonar.test.exclusions=**/tests/dados/**, **/tests/PHPUnitUtil.php
43+

tests/UnitRuleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ public function testCompanyIdentification(): void
9797
'testError' => '52186923000120',
9898
'testErrorEmpty' => '',
9999
'testValid' => '21111527000163',
100+
'testOtherValid' => 'JA.JL4.X24/9VI6-23',
100101
'testExceptionError' => '12123456000712',
101102
'testExceptionValid' => '00000000000000',
102103
];
103104
$rules = [
104105
'testError' => 'companyIdentification',
105106
'testErrorEmpty' => 'companyIdentification',
106107
'testValid' => 'companyIdentification',
108+
'testOtherValid' => 'companyIdentification',
107109
'testExceptionError' => 'companyIdentification:12123456000712',
108110
'testExceptionValid' => 'companyIdentification:00000000000000;22222222222222',
109111
];

0 commit comments

Comments
 (0)