Why is this an issue?

Comments should be written in a specified language. By default, this rule checks that comments are written in English. Through the language parameter, you can change the language. Supported languages are:

Note that this rule will likely raise issues on commented-out code.

How to fix it

Code examples

Noncompliant code example

With default ENGLISH language:

// Ceci n'est pas un commentaire écrit en Anglais. Il est écrit en Français.

Compliant solution

With default ENGLISH language:

// This comment is written in English. Yes, this is a compliant comment.

Note

Only comments with more than ten words are checked to not raise too many false positives.