-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Oct 25, 2023
1 parent
50a0f94
commit 5dfa00c
Showing
6 changed files
with
438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2016 LinkedIn Corp. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element name="checkstyle" type="checkstyleType"/> | ||
<xs:complexType name="fileType"> | ||
<xs:sequence> | ||
<xs:element type="errorType" name="error" maxOccurs="unbounded" minOccurs="0"/> | ||
</xs:sequence> | ||
<xs:attribute type="xs:string" name="name" use="optional"/> | ||
</xs:complexType> | ||
<xs:complexType name="errorType"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute type="xs:string" name="line" use="optional"/> | ||
<xs:attribute type="xs:string" name="severity" use="optional"/> | ||
<xs:attribute type="xs:string" name="message" use="optional"/> | ||
<xs:attribute type="xs:string" name="source" use="optional"/> | ||
<xs:attribute type="xs:string" name="column" use="optional"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="checkstyleType"> | ||
<xs:sequence> | ||
<xs:element type="fileType" name="file" maxOccurs="unbounded" minOccurs="0"/> | ||
</xs:sequence> | ||
<xs:attribute type="xs:string" name="version"/> | ||
</xs:complexType> | ||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$id": "https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#issues", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": ["issue"] | ||
}, | ||
"check_name": { | ||
"type": "string" | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"categories": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string", | ||
"enum": [ | ||
"Bug Risk", | ||
"Clarity", | ||
"Compatibility", | ||
"Complexity", | ||
"Duplication", | ||
"Performance", | ||
"Security", | ||
"Style", | ||
"Unused Code" | ||
] | ||
} | ||
}, | ||
"location": { | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"type": "string" | ||
}, | ||
"lines": { | ||
"type": "object", | ||
"properties": { | ||
"begin": { | ||
"type": "number" | ||
}, | ||
"end": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"begin", | ||
"end" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"lines" | ||
] | ||
}, | ||
"remediation_points": { | ||
"type": "number" | ||
}, | ||
"content": { | ||
"type": "object", | ||
"properties": { | ||
"body": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"body" | ||
] | ||
}, | ||
"fingerprint": { | ||
"type": "string" | ||
}, | ||
"severity": { | ||
"type": "string", | ||
"enum": [ | ||
"info", | ||
"minor", | ||
"major", | ||
"critical" | ||
] | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"check_name", | ||
"description", | ||
"categories", | ||
"location" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
The MIT License (MIT) | ||
Copyright (c) 2014, Gregory Boissinot | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
--> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
||
<xs:element name="failure"> | ||
<xs:complexType mixed="true"> | ||
<xs:attribute name="type" type="xs:string" use="optional"/> | ||
<xs:attribute name="message" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="error"> | ||
<xs:complexType mixed="true"> | ||
<xs:attribute name="type" type="xs:string" use="optional"/> | ||
<xs:attribute name="message" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="skipped"> | ||
<xs:complexType mixed="true"> | ||
<xs:attribute name="type" type="xs:string" use="optional"/> | ||
<xs:attribute name="message" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="properties"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="property" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="property"> | ||
<xs:complexType> | ||
<xs:attribute name="name" type="xs:string" use="required"/> | ||
<xs:attribute name="value" type="xs:string" use="required"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="system-err" type="xs:string"/> | ||
<xs:element name="system-out" type="xs:string"/> | ||
|
||
<xs:element name="testcase"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="skipped"/> | ||
<xs:element ref="error"/> | ||
<xs:element ref="failure"/> | ||
<xs:element ref="system-out"/> | ||
<xs:element ref="system-err"/> | ||
</xs:choice> | ||
</xs:sequence> | ||
<xs:attribute name="name" type="xs:string" use="required"/> | ||
<xs:attribute name="assertions" type="xs:string" use="optional"/> | ||
<xs:attribute name="time" type="xs:string" use="optional"/> | ||
<xs:attribute name="timestamp" type="xs:string" use="optional"/> | ||
<xs:attribute name="classname" type="xs:string" use="optional"/> | ||
<xs:attribute name="status" type="xs:string" use="optional"/> | ||
<xs:attribute name="class" type="xs:string" use="optional"/> | ||
<xs:attribute name="file" type="xs:string" use="optional"/> | ||
<xs:attribute name="line" type="xs:string" use="optional"/> | ||
<xs:attribute name="log" type="xs:string" use="optional"/> | ||
<xs:attribute name="group" type="xs:string" use="optional"/> | ||
<xs:attribute name="url" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="testsuite"> | ||
<xs:complexType> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
<xs:element ref="testsuite"/> | ||
<xs:element ref="properties"/> | ||
<xs:element ref="testcase"/> | ||
<xs:element ref="system-out"/> | ||
<xs:element ref="system-err"/> | ||
</xs:choice> | ||
<xs:attribute name="name" type="xs:string" use="optional"/> | ||
<xs:attribute name="tests" type="xs:string" use="required"/> | ||
<xs:attribute name="failures" type="xs:string" use="optional"/> | ||
<xs:attribute name="errors" type="xs:string" use="optional"/> | ||
<xs:attribute name="time" type="xs:string" use="optional"/> | ||
<xs:attribute name="disabled" type="xs:string" use="optional"/> | ||
<xs:attribute name="skipped" type="xs:string" use="optional"/> | ||
<xs:attribute name="skips" type="xs:string" use="optional"/> | ||
<xs:attribute name="timestamp" type="xs:string" use="optional"/> | ||
<xs:attribute name="hostname" type="xs:string" use="optional"/> | ||
<xs:attribute name="id" type="xs:string" use="optional"/> | ||
<xs:attribute name="package" type="xs:string" use="optional"/> | ||
<xs:attribute name="assertions" type="xs:string" use="optional"/> | ||
<xs:attribute name="file" type="xs:string" use="optional"/> | ||
<xs:attribute name="skip" type="xs:string" use="optional"/> | ||
<xs:attribute name="log" type="xs:string" use="optional"/> | ||
<xs:attribute name="url" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="testsuites"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element ref="testsuite" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
<xs:attribute name="name" type="xs:string" use="optional"/> | ||
<xs:attribute name="time" type="xs:string" use="optional"/> | ||
<xs:attribute name="tests" type="xs:string" use="optional"/> | ||
<xs:attribute name="failures" type="xs:string" use="optional"/> | ||
<xs:attribute name="disabled" type="xs:string" use="optional"/> | ||
<xs:attribute name="errors" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"properties": { | ||
"files": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"appliedFixers": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name" | ||
] | ||
} | ||
}, | ||
"time": { | ||
"type": "object", | ||
"properties": { | ||
"total": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"total" | ||
] | ||
}, | ||
"memory": { | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"files", | ||
"time", | ||
"memory" | ||
] | ||
} |
Oops, something went wrong.