diff --git a/src/content/docs/es/reference/reporters.mdx b/src/content/docs/es/reference/reporters.mdx index 6a419f378..a91b5e436 100644 --- a/src/content/docs/es/reference/reporters.mdx +++ b/src/content/docs/es/reference/reporters.mdx @@ -12,24 +12,29 @@ biome check --reporter=summary ``` ``` -Formatter ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to be formatted: -main.ts -index.ts - -Organize Imports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to have their imports sorted: -main.ts -index.ts - -Analyzer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -Some analyzer rules were triggered - -Rule Name Diagnostics -lint/suspicious/noImplicitAnyLet 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDebugger 20 (20 error(s), 0 warning(s), 0 info(s)) +reporter/parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files have parsing errors. + + - index.css + +reporter/format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files needs to be formatted. + + - index.css + - index.ts + - main.ts + +reporter/violations ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i Some lint rules or assist actions reported some violations. + + Rule Name Diagnostics + + lint/correctness/noUnknownFunction 14 (2 error(s), 12 warning(s), 0 info(s)) + lint/suspicious/noImplicitAnyLet 16 (12 error(s), 4 warning(s), 0 info(s)) + lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) + assist/source/organizeImports 2 (2 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noDebugger 8 (8 error(s), 0 warning(s), 0 info(s)) ``` ## JSON @@ -96,3 +101,107 @@ biome check --reporter=junit ``` + +## Checkstyle + +Utiliza este generador de informe para emitir diagnósticos que sigan el [formato Checkstyle](https://checkstyle.org/). + +```shell +biome check --reporter=checkstyle +``` + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + +## RDJSON + +Utiliza este generador de informe para emitir diagnósticos que sigan el [formato RDJSON](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format). + + +```shell +biome check --reporter=rdjson +``` + + +```json +{ + "source": { + "name": "Biome", + "url": "https://biomejs.dev" + }, + "diagnostics": [ + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 11, + "line": 0 + }, + "start": { + "column": 7, + "line": 0 + } + } + }, + "message": "This import is unused." + }, + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 10, + "line": 1 + }, + "start": { + "column": 9, + "line": 1 + } + } + }, + "message": "Several of these imports are unused." + } + ] +} +``` diff --git a/src/content/docs/fr/reference/reporters.mdx b/src/content/docs/fr/reference/reporters.mdx index 6651719c0..e8922849c 100644 --- a/src/content/docs/fr/reference/reporters.mdx +++ b/src/content/docs/fr/reference/reporters.mdx @@ -12,24 +12,29 @@ biome check --reporter=summary ``` ``` -Formatter ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to be formatted: -main.ts -index.ts - -Organize Imports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to have their imports sorted: -main.ts -index.ts - -Analyzer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -Some analyzer rules were triggered - -Rule Name Diagnostics -lint/suspicious/noImplicitAnyLet 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDebugger 20 (20 error(s), 0 warning(s), 0 info(s)) +reporter/parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files have parsing errors. + + - index.css + +reporter/format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files needs to be formatted. + + - index.css + - index.ts + - main.ts + +reporter/violations ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i Some lint rules or assist actions reported some violations. + + Rule Name Diagnostics + + lint/correctness/noUnknownFunction 14 (2 error(s), 12 warning(s), 0 info(s)) + lint/suspicious/noImplicitAnyLet 16 (12 error(s), 4 warning(s), 0 info(s)) + lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) + assist/source/organizeImports 2 (2 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noDebugger 8 (8 error(s), 0 warning(s), 0 info(s)) ``` ## JSON @@ -96,3 +101,107 @@ biome check --reporter=junit ``` + +## Checkstyle + +Utilisez cet outil de reporting pour générer des diagnostics au [format Checkstyle](https://checkstyle.org/). + +```shell +biome check --reporter=checkstyle +``` + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + +## RDJSON + +Utilisez cet outil de reporting pour générer des diagnostics au [format RDJSON](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format). + + +```shell +biome check --reporter=rdjson +``` + + +```json +{ + "source": { + "name": "Biome", + "url": "https://biomejs.dev" + }, + "diagnostics": [ + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 11, + "line": 0 + }, + "start": { + "column": 7, + "line": 0 + } + } + }, + "message": "This import is unused." + }, + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 10, + "line": 1 + }, + "start": { + "column": 9, + "line": 1 + } + } + }, + "message": "Several of these imports are unused." + } + ] +} +``` diff --git a/src/content/docs/ja/reference/reporters.mdx b/src/content/docs/ja/reference/reporters.mdx index 294f4e714..dcbf51430 100644 --- a/src/content/docs/ja/reference/reporters.mdx +++ b/src/content/docs/ja/reference/reporters.mdx @@ -12,24 +12,29 @@ biome check --reporter=summary ``` ``` -Formatter ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to be formatted: -main.ts -index.ts - -Organize Imports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to have their imports sorted: -main.ts -index.ts - -Analyzer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -Some analyzer rules were triggered - -Rule Name Diagnostics -lint/suspicious/noImplicitAnyLet 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDebugger 20 (20 error(s), 0 warning(s), 0 info(s)) +reporter/parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files have parsing errors. + + - index.css + +reporter/format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files needs to be formatted. + + - index.css + - index.ts + - main.ts + +reporter/violations ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i Some lint rules or assist actions reported some violations. + + Rule Name Diagnostics + + lint/correctness/noUnknownFunction 14 (2 error(s), 12 warning(s), 0 info(s)) + lint/suspicious/noImplicitAnyLet 16 (12 error(s), 4 warning(s), 0 info(s)) + lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) + assist/source/organizeImports 2 (2 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noDebugger 8 (8 error(s), 0 warning(s), 0 info(s)) ``` ## JSON @@ -96,3 +101,107 @@ biome check --reporter=junit ``` + +## Checkstyle + +[Checkstyle形式](https://checkstyle.org/)に従った診断結果を出力するにはこのリポータを利用してください。 + +```shell +biome check --reporter=checkstyle +``` + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + +## RDJSON + +[RDJSON形式](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format)に従った診断結果を出力するにはこのリポータを利用してください。 + + +```shell +biome check --reporter=rdjson +``` + + +```json +{ + "source": { + "name": "Biome", + "url": "https://biomejs.dev" + }, + "diagnostics": [ + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 11, + "line": 0 + }, + "start": { + "column": 7, + "line": 0 + } + } + }, + "message": "This import is unused." + }, + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 10, + "line": 1 + }, + "start": { + "column": 9, + "line": 1 + } + } + }, + "message": "Several of these imports are unused." + } + ] +} +``` diff --git a/src/content/docs/reference/reporters.mdx b/src/content/docs/reference/reporters.mdx index e980aad8e..6c78ce38b 100644 --- a/src/content/docs/reference/reporters.mdx +++ b/src/content/docs/reference/reporters.mdx @@ -101,3 +101,107 @@ biome check --reporter=junit ``` + +## Checkstyle + +Use this reporter to emit diagnostics that follow tine [Checkstyle format](https://checkstyle.org/). + +```shell +biome check --reporter=checkstyle +``` + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + +## RDJSON + +Use this reporter to emit diagnostics that follow the [RDJSON format](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format). + + +```shell +biome check --reporter=rdjson +``` + + +```json +{ + "source": { + "name": "Biome", + "url": "https://biomejs.dev" + }, + "diagnostics": [ + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 11, + "line": 0 + }, + "start": { + "column": 7, + "line": 0 + } + } + }, + "message": "This import is unused." + }, + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 10, + "line": 1 + }, + "start": { + "column": 9, + "line": 1 + } + } + }, + "message": "Several of these imports are unused." + } + ] +} +``` diff --git a/src/content/docs/zh-CN/reference/reporters.mdx b/src/content/docs/zh-CN/reference/reporters.mdx index 3bf1ea961..ad6d44de9 100644 --- a/src/content/docs/zh-CN/reference/reporters.mdx +++ b/src/content/docs/zh-CN/reference/reporters.mdx @@ -12,24 +12,29 @@ biome check --reporter=summary ``` ``` -Formatter ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to be formatted: -main.ts -index.ts - -Organize Imports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -The following files needs to have their imports sorted: -main.ts -index.ts - -Analyzer ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -Some analyzer rules were triggered - -Rule Name Diagnostics -lint/suspicious/noImplicitAnyLet 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) -lint/suspicious/noDebugger 20 (20 error(s), 0 warning(s), 0 info(s)) +reporter/parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files have parsing errors. + + - index.css + +reporter/format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i The following files needs to be formatted. + + - index.css + - index.ts + - main.ts + +reporter/violations ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + i Some lint rules or assist actions reported some violations. + + Rule Name Diagnostics + + lint/correctness/noUnknownFunction 14 (2 error(s), 12 warning(s), 0 info(s)) + lint/suspicious/noImplicitAnyLet 16 (12 error(s), 4 warning(s), 0 info(s)) + lint/suspicious/noDoubleEquals 8 (8 error(s), 0 warning(s), 0 info(s)) + assist/source/organizeImports 2 (2 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noRedeclare 12 (12 error(s), 0 warning(s), 0 info(s)) + lint/suspicious/noDebugger 8 (8 error(s), 0 warning(s), 0 info(s)) ``` ## JSON @@ -96,3 +101,107 @@ biome check --reporter=junit ``` + +## Checkstyle + +使用此 reporter 来发出遵循 [Checkstyle 格式](https://checkstyle.org/)的诊断信息。 + +```shell +biome check --reporter=checkstyle +``` + +```xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + +## RDJSON + +使用此 reporter 来发出遵循 [RDJSON 格式](https://deepwiki.com/reviewdog/reviewdog/3.2-reviewdog-diagnostic-format)的诊断信息。 + + +```shell +biome check --reporter=rdjson +``` + + +```json +{ + "source": { + "name": "Biome", + "url": "https://biomejs.dev" + }, + "diagnostics": [ + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 11, + "line": 0 + }, + "start": { + "column": 7, + "line": 0 + } + } + }, + "message": "This import is unused." + }, + { + "code": { + "url": "https://biomejs.dev/linter/rules/no-unused-imports", + "value": "lint/correctness/noUnusedImports" + }, + "location": { + "path": "index.ts", + "range": { + "end": { + "column": 10, + "line": 1 + }, + "start": { + "column": 9, + "line": 1 + } + } + }, + "message": "Several of these imports are unused." + } + ] +} +```