Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Fix class and remove reason property from class decl #247

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

nimakarimipour
Copy link
Member

@nimakarimipour nimakarimipour commented Oct 3, 2024

This PR is a cleanup that is required before the upcoming major PR that adds support for taint checker inference.

Changes:

Removed the reason property from the Fix class. Previously, this field stored the set of errors associated with each fix. However, this information can be derived directly from the set of errors itself.
Refactored the code to remove redundant storage, ensuring a cleaner and more efficient design.
Rationale:

The reason property is redundant as the same information is accessible through the error set. This refactoring simplifies the codebase and eliminates unnecessary complexity, making future updates, including the taint checker inference integration, easier to manage.

@nimakarimipour nimakarimipour added the refactoring/simplification Refactoring Simplification label Oct 3, 2024
@nimakarimipour nimakarimipour self-assigned this Oct 3, 2024
@nimakarimipour nimakarimipour changed the title Clean up Error class and make reason a single string property Clean up Fix class and remove reason property from class decl Oct 4, 2024
@nimakarimipour nimakarimipour merged commit a60d7d2 into master Oct 4, 2024
7 checks passed
@nimakarimipour nimakarimipour deleted the nimak/make-reason-single branch October 4, 2024 03:20
nimakarimipour added a commit that referenced this pull request Oct 9, 2024
…ons. (#250)

With the recent clean up #247 , a fix instance can be used directly in APIs where a set of locations were passed. This PR refactors classes that contains APIs working with set of locations and instead updates them to work with Fix instance directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring/simplification Refactoring Simplification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant