<commit_before># vscode-phpcs

Integrates [phpcs](https://github.com/squizlabs/PHP_CodeSniffer.git) into VS Code.

## Development setup

- run npm install inside the `phpcs` and `phpcs-server` folders
- open VS Code on `phpcs` and `phpcs-server`

## Developing the server

- open VS Code on `phpcs-server`
- run `npm run compile` or `npm run watch` to build the server and copy it into the `phpcs` folder
- to debug press F5 which attaches a debugger to the server

## Developing the extension/client

- open VS Code on `phpcs`
- run F5 to build and debug the extension<commit_msg>Improves instructions + adds marketplace badges<commit_after># vscode-phpcs

[![Current Version](https://vsmarketplacebadge.apphb.com/version/ikappas.phpcs.svg)](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs)
[![Install Count](https://vsmarketplacebadge.apphb.com/installs/ikappas.phpcs.svg)](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs)
[![Open Issues](https://vsmarketplacebadge.apphb.com/rating/ikappas.phpcs.svg)](https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs)

Integrates [phpcs](https://github.com/squizlabs/PHP_CodeSniffer.git) into VS Code.

## Development setup

- install the VS Code [npm extension](https://marketplace.visualstudio.com/items?itemName=eg2.vscode-npm-script)
- clone this repository
- open the cloned repository folder using VS Code
- run VS Code task `npm install`

## Developing the server

- open VS Code on `phpcs-server`
- run `npm run compile` or `npm run watch` to build the server and copy it into the `phpcs` folder
- to debug press F5 which attaches a debugger to the server

## Developing the extension/client

To test the development version of the `phpcs` extension:

- open the cloned repository folder using VS Code
- select VS Code folder `phpcs`
- select sidebar option `Debug`
- select option `Client + Server` from the Debug dropdown menu
- press `Start Debugging`

> A new VS Code window will be opened, automatically using the development version of the `phpcs` extension.
{'fraction_non_alphanumeric': 0.10329776915615907, 'fraction_numerical': 0.0019398642095053346, 'mean_word_length': 4.8441926345609065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5572621', 'n_tokens_mistral': 676, 'n_tokens_neox': 636, 'n_words': 216}