Published May 4, 2026 | Version v1

Design and Implementation of a Rule-Based Expert System for Automated Code Review

Authors/Creators

Description

This project presents the design and implementation of a rule-based expert system for automated code review. The system aims to assist developers, particularly beginners, in identifying common programming errors and improving overall code quality.

The proposed system analyzes source code written in Python and Java by applying a predefined set of rules that simulate expert knowledge. It is capable of detecting issues such as incorrect syntax usage, improper comparisons, formatting violations, and common logical mistakes.

The system is developed using Python and provides a simple web-based interface built with Streamlit, allowing users to input code, select the programming language, and receive immediate feedback. Additionally, the system generates a structured report and supports exporting the analysis results as a PDF document.

This project focuses on simplicity, usability, and educational value, offering a lightweight alternative to complex industrial tools. It is particularly suitable for students and beginner developers who need quick and clear feedback without requiring advanced configuration or technical expertise.


This work was conducted at Arab International University (AIU), Syria. The official website of the university is: https://www.aiu.edu.sy

Files

AI Code Review Assistant.pdf

Files (1.4 MB)

Name Size
md5:ec4b283e24aa96adc37eed08f2b159f2
1.4 MB Preview Download

Additional details

References

  • [1] SonarSource, "SonarQube Documentation," 2024. [Online]. Available: https://www.sonarqube.org/
  • [2] Snyk Ltd., "Snyk Code (formerly DeepCode)," 2024. [Online]. Available: https://snyk.io/product/snyk-code/
  • [3] Code Climate Inc., "Code Climate Platform," 2024. [Online]. Available: https://codeclimate.com/
  • [4] Pylint Development Team, "Pylint Documentation," 2024. [Online]. Available: https://pylint.pycqa.org/
  • [5] Checkstyle Team, "Checkstyle Tool," 2024. [Online]. Available: https://checkstyle.sourceforge.io/
  • [6] I. Sommerville, Software Engineering, 10th ed. Pearson, 2015.
  • [7] E. Rich, K. Knight, and S. B. Nair, Artificial Intelligence, 3rd ed. McGraw-Hill, 2009.
  • [8] N. Ayewah and W. Pugh, "The Google FindBugs Fixit," Proc. ISSTA, 2010.
  • [9] B. Johnson et al., "Why don't software developers use static analysis tools to find bugs?" Proc. ICSE, 2013.
  • [10] T. Mens and T. Tourwé, "A Survey of Software Refactoring," IEEE Trans. Software Engineering, 2004.
  • [11] T. Barhoum, 'SETF: A Structured Engineering Thesis Framework for Artificial Intelligence, Software Engineering, and Robotics', Zenodo, Apr. 2026. doi: 10.5281/zenodo.19686845.