Skip to content

wheels validate incorrectly reports Model.cfc as invalid model #2491

Description

@zainforbjs

Describe the bug
Running:
wheels validatereports an error for the default Model.cfc file:

Validation found 1 issue(s):
  [ERROR] Model.cfc — Model.cfc does not extend Model

However, the default generated Model.cfc already correctly extends wheels.Model. Current Model.cfc

/**
 * This is the parent model file that all your models should extend.
 * You can add functions to this file to make them available in all your models.
 * Do not delete this file.
 */
component extends="wheels.Model" {
}

To Reproduce
Steps to reproduce the behavior:

  1. Create a fresh Wheels application
  2. Run:
    wheels validate
    
  3. Observe validation error for Model.cfc

Expected behavior
One of the following should happen:

Option 1 (preferred)

Model.cfc should be excluded from this validation entirely since it is the framework base model.

Option 2

If validated, the file should pass validation because:

component extends="wheels.Model"

is valid and intentional.

Actual behavior
The validator reports:

Model.cfc does not extend Model

even though it extends:

wheels.Model

Desktop

  • OS: Any

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