Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: lint vitest #2098

Merged
merged 6 commits into from
May 9, 2023
Merged

test: lint vitest #2098

merged 6 commits into from
May 9, 2023

Conversation

Shinigami92
Copy link
Member

@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #2098 (d23101c) into next (1c9043b) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2098      +/-   ##
==========================================
- Coverage   99.59%   99.59%   -0.01%     
==========================================
  Files        2605     2605              
  Lines      244951   244951              
  Branches     1150     1145       -5     
==========================================
- Hits       243969   243957      -12     
- Misses        955      967      +12     
  Partials       27       27              

see 1 file with indirect coverage changes

@Shinigami92
Copy link
Member Author

I think this is a good start

But there are more rules to explore later in future PRs like

test/all_functional.spec.ts Show resolved Hide resolved
test/helpers.spec.ts Outdated Show resolved Hide resolved
test/vehicle.spec.ts Show resolved Hide resolved
@Shinigami92 Shinigami92 force-pushed the lint-vitest branch 2 times, most recently from 0be742b to 9207892 Compare May 4, 2023 08:17
@Shinigami92 Shinigami92 marked this pull request as ready for review May 6, 2023 14:33
@Shinigami92 Shinigami92 requested a review from a team as a code owner May 6, 2023 14:33
Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please set the lint level to error. Since there is no point in just warning about errors and then ignoring them.

.eslintrc.js Show resolved Hide resolved
.eslintrc.js Show resolved Hide resolved
@Shinigami92
Copy link
Member Author

Please set the lint level to error. Since there is no point in just warning about errors and then ignoring them.

you might have read something different
there is no 'warn'?!
please point me where you have read that

@ST-DDT
Copy link
Member

ST-DDT commented May 6, 2023

You haven't done explicitly here, but implicitly (or there is a config error somewhere).

As per #1431 we decided to use error for lint rules to prevent accidentally adding warnings, that don't get fixed.

To prevent cases like these that "pollute" the build logs.

grafik

(If it is important, then it should be fixed. If it isn't important, why clutter the logs with warnings.)

I don't care whether we explicitly configure them to error or consider warnings to be errors in CI.
For preflight it might be best, if we fail in the same cases as the CI/when there are warnings.

@Shinigami92
Copy link
Member Author

You haven't done explicitly here, but implicitly (or there is a config error somewhere).

As per #1431 we decided to use error for lint rules to prevent accidentally adding warnings, that don't get fixed.

To prevent cases like these that "pollute" the build logs.

grafik

(If it is important, then it should be fixed. If it isn't important, why clutter the logs with warnings.)

I don't care whether we explicitly configure them to error or consider warnings to be errors in CI. For preflight it might be best, if we fail in the same cases as the CI/when there are warnings.

The issue is now open and requested at upstream

@Shinigami92 Shinigami92 requested review from ST-DDT and a team May 7, 2023 12:44
ST-DDT
ST-DDT previously approved these changes May 7, 2023
@ST-DDT ST-DDT requested a review from a team May 7, 2023 13:06
@ST-DDT ST-DDT added the s: accepted Accepted feature / Confirmed bug label May 7, 2023
test/finance.spec.ts Show resolved Hide resolved
test/helpers.spec.ts Outdated Show resolved Hide resolved
test/datatype.spec.ts Outdated Show resolved Hide resolved
@Shinigami92
Copy link
Member Author

will rebase after the dep updates

ST-DDT
ST-DDT previously approved these changes May 8, 2023
@Shinigami92 Shinigami92 dismissed stale reviews from ST-DDT and xDivisionByZerox via d23101c May 8, 2023 12:39
@Shinigami92 Shinigami92 requested review from xDivisionByZerox, ST-DDT and a team May 8, 2023 12:39
@ST-DDT ST-DDT requested a review from a team May 8, 2023 13:34
@ST-DDT ST-DDT requested a review from a team May 8, 2023 19:39
@Shinigami92 Shinigami92 merged commit aab69c9 into next May 9, 2023
@Shinigami92 Shinigami92 deleted the lint-vitest branch May 9, 2023 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: test p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants