Enter forum description here ...
0
Planned

False positive W521

Roland Bengtsson 10 years ago updated by Roman 10 years ago 1

Hi this trigger warning 521. But in else statement Result is set in the for-loop.


function TcxCustomGridRecord.GetLastParentRecordCount: Integer;

begin

if Level = 0 then

Result := 0

else

for Result := 0 to Level - 1 do

if not IsParentRecordLast[Result] then Break;

end;

0
Planned

False positive W521 for record results even though the record is being fully initialized

dummzeuch 10 years ago updated by Roman 10 years ago 1

type

TMatrix = array[0..2, 0..2] of Extended;


function TSomeObject.GetIdentity: TMatrix;

var
X, Y: Integer;
begin
for Y := 0 to 2 do
for X := 0 to 2 do
if X = Y then
Result[X, Y] := 1
else
Result[X, Y] := 0;
end;


I realize this is very difficult to fix.

0
Planned

Integrate FixInsight into the build process, to show up-to-date warnings each build

Anonymous 10 years ago updated by Nicholas Ring 10 years ago 3
How about making FI run whenever a project is compiled or built? That gives up-to-date results about the code, so debugging becomes much easier because it will show results for the code you're running now, not the code when you last ran FI yesterday, say.

FixInsight takes a long time to run, so I don't run it very often. But it's much shorter when it runs only on a few units. So, what about integrating into the compile / build stage, but only running FI on the units that have changed since last time it was run? That way, there are always up-to-date FI messages around, but the overall overhead is small.
0
Fixed

[Settings dialog] Wrong Caption

Uwe Schuster 9 years ago updated by Roman 9 years ago 1

The caption of the settings dialog is after splitting the menu items in Run and Settings still "Run FixInsight..." instead of something like "FixInsight Settings for foo.dproj".

0
Fixed

Different behavior of starting FixinsightCL and starting Fixinsight directly from Delphi

Kai Frentzel 9 years ago updated by Roman 9 years ago 5

When you start Fixinsight directly from Delphi, more units are searched as when you start FixInsightCL. Are there limitations regarding the number of files? Or search paths are not being used correctly?

0
Under review

It might be a good idea to warn when using Sleep(0)

dummzeuch 10 years ago updated by Roman 10 years ago 1
It might be a good idea to warn when using Sleep(0)


http://joeduffyblog.com/2006/08/22/priorityinduced-starvation-why-sleep1-is-better-than-sleep0-

and-the-windows-balance-set-manager/

0
Planned

The 2015.03 ficfg file format is not upward compatible to the 2015.04 format

Lübbe Onken 10 years ago updated by Roman 10 years ago 1
It took me a while to figure this out. We are using a standard .ficfg for our build system in which the conventions are turned off and the warnings are turned on in the globals section.
The conventions themselves were not turned off separately, so the file looked like this:
<?xml version="1.0" encoding="UTF-8"?>
<FixInsightSettings>
    <Rules>
        <Rule101 enabled="true">
            <Value>50</Value>
        </Rule101>
...
        <Rule519 enabled="true"/>
    </Rules>
    <General>
        <Conventions enabled="false"/>
        <Warnings enabled="true"/>
    </General>
</FixInsightSettings>
Fixinsight 2015.04 ignores the setting. All rules have to be enabled/disabled separately in the configuration.
I would have expected that a config file from an older version which is passed to FixInsight on the command line will lead to the same behaviour on the same and any newer version of FixInsight. If this cannot be the case (the files are incompatible). FixInsight should reject the configuration and error out instead of silently doing something different than before.

0
Searching answer

Can FixInsight handle concurrency?

Lübbe Onken 10 years ago updated 10 years ago 4

On our buildserver, which runs up to four build jobs in parallel, we recently had a few FixInsight failures with exit code 255. What does this exit code mean?

Is it possible that two (or more) instances of FixInsight running at the same time can get into each others way?

0
Completed

Make more use of the right-hand side of the dialog?

Anonymous 10 years ago updated by Roman 10 years ago 3
The right-hand side of the Run FixInsight dialog (the one with all the things to check for) is usually empty. It actually took me a while to realise sometimes there are settings there.

Can this be slightly more intuitive, eg having a 'Settings' heading and a label saying 'No settings' for most, and perhaps also showing the same documentation text you have on the website for each warning? It would be useful to select a warning and see a good description of exactly what it checks for.
0
Under review

Move Options/Settings to Tools -> Options...

Nicholas Ring 10 years ago updated 10 years ago 4

XE onwards has the ability to have 3rd party settings in Tools -> Options... It would be great if FixInsight should utilise this.


Information about this feature can be found here: http://stackoverflow.com/questions/11241068/how-to-add-my-own-items-in-the-delphi-options-dialog