Skip to content

Commit

Permalink
Run cargo insta review
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykdm committed Sep 20, 2024
1 parent c1141c7 commit b7a1fe4
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,25 @@ check ━━━━━━━━━━━━━━━━━━━━━━━━

# Emitted Messages

```block
fix.js:1:1 lint/nursery/useExplicitFunctionReturnType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Missing return type on function.
> 1 │
> 2 │ function f() {arguments;}
│ ^^^^^^^^^^
3 │ const FOO = "FOO";
4 │ var x, y;
i Declaring the return type makes the code self-documenting and can speed up TypeScript type checking.
i Add a return type annotation.
```

```block
fix.js:2:14 lint/correctness/noUnusedVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down Expand Up @@ -151,5 +170,5 @@ fix.js format ━━━━━━━━━━━━━━━━━━━━━━
```block
Checked 1 file in <TIME>. No fixes applied.
Found 1 error.
Found 4 warnings.
Found 5 warnings.
```
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ expression: content

# Emitted Messages

```block
fix.js:1:1 lint/nursery/useExplicitFunctionReturnType ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Missing return type on function.
> 1 │
> 2 │ function f() {arguments;}
│ ^^^^^^^^^^
3 │ const FOO = "FOO";
4 │ var x, y;
i Declaring the return type makes the code self-documenting and can speed up TypeScript type checking.
i Add a return type annotation.
```

```block
fix.js:2:14 lint/correctness/noUnusedVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down Expand Up @@ -119,5 +138,5 @@ fix.js:4:12 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━

```block
Checked 1 file in <TIME>. No fixes applied.
Found 4 warnings.
Found 5 warnings.
```

0 comments on commit b7a1fe4

Please sign in to comment.