Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Propagation-Jaeger: Enforce strictNullChecks and noUnusedLocals #433

Conversation

mayurkale22
Copy link
Member

This is part of #348. 2 more packages to go, 20 done so far.

* null.
* @param value
*/
const isHex: ValidationFn = (value: string): boolean => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be a function declaration function isHex rather than an expression? Same for isNotAllZeros, isLength and compose below.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will handle this in separate PR.


it('should return null when header is undefined', () => {
// tslint:disable-next-line
const headers = {} as any;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you specify a type for headers here? Maybe an object whose keys are strings and values are string|undefined?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@mayurkale22 mayurkale22 force-pushed the enforce_strictNullcheck_jaeger_prop branch from cdaa308 to 3d8f43b Compare March 21, 2019 18:00
@codecov-io
Copy link

Codecov Report

Merging #433 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #433      +/-   ##
==========================================
+ Coverage   95.01%   95.03%   +0.02%     
==========================================
  Files         147      147              
  Lines        9545     9567      +22     
  Branches      679      680       +1     
==========================================
+ Hits         9069     9092      +23     
+ Misses        476      475       -1
Impacted Files Coverage Δ
test/test-jaeger-format.ts 96.61% <0%> (-3.39%) ⬇️
src/jaeger-format.ts 94.73% <0%> (+7.89%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04f1fee...3d8f43b. Read the comment docs.

@mayurkale22 mayurkale22 merged commit 2652f20 into census-instrumentation:master Mar 21, 2019
@mayurkale22 mayurkale22 deleted the enforce_strictNullcheck_jaeger_prop branch March 21, 2019 21:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants