Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace vera++ with clang-tidy as our linter #74

Closed
wants to merge 1 commit into from

Conversation

g-arjones
Copy link
Contributor

So, this is a proof-of-concept of what I am proposing... @doudou Could you please test and let me know what you think? You need clang-tidy AND clang (the compiler itself) installed.

TODO:

  • Tune default linter checks (i.e: naming conventions)
  • Ignore build tree while looking for source files
  • Load clang-tidy config from a file specified in an env var or through a setting
  • Fix/write unit tests
  • Remove vera++ and add clang-tidy in rock.vscode-package_set

@g-arjones g-arjones requested a review from doudou May 24, 2020 21:14
@coveralls
Copy link

coveralls commented May 24, 2020

Pull Request Test Coverage Report for Build 136

  • 10 of 43 (23.26%) changed or added relevant lines in 1 file are covered.
  • 31 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-4.0%) to 75.404%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/linter.ts 10 43 23.26%
Files with Coverage Reduction New Missed Lines %
src/watcher.ts 1 97.06%
src/linter.ts 30 30.16%
Totals Coverage Status
Change from base Build 132: -4.0%
Covered Lines: 1098
Relevant Lines: 1444

💛 - Coveralls

@g-arjones g-arjones force-pushed the replace_vera_with_clang_tidy branch from 31ce2d0 to 441d1e8 Compare May 24, 2020 21:16
@g-arjones
Copy link
Contributor Author

g-arjones commented May 25, 2020

@doudou
Copy link
Member

doudou commented May 25, 2020

Will do. Thanks for this.

I won't have time to do it this week unfortunately, big deadline and my (unforeseen) migration to 20.04 destroyed whatever extra time I had budgeted.

For the config file, I quite like the way it works with rubocop, which allows to fine-tune style in specific legacy packages. A.k.a. looking for config files recursively.

@g-arjones
Copy link
Contributor Author

No problem... Just let me know once you do

@g-arjones
Copy link
Contributor Author

@doudou Feel free to reopen if there's still interest and you have the time to finish the work. I am a bit overwhelmed so I'm closing stuff I'm unlikely to finish myself. Sorry.

@g-arjones g-arjones closed this Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants