Skip to content

Commit c126329

Browse files
authored
SONARPHP-1302 Move custom rules example to sonar-php (#78)
* SONARPHP-1302 Move custom rules example to sonar-php * SONARPHP-1302 Fix Travis
1 parent 785f6b6 commit c126329

File tree

13 files changed

+1
-491
lines changed

13 files changed

+1
-491
lines changed

php-custom-rules/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=org.sonarsource.samples%3Aphp-custom-rules&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.sonarsource.samples%3Aphp-custom-rules)
2-
31
This example demonstrates how to write **Custom Rules** for SonarPHP.
42

5-
# API Changes
6-
7-
## 3.2
8-
9-
* Added a new PHPCheck#terminate method, which is called at the end of the analysis
10-
* Added a new PhpFile#uri method to retrieve the underlying file URI
3+
## This example was moved to [sonar-php/php-custom-rules](https://github.com/SonarSource/sonar-php/tree/master/php-custom-rules).

php-custom-rules/pom.xml

Lines changed: 0 additions & 74 deletions
This file was deleted.

php-custom-rules/src/main/java/org/sonar/samples/php/MyPhpRules.java

Lines changed: 0 additions & 96 deletions
This file was deleted.

php-custom-rules/src/main/java/org/sonar/samples/php/PHPCustomRulesPlugin.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

php-custom-rules/src/main/java/org/sonar/samples/php/checks/ForbiddenFunctionUseCheck.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

php-custom-rules/src/main/java/org/sonar/samples/php/checks/OtherForbiddenFunctionUseCheck.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

php-custom-rules/src/main/resources/org/sonar/l10n/php/rules/custom/S1.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

php-custom-rules/src/main/resources/org/sonar/l10n/php/rules/custom/S2.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)