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

chore(core): enable eslint/strict-boolean-expressions & strictNullChecks #1096

Conversation

danielpeintner
Copy link
Member

This PR addresses one checkmark in #1046.

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Attention: 72 lines in your changes are missing coverage. Please review.

Comparison is base (aae70f4) 75.52% compared to head (17cb5ce) 75.50%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1096      +/-   ##
==========================================
- Coverage   75.52%   75.50%   -0.02%     
==========================================
  Files          80       80              
  Lines       16167    16150      -17     
  Branches     1517     1517              
==========================================
- Hits        12210    12194      -16     
+ Misses       3918     3917       -1     
  Partials       39       39              
Files Coverage Δ
packages/core/src/codecs/json-codec.ts 90.76% <100.00%> (-0.54%) ⬇️
packages/core/src/codecs/text-codec.ts 63.54% <100.00%> (ø)
packages/core/src/content-serdes.ts 88.60% <100.00%> (ø)
packages/core/src/interaction-output.ts 89.91% <100.00%> (ø)
packages/core/src/protocol-listener-registry.ts 98.94% <100.00%> (ø)
packages/core/src/wot-impl.ts 78.57% <100.00%> (ø)
packages/core/src/helpers.ts 83.00% <66.66%> (ø)
packages/core/src/codecs/octetstream-codec.ts 68.18% <57.14%> (ø)
packages/core/src/codecs/netconf-codec.ts 22.14% <0.00%> (ø)
packages/core/src/exposed-thing.ts 67.15% <46.42%> (-0.49%) ⬇️
... and 2 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

/home/runner/work/node-wot/node-wot/packages/core/src/helpers.ts
Error:   256:50  error  Unexpected any value in conditional. An explicit comparison or type cast is required  @typescript-eslint/strict-boolean-expressions

Note: Locally I do not see this issue!?
Copy link
Member

@JKRhb JKRhb left a comment

Choose a reason for hiding this comment

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

Thank you, looks good to me already :) See a couple of mostly optional suggestions that further simplify a couple of lines below.

packages/core/src/consumed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/consumed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/codecs/json-codec.ts Outdated Show resolved Hide resolved
packages/core/src/exposed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/exposed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/exposed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/consumed-thing.ts Show resolved Hide resolved
packages/core/src/consumed-thing.ts Outdated Show resolved Hide resolved
packages/core/src/consumed-thing.ts Show resolved Hide resolved
packages/core/src/consumed-thing.ts Show resolved Hide resolved
@relu91
Copy link
Member

relu91 commented Sep 26, 2023

I was about to approve this, but there is a leftover comment from @JKRhb, to a quick glance I would commit it. Is that ok @danielpeintner?

@danielpeintner
Copy link
Member Author

I was about to approve this, but there is a leftover comment from @JKRhb, to a quick glance I would commit it. Is that ok @danielpeintner?

Sorry, I missed that.... I think it is fine now..

@relu91 relu91 merged commit 5265b46 into eclipse-thingweb:master Sep 27, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants