Skip to content

Lint XSD files #5248

@Dosanyintolu1

Description

@Dosanyintolu1

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I use the VALIDATE_XML, I always get a successful build even with multiple errors in the file.

Expected Behavior

I expect error outputs when malformed xsd files are linted.

Super-Linter version

v6.0.0

Relevant log output

none

Steps To Reproduce

  1. Include the following in the xsd file:
<?xml version = "1.0" encoding = "UTF-8"?>
<!-- $Header: /cvsroot/ebxmlrr/ebxmlrr-spec/misc/3.0/schema/rim.xsd,v 1.20 2005/02/03 19:28:15 farrukh_najmi Exp $ -->
<schema targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" 
  xmlns="http://www.w3.org/2001/XMLSchema" 
  xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
  xmlns:xml="http://www.w3.org/XML/1998/names=
      <maxLength value="4"/>
  1. Push to github and run the action.
  2. Below is my output with the above xml in my xsd file.
    Screenshot 2024-02-08 at 5 48 26 PM

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    O: backlog 🤖Backlog, stale ignores this labelenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions