-
-
Notifications
You must be signed in to change notification settings - Fork 280
Description
I think that this internal
folder that hides most of exported modules is an unfortunate situation.
Consider a use-case when someone wants to make a rules parser to help migrate off libmodsecurity
, in current state this can only be done by actually launching waf
via NewWAF
function, this works but is a bit uncomfortable.
Furthermore, considering the case above, when broken rule is encountered, in some cases, error message is so obscured with error wrapping and lacks the actual information that can help to find the actual broken rule as opposed to how libmodsecurity
reports parse errors (with partial rule and file:linenumber).
By exposing so of the internal
packages to public it will allow to reuse them more comfortably and will help improve error messaging, at least there will be no multiple/useless error wrapping for parser code.