Skip to content

Integrate LFS in OrgCheck #602

@RubenHalman

Description

@RubenHalman

Hi @VinceFINET,

Hope you're still open to integrating Flow-Scanner (LFS) into OrgCheck—understand it's not a priority.
We can expose LFS as a separate static resource JS similar to how its used in Inspector Reloaded (maybe later replace with 2GP) for easy integration. I have prepared a draft PR to illustrate, however, I'd like to learn about OrgCheck's scoring; some logic overlaps with LFS (e.g., hard-coded IDs).

Overlapping issues:

The Pull Request:

  • 5 unique LFS rules replace OrgCheck Rules

    • InactiveFlow (100) → replaces Rule 35
    • ProcessBuilder (101) → replaces Rule 37
    • FlowDescription (102) → replaces Rules 38 + 53
    • APIVersion (103) → replaces Rules 4 + 39
    • UnsafeRunningContext (104) → replaces Rule 40
  • 21 brand new checks (IDs 105-125)

    • Performance: 105-107 (SOQL/DML/Actions in loops)
    • Security: 108-109 (Hardcoded IDs/URLs)
    • Reliability: 110-113 (Null handlers, fault paths, recursion, duplicates)
    • Code Quality: 114-115, 120-121, 123-124 (8 rules)
    • Maintainability: 116-119, 122, 125 (6 rules)

Direct benefits for OrgCheck:

  • ✅ Reduces maintenance of 5 rule implementations
  • ✅ Gain 20+ additional flow quality checks
  • ✅ Still keeps OrgCheck's unique dependency analysis

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions