Setting Up Vale: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:




We use the ''Microsoft Style Guide'' and a custom set of style rules relevant to Qt. To configure Vale, download the qtqa.git repository
We use the ''Microsoft Style Guide'' and a custom set of style rules relevant to Qt. To configure Vale, download the qtqa.git repository.


The qtqa.git repository has the style rules that we use. Clone the qtqa.git repository and the relevant directory is at <code>qtqa/vale_linter_config</code>
The qtqa.git repository has the style rules that we use. Clone the qtqa.git repository and the relevant directory is at <code>qtqa/vale_linter_config</code>
Next, configure Vale by setting VALE_CONFIG_PATH to cd


== Configure Vale for VS Code ==
== Configure Vale for VS Code ==

Revision as of 15:00, 17 October 2024

Vale is a linter that highlights language issues such as grammar, terminology, and style issues.

Vale is available as a tool for Qt Creator and as a VS Code extension.

This page helps you set up Vale on VS Code or Qt Creator.

1. Install Vale

First, install Vale on your computer. The https://vale.sh/docs/vale-cli/installation/ page shows how to install Vale on various desktop platforms.

2. Download Microsoft Style Guide Rules and Configure Vale

We use the Microsoft Style Guide and a custom set of style rules relevant to Qt. To configure Vale, download the qtqa.git repository.

The qtqa.git repository has the style rules that we use. Clone the qtqa.git repository and the relevant directory is at <code>qtqa/vale_linter_config</code>


Next, configure Vale by setting VALE_CONFIG_PATH to cd

Configure Vale for VS Code

/extension

Configure Vale for Qt Creator

/outline tool