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

markuplint / markuplint / #3563

pending completion
#3563

push

web-flow
Merge pull request #789 from YusukeHirao/website/764

Replace `any-rule` with `[[target-rule-id]]` and add descriptions

4437 of 6538 branches covered (67.86%)

Branch coverage included in aggregate %.

6975 of 9699 relevant lines covered (71.91%)

354.59 hits per line

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

0.0
/packages/@markuplint/create-rule-helper/src/create-rule-to-project.ts
1
import type { CreateRuleCreatorParams, CreateRuleHelperResult } from './types';
2

3
import { resolve } from 'node:path';
×
4

5
import { CreateRuleHelperError } from './create-rule-helper-error';
×
6
import { fsExists } from './fs-exists';
×
7
import { installScaffold } from './install-scaffold';
×
8

9
export async function createRuleToProject({
×
10
        pluginName,
11
        ruleName,
12
        lang,
13
        needTest,
14
}: CreateRuleCreatorParams): Promise<CreateRuleHelperResult> {
15
        const pluginDir = resolve(process.cwd(), pluginName);
×
16

17
        if (await fsExists(pluginDir)) {
×
18
                throw new CreateRuleHelperError(`The directory exists: ${pluginDir}`);
×
19
        }
20

21
        return await installScaffold('project', pluginDir, {
×
22
                pluginName,
23
                ruleName,
24
                lang,
25
                needTest,
26
        });
27
}
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