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

dragomano / scss-php / 23594295754

26 Mar 2026 12:19PM UTC coverage: 84.536%. First build
23594295754

push

github

web-flow
Merge pull request #51 from dragomano/refactor

Rewrite compiler

10140 of 12016 new or added lines in 162 files covered. (84.39%)

10272 of 12151 relevant lines covered (84.54%)

83.37 hits per line

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

25.0
/src/Exceptions/ModuleResolutionException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Bugo\SCSS\Exceptions;
6

7
final class ModuleResolutionException extends SassException
8
{
9
    public static function importNotFound(string $path): self
10
    {
11
        return new self("File to import not found or unreadable: $path");
3 ✔
12
    }
13

14
    public static function notFound(string $module): self
15
    {
NEW
16
        return new self("Module '$module' not found.");
×
17
    }
18

19
    public static function unknownNamespace(string $value): self
20
    {
21
        return new self("Unknown module namespace '$value'.");
4 ✔
22
    }
23

24
    public static function callableNotFound(string $metaFunction, string $name, ?string $module = null): self
25
    {
NEW
26
        $message = $metaFunction . "() could not find '$name'";
×
27

NEW
28
        if ($module !== null) {
×
NEW
29
            $message .= " in module '$module'";
×
30
        }
31

NEW
32
        return new self($message . '.');
×
33
    }
34

35
    public static function circularDependency(string $path): self
36
    {
NEW
37
        return new self("Circular dependency detected: '$path' is already being loaded.");
×
38
    }
39

40
    public static function duplicateNamespace(string $namespace): self
41
    {
NEW
42
        return new self("Multiple @use rules with namespace '$namespace' in the same file.");
×
43
    }
44

45
    public static function nonConfigurableVariable(string $name, string $modulePath): self
46
    {
NEW
47
        return new self("This variable isn't declared with !default in the target stylesheet, so it can't be configured: \$$name (in module '$modulePath').");
×
48
    }
49

50
    public static function builtInModuleConfiguration(string $module): self
51
    {
52
        return new self("Built-in module '$module' can't be configured.");
1 ✔
53
    }
54

55
    public static function mixedImportUse(): self
56
    {
NEW
57
        return new self('Cannot use @use in a file that also uses @import. Consider using @forward instead of @import.');
×
58
    }
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc