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

initial thehive reporting setup #237

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

lucamrgs
Copy link
Collaborator

No description provided.

@lucamrgs lucamrgs linked an issue Oct 23, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Oct 23, 2024

Sigrid maintainability feedback

↗️ You improved your code's maintainability towards your Sigrid objective of 4.0 stars

Sigrid compared your code against the baseline of 2024-10-31.

👍 What went well?

You fixed or improved 0 refactoring candidates.

👎 What could be better?

Unfortunately, 7 refactoring candidates were introduced or got worse.

Risk System property Location
🟠 Unit Size
(Introduced)
internal/reporter/downstream_reporter/thehive/connector/thehive_connector.go
TheHiveConnector.sendRequest(method string, url string, body interface {})
🟠 Unit Size
(Introduced)
internal/reporter/downstream_reporter/thehive/connector/thehive_connector.go
TheHiveConnector.PostNewCase(caseId string, playbook cacao.Playbook)
🟡 Unit Complexity
(Introduced)
internal/reporter/downstream_reporter/thehive/connector/thehive_connector.go
TheHiveConnector.sendRequest(method string, url string, body interface {})
🟡 Unit Interfacing
(Introduced)
internal/reporter/downstream_reporter/thehive/connector/thehive_connector.go
TheHiveConnector.sendRequest(method string, url string, body interface {})
🟡 Unit Interfacing
(Introduced)
internal/reporter/downstream_reporter/thehive/thehive_reporter.go
TheHiveReporter.ReportStepEnd(executionId uuid.UUID, step cacao.Step, stepResults cacao.Variables, err error)
🟡 Unit Interfacing
(Introduced)
internal/reporter/downstream_reporter/thehive/thehive_reporter.go
TheHiveReporter.ReportWorkflowEnd(executionId uuid.UUID, playbook cacao.Playbook, err error)
🟡 Unit Interfacing
(Introduced)
internal/reporter/downstream_reporter/thehive/thehive_reporter.go
TheHiveReporter.ReportStepStart(executionId uuid.UUID, step cacao.Step, stepResults cacao.Variables)

📚 Remaining technical debt

0 refactoring candidates didn't get better or worse, but are still present in the code you touched.

Sigrid ratings

System property System on 2024-10-31 Before changes New/changed code
Volume 5.5 N/A N/A
Duplication 4.3 N/A 5.5
Unit Size 2.4 N/A 2.0
Unit Complexity 2.4 N/A 3.0
Unit Interfacing 2.2 N/A 1.7
Module Coupling 3.7 N/A 5.5
Component Independence 0.5 N/A N/A
Component Entanglement 2.9 N/A N/A
Maintainability 3.0 N/A 3.7

View this system in Sigrid


Did you find this feedback helpful?

We would like to know your thoughts to make Sigrid better.
Your username will remain confidential throughout the process.

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.

the hive connector
1 participant