Skip to content

Commit

Permalink
sonar fixes - 2 (#450)
Browse files Browse the repository at this point in the history
fixing quality issues reported by sonar
  • Loading branch information
prabhuignoto authored Jan 9, 2024
1 parent 8f56f4d commit db6d980
Show file tree
Hide file tree
Showing 138 changed files with 531 additions and 531 deletions.
2 changes: 1 addition & 1 deletion coverage/.tmp/coverage-0.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"result":[{"scriptId":"1083","url":"file:///C:/Users/prabh/Github/react-chrono/src/test-setup.js","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":2277,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":2277,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1666","url":"file:///C:/Users/prabh/Github/react-chrono/src/components/effects/__tests__/useNewScrollPosition.test.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":24700,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":24700,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":427,"endOffset":565,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":1149,"endOffset":7446,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1232,"endOffset":1486,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1570,"endOffset":2081,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1776,"endOffset":1830,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1862,"endOffset":1925,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2023,"endOffset":2075,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2161,"endOffset":2524,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2299,"endOffset":2353,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2385,"endOffset":2448,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2479,"endOffset":2518,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2606,"endOffset":2956,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2664,"endOffset":2705,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2732,"endOffset":2795,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2826,"endOffset":2950,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3034,"endOffset":3340,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3164,"endOffset":3205,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3232,"endOffset":3295,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3435,"endOffset":3845,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3540,"endOffset":3594,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3626,"endOffset":3689,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3787,"endOffset":3839,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3939,"endOffset":4382,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4077,"endOffset":4131,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4163,"endOffset":4226,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4324,"endOffset":4376,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4468,"endOffset":4905,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4601,"endOffset":4642,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4669,"endOffset":4732,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4847,"endOffset":4899,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4991,"endOffset":5391,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5118,"endOffset":5159,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5186,"endOffset":5249,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5486,"endOffset":5896,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5591,"endOffset":5645,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5677,"endOffset":5740,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5838,"endOffset":5890,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5990,"endOffset":6433,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6128,"endOffset":6182,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6214,"endOffset":6277,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6375,"endOffset":6427,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6519,"endOffset":6956,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6652,"endOffset":6693,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6720,"endOffset":6783,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6898,"endOffset":6950,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7042,"endOffset":7442,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7169,"endOffset":7210,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7237,"endOffset":7300,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1703","url":"file:///C:/Users/prabh/Github/react-chrono/src/components/effects/useNewScrollPosition.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":9039,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":9039,"count":1}],"isBlockCoverage":true},{"functionName":"useNewScrollPosition","ranges":[{"startOffset":389,"endOffset":2345,"count":22}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":542,"endOffset":2243,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":548,"endOffset":2243,"count":12},{"startOffset":757,"endOffset":769,"count":6},{"startOffset":770,"endOffset":783,"count":6},{"startOffset":784,"endOffset":798,"count":6},{"startOffset":800,"endOffset":1424,"count":6},{"startOffset":959,"endOffset":985,"count":4},{"startOffset":1047,"endOffset":1072,"count":2},{"startOffset":1099,"endOffset":1126,"count":2},{"startOffset":1253,"endOffset":1274,"count":4},{"startOffset":1276,"endOffset":1315,"count":2},{"startOffset":1300,"endOffset":1315,"count":1},{"startOffset":1316,"endOffset":1357,"count":1},{"startOffset":1424,"endOffset":2237,"count":6},{"startOffset":1454,"endOffset":1488,"count":0},{"startOffset":1709,"endOffset":1737,"count":4},{"startOffset":1802,"endOffset":1827,"count":2},{"startOffset":1856,"endOffset":1886,"count":2},{"startOffset":1985,"endOffset":2006,"count":2},{"startOffset":2033,"endOffset":2073,"count":4},{"startOffset":2075,"endOffset":2152,"count":2},{"startOffset":2152,"endOffset":2219,"count":4},{"startOffset":2174,"endOffset":2219,"count":2}],"isBlockCoverage":true}]}]}
{"result":[{"scriptId":"1204","url":"file:///C:/Users/prabh/Github/react-chrono/src/test-setup.js","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":2277,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":2277,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1784","url":"file:///C:/Users/prabh/Github/react-chrono/src/components/effects/__tests__/useNewScrollPosition.test.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":24700,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":24700,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":427,"endOffset":565,"count":0}],"isBlockCoverage":false},{"functionName":"","ranges":[{"startOffset":1149,"endOffset":7446,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1232,"endOffset":1486,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1570,"endOffset":2081,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1776,"endOffset":1830,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":1862,"endOffset":1925,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2023,"endOffset":2075,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2161,"endOffset":2524,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2299,"endOffset":2353,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2385,"endOffset":2448,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2479,"endOffset":2518,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2606,"endOffset":2956,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2664,"endOffset":2705,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2732,"endOffset":2795,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":2826,"endOffset":2950,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3034,"endOffset":3340,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3164,"endOffset":3205,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3232,"endOffset":3295,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3435,"endOffset":3845,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3540,"endOffset":3594,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3626,"endOffset":3689,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3787,"endOffset":3839,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":3939,"endOffset":4382,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4077,"endOffset":4131,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4163,"endOffset":4226,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4324,"endOffset":4376,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4468,"endOffset":4905,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4601,"endOffset":4642,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4669,"endOffset":4732,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4847,"endOffset":4899,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":4991,"endOffset":5391,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5118,"endOffset":5159,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5186,"endOffset":5249,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5486,"endOffset":5896,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5591,"endOffset":5645,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5677,"endOffset":5740,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5838,"endOffset":5890,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":5990,"endOffset":6433,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6128,"endOffset":6182,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6214,"endOffset":6277,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6375,"endOffset":6427,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6519,"endOffset":6956,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6652,"endOffset":6693,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6720,"endOffset":6783,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":6898,"endOffset":6950,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7042,"endOffset":7442,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7169,"endOffset":7210,"count":2}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":7237,"endOffset":7300,"count":1}],"isBlockCoverage":true}]},{"scriptId":"1821","url":"file:///C:/Users/prabh/Github/react-chrono/src/components/effects/useNewScrollPosition.ts","functions":[{"functionName":"","ranges":[{"startOffset":0,"endOffset":9067,"count":1}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":13,"endOffset":9067,"count":1}],"isBlockCoverage":true},{"functionName":"useNewScrollPosition","ranges":[{"startOffset":389,"endOffset":2357,"count":22}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":545,"endOffset":2255,"count":12}],"isBlockCoverage":true},{"functionName":"","ranges":[{"startOffset":551,"endOffset":2255,"count":12},{"startOffset":760,"endOffset":772,"count":6},{"startOffset":773,"endOffset":786,"count":6},{"startOffset":787,"endOffset":801,"count":6},{"startOffset":803,"endOffset":1430,"count":6},{"startOffset":962,"endOffset":988,"count":4},{"startOffset":1050,"endOffset":1075,"count":2},{"startOffset":1102,"endOffset":1129,"count":2},{"startOffset":1256,"endOffset":1277,"count":4},{"startOffset":1279,"endOffset":1318,"count":2},{"startOffset":1303,"endOffset":1318,"count":1},{"startOffset":1319,"endOffset":1360,"count":1},{"startOffset":1430,"endOffset":2249,"count":6},{"startOffset":1460,"endOffset":1494,"count":0},{"startOffset":1715,"endOffset":1743,"count":4},{"startOffset":1808,"endOffset":1833,"count":2},{"startOffset":1862,"endOffset":1892,"count":2},{"startOffset":1991,"endOffset":2012,"count":2},{"startOffset":2039,"endOffset":2079,"count":4},{"startOffset":2081,"endOffset":2161,"count":2},{"startOffset":2161,"endOffset":2231,"count":4},{"startOffset":2183,"endOffset":2231,"count":2}],"isBlockCoverage":true}]}]}
2 changes: 1 addition & 1 deletion coverage/.tmp/coverage-1.json

Large diffs are not rendered by default.

Loading

1 comment on commit db6d980

@vercel
Copy link

@vercel vercel bot commented on db6d980 Jan 9, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.