Github Boards Devices Community Docs Blog

Lint: how-to for local configuration?

Hello,
Can someone point me some how-to configure the lint and more important the rules used by lint for GitHub pull request?

Each time I try to submit a PR lint stop me because I have a different rule on my local environment.

Some inputs?

Hello;

If you are using VScode + PIO you have to add the “clang-Format” extension.
Once done, do a right-click into the file and click on “Format document”.
It should take automatically the right rules for the workspace.

Thanks, Discovered my problem, I had a tool set by default which was different

Is required clang-formatter as npm global package already installed and clang-formatter plugin on vscode

Now I hope is ok :blush:

Thanks!

1 Like