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

Check for application types based on static code analysis #18

Merged
merged 6 commits into from
Feb 6, 2023

Conversation

steveworley
Copy link
Contributor

  • Adds a deterministic sniff for application type

Copy link
Contributor

@yusufhm yusufhm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveworley looking good overall; just a couple of questions

utils.MergeStringSlice(&c.Disallowed, appTypeCheck.Disallowed)
utils.MergeStringSlice(&c.Paths, appTypeCheck.Paths)
c.Threshold = appTypeCheck.Threshold

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the other fields are not being merged - would that be on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because I wasn't sure how the merge would happen with map[string][]string as opposed to []string, but also because I thought we wouldn't be changing the markers when we override.

pkg/sca/apptypecheck_test.go Outdated Show resolved Hide resolved
@steveworley steveworley merged commit a9fef3f into main Feb 6, 2023
@yusufhm yusufhm deleted the feature/apptypecheck branch March 9, 2023 03:33
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.

2 participants