Betty Fixer is a tool designed to automatically fix coding style issues in C files based on the Betty coding style guidelines. It performs corrections to ensure that the code complies with the Betty style, making it more readable and consistent.
- Betty Style Fixes: Automatically corrects coding style issues following the Betty style guidelines.
- Vi Script Execution: Runs a Vi script for each fixed file, making it convenient for developers to review and further modify the code.
- Create header.h: You can now create header file by specifing header file name after flag -H .
Before using Betty Fixer, ensure you have the following installed:
-
Betty - The Betty linter for C code.
-
Vi Editor - The Vi editor for script execution.
-
Ctags :-
sudo apt-get install exuberant-ctags
-
Clone the repository:
pip install bettyfixer
-
Run Betty Fixer on your C files:
bettyfixer file1.c file2.c ...
-
To create header file run:
bettyfixer -H <header_name>.h ...
The current release of bettyfixer
is optimized for Ubuntu 20.04 LTS (Focal Fossa). We are actively working to expand compatibility to include other Ubuntu releases in future updates. Stay tuned for upcoming releases that will offer support for a broader range of Ubuntu versions.
If you'd like to contribute to Betty Fixer, please follow these steps:
- Go to the Github repository
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and ensure the code style follows the project conventions.
- Test your changes thoroughly.
- Create a pull request with a clear description of your changes.