BusinessCentral.LinterCop
BusinessCentral.LinterCop copied to clipboard
LC0052 Wrong for Quotation Marks
We created a procedure in a table extension with the following syntax where I receive the warning "The internal method PTE-XXX-IsDeletable in TableExtension PTE-XXX Job (Access = Public) is declared but never used."
internal procedure "PTE-XXX-IsDeletable"(): Boolean
begin
exit(true);
end;
Maybe the procedure name isn't parsed correctly?
internal procedure "PTE-XXX-IsDeletable"(): Boolean
internal procedure IsDeletable(): Boolean
I've looked into this and the Code Analyser can see the right naming of the procedures.
But when we grab the Name of the object, both of them become the same string.
At the moment I have no idea howto handle the quotes on this 🤔
What do you think about a new rule: "procedure names should not contain quotation marks"?
I've found a solution for the Quotation Marks and the method and object now matches according their name.
What do you think about a new rule: "procedure names should not contain quotation marks"?
For me personally I'm not against having quotation marks in procedure names. Best to start a new discussion on this.
This should now be resolved in the release version of v0.30.25 of the LinterCop.