GetVersionedRulesConfig specializes the view to just the rules config.
()
| 194 | |
| 195 | // GetVersionedRulesConfig specializes the view to just the rules config. |
| 196 | func (v View) GetVersionedRulesConfig() *VersionedRulesConfig { |
| 197 | if v.Config.RulesConfig.Files == nil { |
| 198 | return nil |
| 199 | } |
| 200 | return &VersionedRulesConfig{ |
| 201 | ID: v.ID, |
| 202 | Config: v.Config.RulesConfig, |
| 203 | DeletedAt: v.DeletedAt, |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | // RulesConfig is the rules configuration for a particular organization. |
| 208 | type RulesConfig struct { |
no outgoing calls
no test coverage detected