GNUWeeb / GNUWeebBot

High-performance bot Telegram, running on Linux environment, written in C.
GNU General Public License v2.0
13 stars 8 forks source link

Add B_NATIVE build and Implement editorconfig checker workflow #31

Closed ammarfaizi2 closed 3 years ago

ammarfaizi2 commented 3 years ago

(1) Add B_NATIVE build

B_NATIVE is a variable for Makefile, if it is set to 1 then the compiler will optimize the code with -mtune=native and -march=native

(2) Implement editorconfig checker workflow

This implementation can detect bad trailing whitespace and missing LF at the EOF. But some tabs indentation checker is still a bit conflict with Linux kernel coding style when it lines up multiple arguments that are broken down into multiple lines.

We plan to fix the conflict in the near future, but it is not an urgent issue at the moment.

Fixes: https://github.com/GNUWeeb/GNUWeebBot/issues/30

Suggested-by: Sri Aspari <sriaspari@gmail.com>
Signed-off-by: Ammar Faizi <ammarfaizi2@gmail.com>