Skip to content

A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of file-annotations, thread-comments, workflow step-summary, and Pull Request reviews.

License

Notifications You must be signed in to change notification settings

cpp-linter/cpp-linter-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-linter-action

Github Actions for linting the C/C++ code. Uses clang-tidy, clang-format, and cppcheck.

Integration with GitHub Actions

For example, create a .yml file like .github/workflows/cpp-linter.yml.

name: cpp-linter on: [pull_request] jobs: cpp-linter: name: cpp-linter runs-on: ubuntu-latest steps: - name: cpp-linter uses: shenxianpeng/cpp-linter-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 

Results of GitHub Actions

This one has a test repository: cpp-linter-action-demo

You can feel free to commit C/C++ code and then see the actual results via Pull Request. such as this PR #3

github-actions bot

About

A Github Action for linting C/C++ code integrating clang-tidy and clang-format to collect feedback provided in the form of file-annotations, thread-comments, workflow step-summary, and Pull Request reviews.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 15