Script is Tango-based script. see https://github.com/d5/tengo.
| 15 | // |
| 16 | // see https://github.com/d5/tengo. |
| 17 | type Script struct { |
| 18 | Definition `mapstructure:",squash"` |
| 19 | Script string |
| 20 | |
| 21 | path string |
| 22 | } |
| 23 | |
| 24 | // NewScript creates a new `script`-based rule. |
| 25 | func NewScript(cfg *core.Config, generic baseCheck, path string) (Script, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected