[DOCUMENTATION] many broken links to Github on

17 views
Skip to first unread message

nils.ma...@gmail.com

unread,
Sep 2, 2016, 6:17:00 AM9/2/16
to SonarQube
Hi,
on http://docs.sonarqube.org/display/PLUG/Custom+Rules+for+PHP are a lot of links that should lead to GitHub but result in a 404 reponse from GitHub.

List of broken links:

- Implement a rule
  • define the rule name, key, tags, etc. with Java annotations. See example.

Using PHPSubscriptionCheck
  For example, if you want to explore "if statement" nodes the method will return a list containing the element Tree#Kind#IF_STATEMENT. See example.

Create issues
  The check context is provided by the PHPVisitorCheck and PHPSubscriptionCheck classes and accessible from PHPCheck#context method. See example.
- Testing checks
To test custom checks you can use PHPCheckTest#check() method. You should end each line with an issue with a comment in the following form (see example):

You can omit message if not required (like here). If for some reason this approach is inapplicable (e.g. there are several issues per line expected or the line already contains comment) you can pass the list of issues as third parameter.


Just the links:









Alexandre Gigleux

unread,
Sep 2, 2016, 10:24:11 AM9/2/16
to SonarQube, nils.ma...@gmail.com
Hello,

Thanks for the feedback. Fixed.

Alex
Reply all
Reply to author
Forward
0 new messages