(filepath: string, ruleset?: Ruleset)
| 492 | |
| 493 | // hint file |
| 494 | function hintFile(filepath: string, ruleset?: Ruleset) { |
| 495 | let content = '' |
| 496 | |
| 497 | try { |
| 498 | content = readFileSync(filepath, 'utf-8') |
| 499 | } catch (e) { |
| 500 | // ignore |
| 501 | } |
| 502 | |
| 503 | return HTMLHint.verify(content, ruleset) |
| 504 | } |
| 505 | |
| 506 | // hint stdin |
| 507 | function hintStdin( |