I want to perform a specific validation of a Java project. I see that this check works in real time in the edit window. But when I use "Analysis → Run test by name", I can not find this test. Actually there is one with the same name, but it is for JavaScript (I tried, although it did not work, as expected). Can someone tell me the exact name of the inspection I need or teach me how to figure it out?
Here is a sample code:
private Integer getInteger(){
Integer x = 5;
return x;
}
Update: I was able to run the required scan using a workaround. I created a test case as described above, then pressed Alt + Enter on the selected area, then the right arrow key and selected "Run Test".
This works, but it is still unclear how to perform the same checks using "Analysis -> Run test by name"
source
share