<commit_before># Contributing to Sonar Scanner for .NET

There are many ways you can contribute to the SonarScanner for .NET project, some very easy and others more
involved. We want to be friendly and welcoming to all potential contributors, so we ask that everyone involved abide
by some simple guidelines outlined in our [Code of Conduct](./CODE_OF_CONDUCT.md).

## Easy Ways to Contribute

One of the easiest ways to contribute is to participate in discussions and discuss issues on our
[Community Forum](https://community.sonarsource.com/).

## General feedback and discussions?

Even if you plan to implement a new rule or fix one by yourself and then submit it back to the community, please start
by creating a new thread on our [Community Forum](https://community.sonarsource.com/) to get some 
early feedback on this idea.

## Pull Request (PR)

To submit a contribution, create a pull request for this repository. Please make sure that you follow our
[code style](https://github.com/SonarSource/sonar-developer-toolset#code-style)
<commit_msg>Improve how to contribute page (#1062)<commit_after># Contributing to Sonar Scanner for .NET

There are many ways you can contribute to the SonarScanner for .NET project, some very easy and others more
involved. We want to be friendly and welcoming to all potential contributors, so we ask that everyone involved abide
by some simple guidelines outlined in our [Code of Conduct](./CODE_OF_CONDUCT.md).

## Easy Ways to Contribute

One of the easiest ways to contribute is to participate in discussions and discuss issues on our
[Community Forum](https://community.sonarsource.com/).

## General feedback and discussions?

Even if you plan to implement a new rule or fix one by yourself and then submit it back to the community, please start
by creating a new thread on our [Community Forum](https://community.sonarsource.com/) to get some 
early feedback on this idea.

## Developing with Eclipse or IntelliJ

When working with Eclipse or IntelliJ please follow the [sonar guidelines](https://github.com/SonarSource/sonar-developer-toolset)

## Pull Request (PR)

To submit a contribution, create a pull request for this repository. Please make sure that you follow our
[code style](https://github.com/SonarSource/sonar-dotnet/blob/master/docs/coding-style.md).

Before submitting the PR, make sure all tests are passing (all checks must be green).

## Running tests

### Unit Tests

You can run the Unit Tests via the Test Explorer of Visual Studio.

### Integration Tests

1. Go to `PATH_TO_CLONED_REPOSITORY`
1. Run `powershell`
1. Run `.\scripts\ci-build.ps1`
1. Open the `PATH_TO_CLONED_REPOSITORY\its` directory using your favourite IDE for java (e.g. IntelliJ IDEA Community Edition)
1. Run the ITs

{'fraction_non_alphanumeric': 0.06777818050018122, 'fraction_numerical': 0.003624501631025734, 'mean_word_length': 4.575757575757576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7080152', 'n_tokens_mistral': 763, 'n_tokens_neox': 727, 'n_words': 377}