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

Move check-style core logic from makefile to shell script #1745

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

ia
Copy link
Collaborator

@ia ia commented Jul 18, 2023

  • Please check if the PR fulfills these requirements
  • The changes have been tested locally
  • There are no breaking changes
  • What kind of change does this PR introduce?
    Move check-style core logic from source/Makefile : check-style target to scripts/deploy.sh : check_style_file function.

  • What is the current behavior?
    If there is a need to maintain / modify core logic of check-style inside Makefile, it's crossing of bash syntax & makefile syntax which makes it look very inconvenient and disallow to put even per-line comments.

  • What is the new behavior (if this is a feature change)?
    To change/fix/update check-style parsers & logic, now it represented as a shell function inside deploy.sh.

  • Other information:
    This is not ideal, but I think it should make it more "maintainable": just like for some other stuff to load off makefile there are python scripts, putting shell stuff into sh script looks reasonable. Plus, consider this as PoC for first iteration. Maybe later I figure out how to make it even more clear and come back on that with another one PR.

@Ralim
Copy link
Owner

Ralim commented Jul 19, 2023

I'm all for this.
I noticed yesterday that you removed make style however. Which ran clang format over the files (not a check, but a format in place). Could we bring that back please 🙏🏼

@ia
Copy link
Collaborator Author

ia commented Jul 19, 2023

I noticed yesterday that you removed make style however. Which ran clang format over the files (not a check, but a format in place). Could we bring that back please

Ooops... I just wasn't too careful - thought it's some legacy target. Sure-sure, no problem at all! Sorry. But that's why a few pairs of eyes better than one after all. 👉 👈

@Ralim
Copy link
Owner

Ralim commented Jul 19, 2023

Hahaha it's no problem at all 😜 I missed it in the noise until I tried to use it 😊

@ia
Copy link
Collaborator Author

ia commented Jul 19, 2023

Sorry-sorry, now it's back. And I think I'm done with the commits for this PR unless you have any other suggestions.

@Ralim Ralim merged commit 93a18e5 into Ralim:dev Jul 20, 2023
15 checks passed
@ia ia deleted the check-style branch July 20, 2023 01:44
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

2 participants