Questions tagged [code-inspection]
261 questions
-1
votes
1 answer
inspect.getargvalues returns keyword only args as args instead of varargs
How can it be explained that inspect.getargvalues returns keyword only args as args instead of varargs. Is this a bug or a documentation bug? Are keyword only args not keyword args? I don't understand.
inspect.getargvalues(frame)
Get information…

Wör Du Schnaffzig
- 988
- 5
- 23
-1
votes
1 answer
Why can I not check instance type after class cast exception?
Can anybody explain to me why the following block of code is highlighted as a mistake in Android Studio?
The IDE is saying elem instanceof SubtypeB is always false - is this just a mistake by the inspector or is this a real language detail I need…

Nick Cardoso
- 20,807
- 14
- 73
- 124
-2
votes
1 answer
How to inspect code on real mobile (Mobile debugging)
I want to inspect my code on mobile but there is no option on the mobile device to inspect code.

Someshver Thakur
- 162
- 1
- 11
-2
votes
1 answer
check ruby code for NoMethodError or NameError
Is there a way to check ruby code to prevent 'NoMethodError' or 'NameError'?
I tried some gems: rubocop, reek, roodi. Useful tools for ruby best practices but not for my need.
I use vim so a cli tool will be welcome.
Thanks

AVVD
- 19
- 3
-3
votes
2 answers
How to find PHP script (and line) that accessing database
I know there is a way to find php script that send spam from your server, but I have a different issue. I'm having issue with repeating php code that is sending tones of queries to database and I cannot pin point which code does that.
I'm not php…

Va_ni_tas
- 36
- 5
-3
votes
1 answer
PhpStorm Unexpected end of file
I have some problem with PhpStorm.
When I have part of query, it tells me, that I have unexpected end of file.
For example, in this code:
$data = [
['aaa', 'bbb', 'ccc'],
['ddd', 'eee', 'fff']
];
$query = "INSERT INTO some_table…

MatKus
- 56
- 11