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

engine:refactor - improving engine code and performance #60

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

nathanmartinszup
Copy link
Contributor

@nathanmartinszup nathanmartinszup commented Jan 10, 2022

This commit contains a complete engine refactoring and includes some
breaking changes. The use of the engine has been simplified to just one
function called Run, this function will receive a context, project path
that must be analyzed and a slice of rules. These rules are defined by
a generic interface and each one have your own implementation, that will
make it easy to add other types of analysis in the future, such as semantic.
Various performance and code improvements have also been made, which
dramatically improved code quality and analysis time.

Signed-off-by: Nathan Martins nathan.martins@zup.com.br

- What I did

- How to verify it

- Description for the changelog

@nathanmartinszup nathanmartinszup force-pushed the refactor branch 8 times, most recently from 4a6e0ac to 1dd2cb3 Compare January 13, 2022 13:49
@nathanmartinszup nathanmartinszup marked this pull request as ready for review January 13, 2022 13:53
@nathanmartinszup nathanmartinszup changed the title Refactor engine:refactor - improving engine code and performance Jan 13, 2022
engine.go Outdated Show resolved Hide resolved
engine.go Outdated Show resolved Hide resolved
engine.go Outdated Show resolved Hide resolved
engine_test.go Outdated Show resolved Hide resolved
engine_test.go Outdated Show resolved Hide resolved
engine_test.go Outdated Show resolved Hide resolved
pool/pool.go Outdated Show resolved Hide resolved
text/rule.go Outdated Show resolved Hide resolved
text/rule.go Outdated Show resolved Hide resolved
This commit contains a complete engine refactoring and includes some
breaking changes. The use of the engine has been simplified to just one
function called Run, this function will receive a context, project path
that must be analyzed and a slice of rules. These rules are defined by
a generic interface and each one have your own implementation, that will
make it easy to add other types of analysis in the future, such as semantic.
Various performance and code improvements have also been made, which
dramatically improved code quality and analysis time.

Signed-off-by: Nathan Martins <nathan.martins@zup.com.br>
@nathanmartinszup nathanmartinszup merged commit 0f12809 into main Jan 17, 2022
@nathanmartinszup nathanmartinszup deleted the refactor branch January 17, 2022 12:43
ne0z pushed a commit to ne0z/horusec-engine that referenced this pull request Jun 23, 2022
This commit contains a complete engine refactoring and includes some
breaking changes. The use of the engine has been simplified to just one
function called Run, this function will receive a context, project path
that must be analyzed and a slice of rules. These rules are defined by
a generic interface and each one have your own implementation, that will
make it easy to add other types of analysis in the future, such as semantic.
Various performance and code improvements have also been made, which
dramatically improved code quality and analysis time.

Signed-off-by: Nathan Martins <nathan.martins@zup.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants