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

  1. Add the Advisor Type in /plugin/advisor/advisor.go:
    const (
     // ...
    
         // MySQLColumnDisallowChangingType is an advisor type for MySQL disallow changing column type.
         MySQLColumnDisallowChangingType Type = "bb.plugin.advisor.mysql.column.disallow-changing-type"
    )
    
    You need write both code and the comment.
  2. run generator to generate the framework code.
    go run main.go --rule {AdvisorType}
    
    in /plugin/advisor/generator e.g.
    go run main.go --rule MySQLColumnDisallowChangingType
    
  3. Implement the rule-specific logic in the generated files.