-
Notifications
You must be signed in to change notification settings - Fork 58
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
ci: clang_format.yml lints only modified source files #196
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f6f28b8
updated DoozyX/clang-format-lint to v0.17
rjwignar 848f7bf
added tj-actions/changed-files step
rjwignar 3517348
updated changed-files job with shader files and separator
rjwignar 6716236
updated changed-files step name, added process-list step
rjwignar 61dcc37
updated clang-format-lint action step to run only if there are modifi…
rjwignar b3398f0
modified format step to format only modified source files
rjwignar bd37776
updated commments
rjwignar 9e1a4ff
updated changed-files globs to include all cpp (cpp/h) files under sr…
rjwignar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This glob needs to be improved, we also have cpp source files directly under
src
(Not only features subfolder). Also underinclude
Can look here for some glob hints
https://github.com/doodlum/skyrim-community-shaders/blob/dev/cmake/AddCXXFiles.cmake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FlayaN you think you can handle the globs easily?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! I don't have time for the next 2 weeks to fix the globs (And test them). I can however guess :P
Looking at documentation at: https://github.com/tj-actions/changed-files
It looks like they support the
src/**
glob syntax.So my guess for a good glob would be:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FlayaN since you're on a roll, you want to take this over the line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can give this another look in a couple days
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recently updated the glob with the help of https://codepen.io/mrmlnc/pen/OXQjMe:
Here's a couple example runs of the updated glob on rjwignar/issue-128-test:
src
include
The recent force-push was due to a rebase of my branch (
rjwignar/issue-128
) on top of the latestdev
branchPlease let me know if additional changes are required.