Enter forum description here ...
+2
Thanks

thanks for the update,,,, awesome product!

Anonymous 10 years ago updated by Roman 10 years ago 1
awesome product!
Answer
Roman 10 years ago
Thank you :)
+2

[C108] "Nested With ..." does not detect some cases

Lübbe Onken 9 years ago updated 9 years ago 2

As I was playing around with C108, I came across the following code snippet, where FixInsight 2015.11upd2 does not detect the nested with statements.


program Project4;
{$APPTYPE CONSOLE}
{$R *.res}
type
  TA = class
    NA: string;
  end;
  TB = class
    NB: String;
  end;

var
  A: TA;
  B: TB;
begin
  A := TA.Create;
  B := TB.Create;

  with A, B do <-- would expect a C108 warning here. I consider this a "nested with" too
    WriteLn(NA, NB); 

  with A do
    with B do <-- would expect a C108 warning here
      WriteLn(NA, NB);

end.

Maybe it's fixed in a later version, but upd6 throws some false positives, which is why I won't roll it out in our company yet.

+2

Fatal parser error (Synapse Internet Library)

Anonymous 10 years ago 0
[FixInsight Internal] synsock.pas(85): Fatal parser error

FixInsight break parsing on this unit from Synapse Library
+2

False Positive warning to "O801"

Balázs Szakály 10 years ago updated by Lübbe Onken 10 years ago 1

procedure ProcB(var AText: string);

begin

AText := AText + AText;

end;


procedure ProcA(A: string); <-- False positive warning. Cannot declare const, because i pass to ProcB as var param!

begin

ProcB(A); <- var parameter!!!

...

...

end;

+1

warn about unused function

Anonymous 9 years ago 0
+1

[W525] False positive with several constructors

Anton Shchyrov 9 years ago 0
TTest = class
  constructor Create;
  constructor Create2;
end;

constructor TTest.Create;
begin
  inherited Create;
end;

constructor TTest.Create2;  // W525 Missing INHERITED call in constructor 
begin
  Create;
end;
+1

Suggestion [Wxxx] "Format parameters have wrong type"

Lübbe Onken 9 years ago 0

As followup to: http://fixinsight.userecho.com/topics/132-w513-false-positives-with-numbered-parameters/


Would it be possible for you to check the parameter types for compatibility? Because errors there will crash the applicaton at runtime. Taking into account numbered parameters of course :)


Something like:

var
  iError: integer;
  sError: string;
begin
  Format('Code %s [%d]', [sError, iError]);
  Format('Code %d [%d]', [iError, sError]); <-- Wxxx Parameter data type doesn't match placeholder
  Format('Code %s [%0:d]', [sError, iError]); <-- Wxxx Parameter data type doesn't match placeholder
end;
+1

add an option to find all //FI comments that are no longer necessary

dummzeuch 9 years ago 0

Since every new version of FixInsight fixes some false positives which we previously had to disabled using a //FI:<warning-code>, these comments now become obsolete and clutter the code. Please either add an option or maybe even always add a message about such unnecessary comments.

(I think an option would be better, sometimes I only want to see new warnings, and don't care about obsolete //FI comments.)

+1

Alt-Tab should bring the IDE window back while FixInsight is running

il2 9 years ago 0

Currently with running FixInsight IDE window is not available to return to via Alt-Tab.

I mean not to return to work with the IDE, but just to check the progress of FixInsight.

FixInsight Settings window while modal doesn't block Alt-Tab behavior.

+1
Fixed

[W528] False positive when using for.. in

Lübbe Onken 10 years ago updated by Roman 9 years ago 3

The following section of code results in a false positive W528 "Variable 'StopChar' not used in FOR-loop". This is not a complete and tried example, just an extract from the routine.

FixInsight 2015.10.


TempIndex := NewLineIndex;
for StopChar in StopChars do
    if Self.FBufferedData[TempIndex] <> StopChar then
        Break
    else
        Inc(TempIndex);