Questions tagged [code-inspection]

261 questions
0
votes
1 answer

Highlighting level low with high level inspections

It there possible to have : a low level highlightning inspections for working with editor BUT launch inspections manually with high level(lot of rules inspections activate) It seems that this 2 functionnality are linked. So low hightlighting…
miltone
  • 4,416
  • 11
  • 42
  • 76
0
votes
0 answers

PhpStorm default code inspection setting

PhpStorm is really good at inspecting code errors and warnings but sometimes we does not like warnings popped up we only interested in code errors. I tried to find global settings for code inspection in IDE but could not find any related option. I…
0
votes
2 answers

Inspection of 'Regexp.union'

Regexp.union returns the following inspection: Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/ What does ?-mix: mean?
Daniel Viglione
  • 8,014
  • 9
  • 67
  • 101
0
votes
1 answer

How to revert a module dependency exclusion in Intellij (after code inspection false positive)

I ran the intelliJ code inspection and it gave me a "Unnecessary module dependency". I "fixed it" but indeed it was a false positive. So I clicked to "fix it" and it removed the dependency of my test-folder from the source-folder, however now all my…
Stefano.Maffullo
  • 801
  • 8
  • 21
0
votes
1 answer

Validate input and prevent code injection

I have a general software security question. I have an application. This application can receive a file as an input and write it to the disk. This file is a text file and i want to make sure the user is not trying to write a script that will be…
yanger
  • 227
  • 1
  • 3
  • 14
0
votes
0 answers

ReSharper Code Inspection not working

When I open a Code Behind file with F7 in Visual Studio (it's a Form), ReSharper's Code Inspection is not working. To get any information about errors I have to reenable the VS C# coding errors. Are Code Behind files excluded from analysis? Thx Tim
Tim
  • 23
  • 4
0
votes
1 answer

Couple of questions regarding Nant

I'm wondering about a couple of things about Nant: Can I test an execution of an .exe by using a nant script and then have it terminate immediately afterwards. Should maybe clarify that this is a form application that needs to be verified that it…
Siemsen
  • 199
  • 1
  • 3
  • 13
0
votes
1 answer

Different inspection behavior between two IDEA projects

I'm having a strange issue with inspections in a project that I created only a few days ago in IDEA 2016.3.3, which I upgraded to 2016.3.5 when I encountered this issue. The problem persists in the older project even after invalidating caches and…
0
votes
0 answers

How do I fix this type mismatch lint error on Android Studio?

The annotation doesn't say clearly what to do to solve the problem: Name protected method void onMeasure(int widthMeasureSpec, int heightMeasureSpec) Problem synopsis Value must be ≥ 0 and ≤ 1073741823 This is the code that lint complaining…
rraallvv
  • 2,875
  • 6
  • 30
  • 67
0
votes
1 answer

Stylecop for InstallShield project

I need to make sure that InstallShield has only allowed settings. I would like to run this check on CI server. In other words in Component table I would like to check Attributes fields has only allowed values(8, 1)
0
votes
0 answers

Jetbrains Structural Search - Matching Constants

I'm using Android Studio and I'm trying to create an inspection for myself to match all instances of a View.INVISIBLE - View is a class and INVISIBLE is a constant. If I have View.INVISIBLE in my structural search query it doesn't find instances of…
0
votes
0 answers

Inspection for unnecessary repeated getters; and setter followed by getter

There is several good practice issues IntelliJ help us, for instance, replacing for (o : a) {...} by forEach with lambda, indicating unnecessary variables or simplifying operations... But there is something really bothers me: doing consecutives…
Tiago Pimenta
  • 736
  • 7
  • 20
0
votes
2 answers

formal process for troubleshooting CSS issues in IE

Is there a way to see margin/padding/block boundaries in Internet Explorer code inspector, as Chrome has? Troubleshooting a discrepancy in display between Chrome and IE is not easy when IE provides no visual aids in the view port when selecting…
Steve
  • 2,066
  • 13
  • 60
  • 115
0
votes
0 answers

TeamCity IntelliJ Inspections - Include Files in Inspection Scope

Question: How can I get TeamCity to run inspections against the 3 html files in the www root directory? I'm working on a node.js project. The team are all using JetBrains IDEA based IDEs. We have shared our Inspection Profile and a Scope for them to…
0
votes
1 answer

IntelliJ inspection settings file missing

I can't find the file where my inspections settings are stored. I looked in ~/.IntelliJIdea15/config/inspection but the only file there is Default.xml with the content