Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Tracetest Linter 馃悪 (#2547)
* feature: The Dream 馃挏 * feature(openapi): adding specs for linterns * updating types for lintern * updating types for lintern * adding lintern resource logic * feature(cli): fixing UI type * add runner structure * add rule to check if there are missing required attributes * add test to required attributes rule * registering lintern resource on app * registering lintern resource on app * feat(frontend): add linter settings page * adding lintern runner logic * registering lintern resource on app * feat(frontend): add LintResult component in test run page * first working version * fix(frontend): fix rule results * add not empty attribute rule * feat(frontend): add LinterResults component styles * add rule to validate attribute names * remove anonymous variables * rename files * add kind to span and add span naming rule * registering rules * finishing required attrs rule * feat(frontend): add dag lint icon and result click * feat(frontend): add linter loading component * adding common and security plugins * feat(frontend): add dag lint errors component * UI cleanup * UI cleanup * fix(frontend): fix styles and linter settings * feat(frontend): add octolint footer * fixing unit tests * fixing unit tests * fixing annoying typo * fixing e2e tests * cleanup changes * tracetest linter UX mvp improvements * tracetest linter UX mvp improvements * PR comments and beta badge --------- Co-authored-by: Matheus Nogueira <matheus.nogueira2008@gmail.com> Co-authored-by: Jorge Padilla <jorge.esteban.padilla@gmail.com>
- Loading branch information
1 parent
94266f6
commit a5de528
Showing
104 changed files
with
6,252 additions
and
70 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,102 @@ | ||
openapi: 3.0.0 | ||
components: | ||
schemas: | ||
LinterResourceList: | ||
type: object | ||
properties: | ||
items: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/LinterResource" | ||
LinterResource: | ||
type: object | ||
properties: | ||
type: | ||
type: string | ||
enum: | ||
- Linter | ||
spec: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
name: | ||
type: string | ||
enabled: | ||
type: boolean | ||
minimumScore: | ||
type: integer | ||
plugins: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/LinterResourcePlugin" | ||
LinterResourcePlugin: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
enabled: | ||
type: boolean | ||
required: | ||
type: boolean | ||
LinterResult: | ||
type: object | ||
properties: | ||
passed: | ||
type: boolean | ||
score: | ||
type: integer | ||
plugins: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/LinterResultPlugin" | ||
LinterResultPlugin: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: | ||
type: string | ||
passed: | ||
type: boolean | ||
score: | ||
type: integer | ||
rules: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/LinterResultPluginRule" | ||
LinterResultPluginRule: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: | ||
type: string | ||
passed: | ||
type: boolean | ||
weight: | ||
type: integer | ||
tips: | ||
type: array | ||
items: | ||
type: string | ||
results: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/LinterResultPluginRuleResult" | ||
LinterResultPluginRuleResult: | ||
type: object | ||
properties: | ||
spanId: | ||
type: string | ||
errors: | ||
type: array | ||
items: | ||
type: string | ||
passed: | ||
type: boolean | ||
severity: | ||
type: string | ||
enum: | ||
- error | ||
- warning |
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
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
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
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
Oops, something went wrong.