astyle check for embedded projects #932
Unanswered
sathishkumar-24
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If your code was
Well yeah no wonder that fails the style check! You're violating three style rules right there, all of them ones which I happen to agree with.
is very poor style and I do not permit code like that in my cores.
is accepted by astyle only because it doesn't have a way to make that fail too.
is what I would require if it were up to me.
Are you smoking crack or something?!
Finally, your indentation is missing. This is and should be an absolute stylecheck failure:
is what I would expect for my core. That is also invalid C, so actually I wouldn't merge that either!
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i am trying to do cicd for esp32(espressif) and arm(stm32 make build) projects can any one help thanks
For testing purpose i created one c file and i am trying to use megaTinyCore/.github/workflows/check-code-formatting.yml when run action i am getting my check code formatting was success but my c code was not in formatter following incorrect format code is there
int main(void) {
uint8_t ch;
int number1,number2, sum;
sum = number1+number2; }
Beta Was this translation helpful? Give feedback.
All reactions