Skip to content

feat: Export vulnerability length constants

Lucas Charles requested to merge expose-max-length-const into main

What does this MR do?

Export length constants to make referencing these easier for analyzers, such as in cases where we need to trim the fields, for example security-code-scan!150 (merged)

We should really do this generically so we don't have to manually trim per analyzer but there's no good abstraction currently since we rely on a relatively independent ConvertFunc to handle all conversion logic. We could do so within command.Run() but either way we should export these first. report seems like a sufficiently authoritative package to contain the constants and a future TODO to add mirror all schema maxLengths here as well.

What are the relevant issue numbers?

N/A

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports