Skip to content

Commit 4b73b7b

Browse files
bgsmetafacebook-github-bot
authored andcommitted
Diagnostics for oncall in header files - add detection
Summary: * We detect if an oncall attribute is in the header .hrl file * For now we wonly display a message. Next diff will have the fix for this suggested too Reviewed By: alanz Differential Revision: D63696175 fbshipit-source-id: d14658dac38e9dd99a8a06dc77c80bed02407c50
1 parent 5496cc5 commit 4b73b7b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

crates/ide/src/diagnostics/unused_include.rs

-17
Original file line numberDiff line numberDiff line change
@@ -590,23 +590,6 @@ foo() -> ok.
590590
)
591591
}
592592

593-
#[test]
594-
fn not_used_for_oncall_attribute() {
595-
check_diagnostics(
596-
r#"
597-
//- /src/main.erl
598-
-module(main).
599-
-include("header.hrl").
600-
%%^^^^^^^^^^^^^^^^^^^^^^^ 💡 warning: Unused file: header.hrl
601-
602-
foo() -> ok.
603-
604-
//- /src/header.hrl
605-
-oncall("mary").
606-
"#,
607-
)
608-
}
609-
610593
#[test]
611594
fn fixes_unused_include() {
612595
check_fix(

0 commit comments

Comments
 (0)