Based on the 15-112 Styling Guidelines.
This project is designed to analyze Python code for styling issues, adhering to the 15-112 course styling rules. It allows for easy identification and resolution of coding style discrepancies. Users have the flexibility to select specific rules or checkers for application.
- Python 3.10
The project utilizes the CMU-Graphics
module. To install, execute:
pip install cmu-graphics
All other modules used are standard Python built-in modules.
Execute the following command to run the project:
python main.py
In checkers.py
, you can extend the functionality by adding your custom code checkers to the Checker
class. To integrate a new checker:
- Create a method within the
Checker
class that begins withcheck
. - Ensure that your method returns a list of
StyleViolation
objects. - Access the Python code using
self.content
, which contains the lines of the code as strings.
Contributions are welcome! Feel free to send pull requests to our GitHub repository.