package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# README
This is a SQL review rule generator. It's used for implementing a specific SQL review rule.
How To Use
- Add the
Advisor Type
in/plugin/advisor/advisor.go
:
You need write both code and the comment.const ( // ... // MySQLColumnDisallowChangingType is an advisor type for MySQL disallow changing column type. MySQLColumnDisallowChangingType Type = "bb.plugin.advisor.mysql.column.disallow-changing-type" )
- run generator to generate the framework code.
ingo run main.go --rule {AdvisorType}
/plugin/advisor/generator
e.g.go run main.go --rule MySQLColumnDisallowChangingType
- Implement the rule-specific logic in the generated files.