Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

This action checks if the cmake code matches the .cmake-format file

License

NotificationsYou must be signed in to change notification settings

neg-c/cmake-format-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

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action to check if your code is formatted correctly using cmake-format.

This action also provides a Git diff display, making it easy to review code formatting changes.

Usage

Inputs

  • source (optional): Source file/folder to check formatting or directory path. Defaults to "." (current directory). You can specify multiple values separated by spaces.
  • exclude (optional): Folders to exclude from the formatting check. Defaults to "none." You can specify multiple values separated by spaces.
  • config (optional): Use .cmake-format style. Defaults to False.
  • inplace (optional): Just fix files (cmake-format -i) instead of returning a diff. Defaults to False.

Example Workflow

Here's an example of how to use this action in your GitHub Actions workflow:

name:Check Code Formattingon:push:branches:      -mainjobs:format-check:runs-on:ubuntu-lateststeps:    -name:Checkout codeuses:actions/checkout@v2    -name:cmake-format lintuses:neg-c/cmake-format-action@v0.1with:source:"src/module1 src/module2"exclude:"thirdparty external"config:trueinplace:true

About

This action checks if the cmake code matches the .cmake-format file

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp