IsOnly returns true if the analyzer is set to "only" mode.
()
| 140 | |
| 141 | // IsOnly returns true if the analyzer is set to "only" mode. |
| 142 | func (a AnalyzerDatabase) IsOnly() bool { |
| 143 | return a.isOnly |
| 144 | } |
| 145 | |
| 146 | func (a *AnalyzerDatabase) UnmarshalJSON(data []byte) error { |
| 147 | // Try to unmarshal as boolean first |