Skip to content

Commit 775b36b

Browse files
authored
✨ - Add more PPX skip rules (#105)
1 parent e6a8406 commit 775b36b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/build/parse.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,15 @@ fn path_to_ast_extension(path: &Path) -> &str {
349349
fn include_ppx(flag: &str, contents: &str) -> bool {
350350
if flag.contains("bisect") {
351351
return std::env::var("BISECT_ENABLE").is_ok();
352-
} else if flag.contains("graphql-ppx") && !contents.contains("%graphql") {
352+
} else if (flag.contains("graphql-ppx") || flag.contains("graphql_ppx")) && !contents.contains("%graphql")
353+
{
353354
return false;
354355
} else if flag.contains("spice") && !contents.contains("@spice") {
355356
return false;
357+
} else if flag.contains("rescript-relay") && !contents.contains("%relay") {
358+
return false;
359+
} else if flag.contains("re-formality") && !contents.contains("%form") {
360+
return false;
356361
}
357362
return true;
358363
}

0 commit comments

Comments
 (0)