Questions tagged [intellij-inspections]
The intellij-inspections tag has no usage guidance.
intellij-inspections
44
questions
-1
votes
0
answers
25
views
Make IntelliJ IDEA warn for potential NullPointerExceptions during unboxing without assuming everything is @Nullable
Is there any way to more granularly control IntelliJ IDEA's inspections' "Nullability and data flow problems" option "Treat non-annotated members and parameters as @Nullable"? ...
0
votes
0
answers
9
views
Use versioned Formatter, Inspections and Code Cleanup Configs in IntelliJ
I have configured an IntelliJ Formatter, Code Cleanup and Inspections Profile. I want to check in these profiles so my team members can use them. The problem is: They have to import these settings ...
7
votes
2
answers
210
views
Using IntelliJ IDEA, How to inspect (lint) if the instance is not calling the method from its own class but from the super class?
I want to check (actually prohibit) the call of the method of the super class from the instance of its subclass.
Example (here the Generics wouldn't be needed but I'm using it because I want to make ...
0
votes
0
answers
32
views
Inspection in PhpStorm to add empty() to variables in IF clauses
I have tons of old code that needs to be updated. Is there a way to create an inspection in PhpStorm that will add empty() and !empty() accordingly in if-clauses? The easy examples would be:
if ($...
0
votes
1
answer
20
views
How do I create an inspection in IntelliJ for relative imports in TypeScript?
I create a new User defined inspection, using Structural search, and put this in the Search template:
from '../
But I can't get it to work. Neither do these:
"from '../"
import $something$ ...
0
votes
2
answers
159
views
Intellij Koltin/java Property name 'désactivé' may contain only letters and digits
I try to use accented characters for variable names but intellij doesn't really like it
this does not pose a problem when compiling or even when using... after some testing
I started by managing the ...
2
votes
1
answer
55
views
How can I get IntelliJ to flag any implement of toString()?
We use Lombok, and my architect wants us to always use the Lombok @ToString instead of custom implementation.
I want IntelliJ to flag any toString() implementation as a warning.
How do I do that?
I ...
0
votes
1
answer
251
views
Where to delete or reset Inspection Profile in Android Studio?
I am trying to undo a mistake of suppressing a lint warning but I can't really find it in the Inspection Settings in Android Studio. I already reset the Android Studio, invalidate cache, and clean the ...
0
votes
1
answer
76
views
How do I disable "simplify chained comparison" in PyCharm?
I understand that a statement like
if x > y and y > z:
pass
can be simplified to
if x > y > z:
pass
but honestly I prefer to have the first one, don't judge me please. Is there a ...
1
vote
1
answer
44
views
How to suppress operator overloading for get and set methods in Kotlin inspections?
I am trying to create a custom get and set method but I would like to suppress the inspections warning Function should have 'operator' modifier only for these specific functions.
The following did not ...
2
votes
1
answer
167
views
How to write custom inspection for duplicate annotations in Intellij Idea?
Test methods is annotated with values, this values must be uniq.
I want an inspection in IDEA that highlights duplicate annotation. Duplicates may be in different java files
Example
@Link(type = "...
0
votes
0
answers
41
views
Where did my errors go for PhpStorm (mac)
PhpStorm: 2021.2.2
OS: Mac OSX Catalina
I am working in the latest version of PhpStorm, and let me give you a couple of examples as I am sure its a setting some where I need to turn on:
Consider this ...
0
votes
0
answers
32
views
Copy of Java Project fails due to IntelliJ Inspection Profiles
Context: I am trying to copy my Java Project from one drive to another.
Issue: The copy stops, as it is unable to copy the Project_Default.xml file from .idea-> inspectionProfiles to destination. ...
0
votes
1
answer
42
views
Disable Inspections for a specific PsiElement subclass
I developed a Custom Language plugin based on this this tutorial.
Now I'd like to disable/suppress Inspection with message Non-ASCII characters in an identifier for specific identifiers via Plugin API....
0
votes
0
answers
48
views
Preventing warning 'GrEqualsBetweenInconvertibleTypes' when using '==' with a class implementing Comparable (Groovy)
Note that this question pertains to Groovy ('==' means equality rather than identity) and IntelliJ IDEA (but I don't believe this issue to be IDE-specific).
I have a class that implements comparable ...