• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

streetsidesoftware / cspell / 8745810937

18 Apr 2024 11:05PM UTC coverage: 93.481% (+0.02%) from 93.46%
8745810937

Pull #5502

github

web-flow
Merge 53f2b8079 into c515cc91c
Pull Request #5502: chore: Add lint rules

6439 of 7332 branches covered (87.82%)

126 of 144 new or added lines in 68 files covered. (87.5%)

3 existing lines in 3 files now uncovered.

13192 of 14112 relevant lines covered (93.48%)

23103.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/hunspell-reader/src/commandDictInfo.ts
1
// cSpell:ignore findup
2
import { Command } from 'commander';
3

4
import { parseAffFile } from './affReader.js';
5
import { affToDicInfo } from './affToDicInfo.js';
6
import { escapeUnicodeCode } from './textUtils.js';
7

8
export function getCommand(): Command {
9
    const commander = new Command('cspell-dict-info');
×
10

11
    commander
×
12
        .arguments('<hunspell_aff_file> <locale>')
13
        .description('Display the CSpell Dictionary Information')
14
        .action(action);
15

16
    return commander;
×
17
}
18

19
async function action(hunspellFile: string, locale: string): Promise<void> {
20
    const baseFile = hunspellFile.replace(/\.(dic|aff)$/, '');
×
21
    const affFile = baseFile + '.aff';
×
22

23
    const aff = await parseAffFile(affFile);
×
24

25
    const info = affToDicInfo(aff, locale);
×
26

NEW
27
    const rawJson = JSON.stringify(info, undefined, 2);
×
28
    console.log(escapeUnicodeCode(rawJson));
×
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc