code-inspection Questions
5
Solved
IntelliJ is suggesting to import com.sun.istack.internal.NotNull the @NotNull annotation (which is wrong) in the following program:
public class Test implements Comparable<Test> {
@Override...
Effulgent asked 6/7, 2015 at 10:27
8
Wasting more time scouring through the COUNTLESS number of inspections (which I know how to enable and disable), I cannot find ANY way to disable the particular inspection of 'Condition is always t...
Coquito asked 13/9, 2017 at 21:40
5
Solved
Java EE + IntelliJ Idea 2016.3: I've written a class and declared a private field with a @Inject annotation.
I have successfully got rid of the "unused declaration" notification from the "inspect...
Ias asked 13/12, 2016 at 15:20
4
Solved
When I am in a .java file, the unused code is usually grayed out or has a green underline saying this code will probably (probably because of some weird JNI/Reflection corner cases) be unused. But ...
Assimilate asked 5/7, 2011 at 19:18
2
Solved
PyCharm's code inspection is a useful tool, but sometimes it gets things wrong. I know you can disable whole classes of warnings via settings, but what if you just want to dismiss a specific instan...
Astaire asked 26/12, 2013 at 15:29
1
Solved
While running the TeamCity ReSharper inspection command-line tools. There is an error "unknown tools version 17.0" with the following details.
Inspections (ReSharper)
Unknown tools versi...
Cephalization asked 11/3, 2022 at 15:40
2
I have this piece of code in a Python module open in PyCharm Community Edition 2017.2.
class Sample(object):
def __init__(self):
self.prop1 = 5
self.prop2 = 10
def method1(self):
retur...
Oliana asked 5/10, 2017 at 10:2
2
Solved
I have inherited a bunch of Python files and looking for a way to get an understanding of what is going on within them by collecting information about all the functions that have been defined and c...
Nanete asked 3/12, 2014 at 10:43
2
Solved
After inspect code from my PyCharm. It warns me as
Closing tag matches nothing at last </p> tag
But I didn't find any wrong my code. p tag is closed correctly.
<p v-if="files.length&...
Brevity asked 25/9, 2018 at 1:0
1
In Python, how can I get all properties of a class, i.e. all members created by the @property decorator?
There are at least two questions[1, 2] on stackoverflow which confound the terms prope...
Tile asked 21/1, 2021 at 10:1
1
Solved
If I have a function like this:
<?php
function foo($used, $maybe_unused = '') { ... }
Alt-F7 will find ALL calls to foo(). However, I want to find out if any of the calls include the second pa...
Chetnik asked 23/6, 2020 at 16:24
1
Solved
I'm using IntelliJ on a Java/Hibernate project. I've also assigned a data source to that project so most of the JPA validation errors for non existing columns are gone.
The only errors remaining ...
Weight asked 5/3, 2020 at 9:53
2
Solved
IntelliJ is giving a warning of
Property exports is not defined in type Module
wherever I use module.exports= anywhere in the project.
Lighterage asked 9/5, 2017 at 8:32
4
I need to detect whether a function is an empty definition or not. It can be like:
def foo():
pass
or like:
def foo(i, *arg, **kwargs):
pass
or like:
foo = lambda x: None
What is the mos...
Zingaro asked 29/11, 2012 at 7:8
5
Solved
I'm using IntelliJ IDEA to build a non-java project, it is just a PHP + Javascript project, everything is working just fine but when I try to Inspect all the code in the project (Analyze -> Inspect...
Cotswolds asked 21/6, 2016 at 7:31
1
Solved
How to stop this inspection:
"Member has protected access, but class has magic method __get"?
I searched everywhere but can not find the option to disable this inspection.
I really do not ...
Complicate asked 24/6, 2016 at 1:18
5
Solved
In Google Chrome's developer tools, when I select an element, I see ==$0 next to the selected element. What does that mean?
Coaler asked 3/5, 2016 at 8:54
2
Solved
Assume the following Kotlin example that maps the source set src to a destination set dst:
private val src: Set<String> = setOf("hello", "world")
private val dst: Set<Int> = src.map { ...
Shirtwaist asked 18/9, 2018 at 9:22
2
Solved
IntelliJ IDEA -> Settings -> Other settings -> SonarLint General Settings
SonarQube servers: Localhost (http://localhost:9000;
login: admin; password: admin;
test connection - "Auth...
Azov asked 9/7, 2016 at 17:21
3
I have added an Inspections (.NET) build step to a TeamCity (v8) project consisting of a Visual Studio 2010 solution build step for a single dummy C# class.
The build step has failure conditions t...
Oddment asked 9/1, 2014 at 22:44
1
Solved
I am using the ZendDb database adapter which doesn't bring all the tweaks SQL can do. For example if I want to do a REPLACE INTO I would have to code it like this:
$SQL = sprintf('REPLACE INTO %s ...
Kenlay asked 8/1, 2018 at 9:14
1
Solved
In Android Studio there is the lint.xml configuration and ./idea/inspectionProfiles/.xml manageable via Settings => Editor => Inspections. I understand lint.xml is used by lint command line tool an...
Gamy asked 13/3, 2017 at 10:26
0
In IntelliJ I activated the "Field May Be Final" inspection because of the project's coding guidelines.
But this makes no sense for Serializable classes, where final fields would cause serializati...
Portal asked 25/1, 2017 at 14:46
3
Solved
Why am I getting a warning from the "NullableProblems" inspection in IntelliJ on this:
public class Test implements Comparable<Test> {
@Override
public int compareTo(Test o) {
return 0;
...
Eclair asked 6/7, 2015 at 9:40
0
How can I tell ignore IDEA to ignore this warning permanently?
Module 'A' sources do not depend on module 'B' sources
Note:
Basically the warning is correct, because A does not use any source ...
Mooneye asked 20/9, 2016 at 8:39
1 Next >
© 2022 - 2024 — McMap. All rights reserved.