Skip to content

Commit 7e8c4d3

Browse files
committed
Wiki: always use fully qualified links
1 parent 80b84f3 commit 7e8c4d3

8 files changed

+14
-14
lines changed

wiki/Advanced-Usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ $ phpcs --tab-width=4 /path/to/code
224224

225225
> [!NOTE]
226226
> The `Generic.WhiteSpace.DisallowTabIndent` and `Generic.WhiteSpace.DisallowSpaceIndent` sniffs, which enforce space or tab indentation respectively, will still generate errors, even if you have replaced tabs with spaces using the `--tab-width` setting. These sniffs looks at the unmodified version of the code to check line indentation.
227-
> When using a [[custom ruleset.xml file|Annotated ruleset]], only enable one of these two sniffs, never both.
227+
> When using a [custom `ruleset.xml` file](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset), only enable one of these two sniffs, never both.
228228
229229
<p align="right"><a href="#table-of-contents">back to top</a></p>
230230

@@ -258,7 +258,7 @@ If you run PHP_CodeSniffer without specifying a coding standard, PHP_CodeSniffer
258258
> [!IMPORTANT]
259259
> If multiple default configuration files are found, PHP_CodeSniffer will select one using the following order: `.phpcs.xml`, `phpcs.xml`, `.phpcs.xml.dist`, `phpcs.xml.dist`
260260
261-
The `phpcs.xml` file has exactly the same format as a normal [[ruleset.xml file|Annotated ruleset]], so all the same options are available in it. The `phpcs.xml` file essentially acts as a default coding standard and configuration file for a code base, and is typically used to allow the `phpcs` command to be run on a repository without specifying any arguments.
261+
The `phpcs.xml` file has exactly the same format as a normal [`ruleset.xml` file](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset), so all the same options are available in it. The `phpcs.xml` file essentially acts as a default coding standard and configuration file for a code base, and is typically used to allow the `phpcs` command to be run on a repository without specifying any arguments.
262262

263263
> [!NOTE]
264264
> An example `phpcs.xml` file can be found in the PHP_CodeSniffer repository: [phpcs.xml.dist](https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xml.dist)
@@ -285,7 +285,7 @@ $ phpcs -d memory_limit=32M -d include_path=.:/php/includes /path/to/code
285285

286286
## Setting Configuration Options
287287

288-
PHP_CodeSniffer has some configuration options that can be set. Individual coding standards may also require configuration options to be set before functionality can be used. [[View a full list of configuration options|Configuration Options]].
288+
PHP_CodeSniffer has some configuration options that can be set. Individual coding standards may also require configuration options to be set before functionality can be used. [View a full list of configuration options](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options).
289289

290290
To set a configuration option, use the `--config-set` command line argument.
291291

@@ -300,14 +300,14 @@ $ phpcs --runtime-set <option> <value> /path/to/code
300300
```
301301

302302
> [!NOTE]
303-
> Not all configuration options can be set using the `--runtime-set` command line argument. Configuration options that provide defaults for command line arguments, such as the default standard or report type, can not be used with `--runtime-set`. To set these values for a single run only, use the dedicated CLI arguments that PHP_CodeSniffer provides. The [[Configuration Options|Configuration Options]] list provides an alternative CLI argument for each configuration option not supported by `--runtime-set`.
303+
> Not all configuration options can be set using the `--runtime-set` command line argument. Configuration options that provide defaults for command line arguments, such as the default standard or report type, can not be used with `--runtime-set`. To set these values for a single run only, use the dedicated CLI arguments that PHP_CodeSniffer provides. The [Configuration Options](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options) list provides an alternative CLI argument for each configuration option not supported by `--runtime-set`.
304304
305305
<p align="right"><a href="#table-of-contents">back to top</a></p>
306306

307307

308308
## Deleting Configuration Options
309309

310-
PHP_CodeSniffer allows you to delete any configuration option, reverting it to its default value. [[View a full list of configuration options|Configuration Options]].
310+
PHP_CodeSniffer allows you to delete any configuration option, reverting it to its default value. [View a full list of configuration options](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options).
311311

312312
To delete a configuration option, use the `--config-delete` command line argument.
313313

wiki/Coding-Standard-Tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The content of the `ruleset.xml` file should, at a minimum, be the following:
4444
```
4545

