conan-center-index

ConanCenterIndex Linters

Some linter configuration files are available in the folder linter, which are executed by Github Actions and are displayed during code review as annotations, to improve recipe quality. They consume python scripts which are executed to fit CCI rules. Those scripts use astroid and pylint classes to parse Conan recipe files and manage their warnings and errors.

Pylint by itself is not able to find ConanCenterIndex rules, so astroid is used to iterate over a conanfile’s content and validate CCI requirements. Pylint uses an rcfile to configure plugins, warnings and errors which should be enabled or disabled.

Contents

Understanding the different linters

There’s a three classes of linters currently in place for ConanCenterIndex

Running the linters locally

Check the Developing Recipes for more information on each of the three linters.

Pylint configuration files