Skip to content

Commit

Permalink
refactor: get rule severity from metadata severity (#4687)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Dec 4, 2024
1 parent 55acffe commit 3c1c017
Show file tree
Hide file tree
Showing 19 changed files with 384 additions and 479 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/biome_cli/tests/snap_test.rs
expression: content
snapshot_kind: text
---
## `file.graphql`

Expand All @@ -10,25 +11,14 @@ query {
id
}
}
```

# Termination Message

```block
lint ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× Some errors were emitted while running checks.
```

# Emitted Messages

```block
file.graphql:2:10 lint/nursery/useDeprecatedReason ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× The directive `@deprecated` should have a `reason` argument.
i The directive `@deprecated` should have a `reason` argument.
1 │ query {
> 2 │ member @deprecated {
Expand All @@ -43,5 +33,4 @@ file.graphql:2:10 lint/nursery/useDeprecatedReason ━━━━━━━━━

```block
Checked 1 file in <TIME>. No fixes applied.
Found 1 error.
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/biome_cli/tests/snap_test.rs
expression: content
snapshot_kind: text
---
## `biome.json`

Expand Down Expand Up @@ -35,7 +36,7 @@ expression: content
```block
check.js:3:21 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! This global function name should be in camelCase or PascalCase or UPPERCASE.
i This global function name should be in camelCase or PascalCase or UPPERCASE.
2 │ export function NotSTrictPAscal(){}
> 3 │ export function CONSTANT_CASE(){}
Expand All @@ -47,5 +48,4 @@ check.js:3:21 lint/style/useNamingConvention ━━━━━━━━━━━

```block
Checked 1 file in <TIME>. No fixes applied.
Found 1 warning.
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/biome_cli/tests/snap_test.rs
expression: content
snapshot_kind: text
---
## `biome.json`

Expand All @@ -27,7 +28,7 @@ expression: content
```block
check.js:2:21 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! This global function name should be in camelCase or PascalCase or UPPERCASE.
i This global function name should be in camelCase or PascalCase or UPPERCASE.
> 2 │ export function CONSTANT_CASE(){}
│ ^^^^^^^^^^^^^
Expand All @@ -38,5 +39,4 @@ check.js:2:21 lint/style/useNamingConvention ━━━━━━━━━━━

```block
Checked 1 file in <TIME>. No fixes applied.
Found 1 warning.
```
2 changes: 1 addition & 1 deletion crates/biome_configuration/src/analyzer/assist/actions.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c1c017

Please sign in to comment.