Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.17 KB

PX1005.md

File metadata and controls

43 lines (32 loc) · 1.17 KB

PX1005

This document describes the PX1005 diagnostic.

Summary

Code Short Description Type Code Fix
PX1005 There is probably a typo in the view delegate name. Warning (ISV Level 3: Informational) Available

Diagnostic Description

The data view delegate must have the same name as the corresponding data view but with the first letter in a different case (uppercase or lowercase).

The code fix changes the name of the data view delegate so that it matches the data view name.

The diagnostic supports graphs and graph extensions.

Example of Code that Results in the Warning

public class LEPMaint : PXGraph<LEPMaint>
{
    public PXSelect<ListEntryPoint> Items;
  
    public IEnumerable itemss() // The PX1005 warning is displayed for this line.
    {
        yield break;
    }
}

Example of Code Fix

public class LEPMaint : PXGraph<LEPMaint>
{
    public PXSelect<ListEntryPoint> Items;
  
    public IEnumerable items()
    {
        yield break;
    }
}