Questions tagged [code-inspection]

261 questions
11
votes
2 answers

SonarLint doesn't see server binding

IntelliJ IDEA -> Settings -> Other settings -> SonarLint General Settings SonarQube servers: Localhost (http://localhost:9000; login: admin; password: admin; test connection - "Authentification successful") Update binding: few seconds…
Katoteshi Fuku
  • 123
  • 1
  • 1
  • 11
11
votes
1 answer

Inspect S4 methods

How can I view the definition of a S4 function? For instance, I would like to see the definition of TSconnect in package TSdbi. The command showMethods("TSconnect") reveals that there is, among others, a function for drv="histQuoteDriver",…
Karsten W.
  • 17,826
  • 11
  • 69
  • 103
10
votes
2 answers

Android Studio: Change inspection profile for one specific module in project

I have several modules in Android Studio project, and I would like to change inspections settings for one of these modules. More precise, I want to turn off all Android-related inspections in one module, but leave all general Java inspections in…
Lapshin Dmitry
  • 1,084
  • 9
  • 28
9
votes
2 answers

No warning at undefined variables in PyCharm Community 2017.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): return foo def do_work(self): …
Alex Tereshenkov
  • 3,340
  • 8
  • 36
  • 61
9
votes
5 answers

Inspecting code on a non-java IntelliJ IDEA project

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 Code) I get an error: The JDK is not configured…
Berto Yáñez
  • 1,041
  • 2
  • 8
  • 10
8
votes
2 answers

Python Object Inspector GUI

What I would like is a handy GUI to inspect objects. The dir() function just isn't enough sometimes! What would happen would I would type view_object(module) and it would give me a GUI window that has Features: - Tree-view representation, similar…
Garrett Berg
  • 2,585
  • 1
  • 22
  • 21
8
votes
1 answer

PhpStorm: Find usage of function that includes parameter

If I have a function like this:
Michael Arrison
  • 1,464
  • 2
  • 13
  • 22
8
votes
0 answers

Suppress Warning "Field May Be Final" for Serializable

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 serialization problems. Is there a possibility to automatically…
Sebastian
  • 5,721
  • 3
  • 43
  • 69
8
votes
0 answers

IDEA: how to handle "Module 'A' sources do not depend on module 'B' sources" warning

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 code of B But B contains some annotation processor…
TmTron
  • 17,012
  • 10
  • 94
  • 142
8
votes
3 answers

Prevent TeamCity reporting ReSharper Code Inspection Suggestions (and Hints) as Warnings?

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 that are set to fail if I get any inspection Errors or…
stephen
  • 1,200
  • 1
  • 13
  • 16
7
votes
2 answers

PyCharm warn: Closing tag matches nothing for

tag

After inspect code from my PyCharm. It warns me as Closing tag matches nothing at last

tag But I didn't find any wrong my code. p tag is closed correctly.

sungyong
  • 2,267
  • 8
  • 38
  • 66
7
votes
1 answer

How to stop this inspection: "Member has protected access, but class has magic method __get"?

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 want the properties remain marked with a different color…
Rodrigo Vieira
  • 312
  • 1
  • 4
  • 19
7
votes
1 answer

Is it a good practice to use the [Obsolete] attribute to instruct developers no to use parts of an API

Recently I have been writing some serializable object that also deals with specific logic and has specific life-cycle. In order for it to work properly, it has to be instantiated with an appropriate constructor, that takes mandatory arguments. For…
Ivaylo Slavov
  • 8,839
  • 12
  • 65
  • 108
6
votes
1 answer

PhpStorm - Disable SQL inspection for one line

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 (id, NAME, cache_id, compile_id, content) VALUES …
Ron
  • 22,128
  • 31
  • 108
  • 206
6
votes
2 answers

how to integrate TODO handling into the maven test phase?

suppose i have a project with lots of todos, some unintentionally left there, some no longer relevant, some represent future possible features etc. i know that most IDEs can show/filter/sort them, but im looking for a way to enforce a more strict…
radai
  • 23,949
  • 10
  • 71
  • 115
1
2
3
17 18