Readability checks the reading grade level of text.
| 11 | |
| 12 | // Readability checks the reading grade level of text. |
| 13 | type Readability struct { |
| 14 | Definition `mapstructure:",squash"` |
| 15 | // `metrics` (`array`): One or more of Gunning Fog, Coleman-Liau, |
| 16 | // Flesch-Kincaid, SMOG, and Automated Readability. |
| 17 | Metrics []string |
| 18 | // `grade` (`float`): The highest acceptable score. |
| 19 | Grade float64 |
| 20 | } |
| 21 | |
| 22 | // NewReadability creates a new `readability`-based rule. |
| 23 | func NewReadability(_ *core.Config, generic baseCheck, path string) (Readability, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected