|
1 | 1 | { |
2 | 2 | "version": 1, |
3 | 3 | "probes": [ |
| 4 | + { |
| 5 | + "id": "index-table-stats", |
| 6 | + "goldenId": "index-table-stats", |
| 7 | + "traditional": { |
| 8 | + "globs": ["**/*.{ts,tsx,md,css}"], |
| 9 | + "regex": ".", |
| 10 | + "mode": "files" |
| 11 | + } |
| 12 | + }, |
4 | 13 | { |
5 | 14 | "id": "symbol-usePermissions", |
6 | 15 | "goldenId": "symbol-usePermissions", |
|
19 | 28 | "mode": "files" |
20 | 29 | } |
21 | 30 | }, |
| 31 | + { |
| 32 | + "id": "import-specifiers-consumer", |
| 33 | + "goldenId": "import-specifiers-consumer", |
| 34 | + "traditional": { |
| 35 | + "globs": ["src/consumer.ts"], |
| 36 | + "regex": "import\\s+\\{[^}]+\\}\\s+from", |
| 37 | + "mode": "matches" |
| 38 | + } |
| 39 | + }, |
| 40 | + { |
| 41 | + "id": "bindings-createClient", |
| 42 | + "goldenId": "bindings-createClient", |
| 43 | + "traditional": { |
| 44 | + "globs": ["**/*.{ts,tsx}"], |
| 45 | + "regex": "createClient", |
| 46 | + "mode": "matches" |
| 47 | + } |
| 48 | + }, |
22 | 49 | { |
23 | 50 | "id": "find-call-sites", |
24 | 51 | "goldenId": "find-call-sites", |
|
38 | 65 | } |
39 | 66 | }, |
40 | 67 | { |
41 | | - "id": "import-specifiers-consumer", |
42 | | - "goldenId": "import-specifiers-consumer", |
| 68 | + "id": "unresolved-call-sites", |
| 69 | + "goldenId": "unresolved-call-sites", |
43 | 70 | "traditional": { |
44 | | - "globs": ["src/consumer.ts"], |
45 | | - "regex": "import\\s+\\{[^}]+\\}\\s+from", |
| 71 | + "globs": ["src/lib/complexity-fixture.ts"], |
| 72 | + "regex": "relay\\s*\\(", |
| 73 | + "mode": "matches" |
| 74 | + } |
| 75 | + }, |
| 76 | + { |
| 77 | + "id": "type-ancestors-dog", |
| 78 | + "goldenId": "type-ancestors-dog", |
| 79 | + "traditional": { |
| 80 | + "globs": ["src/types/hierarchy.ts"], |
| 81 | + "regex": "extends\\s+\\w+", |
| 82 | + "mode": "matches" |
| 83 | + } |
| 84 | + }, |
| 85 | + { |
| 86 | + "id": "find-jsx-usages", |
| 87 | + "goldenId": "find-jsx-usages", |
| 88 | + "traditional": { |
| 89 | + "globs": ["**/*.{tsx,jsx}"], |
| 90 | + "regex": "<[A-Za-z]", |
| 91 | + "mode": "matches" |
| 92 | + } |
| 93 | + }, |
| 94 | + { |
| 95 | + "id": "css-variables", |
| 96 | + "goldenId": "css-variables", |
| 97 | + "traditional": { |
| 98 | + "globs": ["**/*.css"], |
| 99 | + "regex": "--[\\w-]+", |
| 100 | + "mode": "matches" |
| 101 | + } |
| 102 | + }, |
| 103 | + { |
| 104 | + "id": "circular-imports", |
| 105 | + "goldenId": "circular-imports", |
| 106 | + "traditional": { |
| 107 | + "globs": ["src/lib/*.ts"], |
| 108 | + "regex": "from\\s+['\"]\\./", |
| 109 | + "mode": "files" |
| 110 | + } |
| 111 | + }, |
| 112 | + { |
| 113 | + "id": "find-swallowed-errors", |
| 114 | + "goldenId": "find-swallowed-errors", |
| 115 | + "traditional": { |
| 116 | + "globs": ["src/lib/cache.ts"], |
| 117 | + "regex": "catch\\s*\\(", |
| 118 | + "mode": "matches" |
| 119 | + } |
| 120 | + }, |
| 121 | + { |
| 122 | + "id": "untested-and-dead", |
| 123 | + "goldenId": "untested-and-dead", |
| 124 | + "traditional": { |
| 125 | + "globs": ["src/**/*.ts"], |
| 126 | + "regex": "export\\s+function", |
| 127 | + "mode": "files" |
| 128 | + } |
| 129 | + }, |
| 130 | + { |
| 131 | + "id": "boundary-violations", |
| 132 | + "goldenId": "boundary-violations", |
| 133 | + "traditional": { |
| 134 | + "globs": ["src/components/**/*.tsx"], |
| 135 | + "regex": "from\\s+['\"]~?/api/", |
| 136 | + "mode": "matches" |
| 137 | + } |
| 138 | + }, |
| 139 | + { |
| 140 | + "id": "source-fts-row-count", |
| 141 | + "goldenId": "source-fts-row-count", |
| 142 | + "traditional": { |
| 143 | + "globs": ["**/*.{ts,tsx,md,css}"], |
| 144 | + "regex": ".", |
| 145 | + "mode": "files" |
| 146 | + } |
| 147 | + }, |
| 148 | + { |
| 149 | + "id": "find-skipped-tests", |
| 150 | + "goldenId": "find-skipped-tests", |
| 151 | + "traditional": { |
| 152 | + "globs": ["src/__tests__/**/*.ts"], |
| 153 | + "regex": "\\.(skip|only)\\s*\\(", |
46 | 154 | "mode": "matches" |
47 | 155 | } |
48 | 156 | }, |
|
0 commit comments