4646
> [!NOTE]
47-
> The ruleset.xml can be left quite small, as it is in this example coding standard. For information about the other features that the `ruleset.xml` provides, see the [[Annotated ruleset]].
47+
> The ruleset.xml can be left quite small, as it is in this example coding standard. For information about the other features that the `ruleset.xml` provides, see the [Annotated ruleset](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset).
4848
4949
<p align="right"><a href="#table-of-contents">back to top</a></p>
5050

wiki/Customisable-Sniff-Properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The behaviour of some sniffs can be changed by setting certain sniff properties in your ruleset.xml file. This page lists the sniff properties that are available for customisation. For properties that were added after ruleset support was introduced in version 1.3.0, the first stable version that made the property available is listed.
22

3-
For more information about changing sniff behaviour by customising your ruleset, see the [[Annotated ruleset]].
3+
For more information about changing sniff behaviour by customising your ruleset, see the [Annotated ruleset](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Annotated-Ruleset).
44

55
## Table of contents
66

wiki/Home.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PHP_CodeSniffer is a set of two PHP scripts:
2-
1. the main [`phpcs` script](wiki/Usage) that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard; and
3-
2. a [`phpcbf` script](wiki/Fixing-Errors-Automatically) to automatically correct detected coding standard violations.
2+
1. the main [`phpcs` script](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Usage) that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard; and
3+
2. a [`phpcbf` script](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically) to automatically correct detected coding standard violations.
44

55
PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
66

wiki/Reporting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ File,Line,Column,Type,Message,Source,Severity,Fixable
302302
## Printing a Diff Report
303303
304304
> [!TIP]
305-
> Use the [`phpcbf` script](wiki/Fixing-Errors-Automatically) instead to automatically fix scanned files.
305+
> Use the [`phpcbf` script](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically) instead to automatically fix scanned files.
306306
307307
PHP_CodeSniffer can output a diff file that can be applied using the `patch` command. The suggested changes will fix some of the sniff violations that are present in the source code. To print a diff report, use the `--report=diff` command line argument. The output will look like this:
308308

wiki/Requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHP_CodeSniffer requires PHP version 5.4.0 or greater, although individual sniffs may have additional requirements such as external applications and scripts. See the [[Configuration Options]] manual page for a list of these requirements.
1+
PHP_CodeSniffer requires PHP version 5.4.0 or greater, although individual sniffs may have additional requirements such as external applications and scripts. See the [Configuration Options](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Configuration-Options) manual page for a list of these requirements.
22

33
Additionally, PHP_CodeSniffer requires the following PHP extensions to be enabled:
44
- Tokenizer: used by the core tokenizer to process PHP files

wiki/Version-4.0-Developer-Upgrade-Guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PHP_CodeSniffer version 4.0.0 contains a number of core changes and breaks backw
99
> [!NOTE]
1010
> A certain level of technical understanding of PHP_CodeSniffer is presumed for readers of this upgrade guide.
1111
12-
There is a separate [[Upgrade Guide for Ruleset Maintainers and End-Users|Version 4.0 User Upgrade Guide]] available.
12+
There is a separate [Upgrade Guide for Ruleset Maintainers and End-Users](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Version-4.0-User-Upgrade-Guide) available.
1313

1414

1515
## Table of contents
@@ -45,7 +45,7 @@ The vast majority of the below upgrade tasks will need to be executed in both ca
4545

4646
## Upgrading the ruleset.xml file
4747

48-
See the [[Upgrade Guide for Ruleset Maintainers and End-Users|Version 4.0 User Upgrade Guide]] for everything you need to know about upgrading the `ruleset.xml` file.
48+
See the [Upgrade Guide for Ruleset Maintainers and End-Users](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Version-4.0-User-Upgrade-Guide) for everything you need to know about upgrading the `ruleset.xml` file.
4949

5050
<p align="right"><a href="#table-of-contents">back to top</a></p>
5151

wiki/Version-4.0-User-Upgrade-Guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
PHP_CodeSniffer version 4.0.0 contains a number of core changes and breaks backwards compatibility in select situations. The aim of this guide is to help **ruleset maintainers and end-users** to upgrade from PHP_CodeSniffer version 3.x to version 4.x.
88

9-
There is a separate [[Upgrade Guide for Sniff Developers and Integrators|Version 4.0 Developer Upgrade Guide]] available.
9+
There is a separate [Upgrade Guide for Sniff Developers and Integrators](https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Version-4.0-Developer-Upgrade-Guide) available.
1010

1111
## Table of contents
1212

0 commit comments

Comments
 (0)