Skip to content

perf(chore): sonar fixes#847

Merged
samarpan-b merged 3 commits into
masterfrom
GH-845
Jun 23, 2022
Merged

perf(chore): sonar fixes#847
samarpan-b merged 3 commits into
masterfrom
GH-845

Conversation

@yeshamavani

@yeshamavani yeshamavani commented Jun 22, 2022

Copy link
Copy Markdown
Contributor

gh-845

Description

Fixing the overall sonar issues

Fixes #845

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Intermediate change (work in progress)
    How Has This Been Tested?

Checklist:

  • Performed a self-review of my own code
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Any dependent changes have been merged and published in downstream modules

import {inject} from '@loopback/core';
import {Request, RestBindings, get, ResponseObject} from '@loopback/rest';
import {CONTENT_TYPE, STATUS_CODE} from '@sourceloop/core';
import {CONTENT_TYPE, STATUS_CODE} from '@sourceloop/core'; //NOSONAR

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why nosonar here ?

};

it('return true if Feature Toggle is not set', async () => {
it(ftNotSet, async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not correct. why are we having 2 test cases with same description ? That cant be possible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

will remove this
also this files I am changing and writing new test cases as we have moved the decorator to package. can we ignore this for now ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

comment out or remove the incorrect test cases then

import {ContractRepository, OcrResultRepository} from '../repositories';
import {CreateClauseData} from '../types';

const clauseId = '/clauses/{id}';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

name it basePath

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

okay

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
6.9% 6.9% Duplication

@samarpan-b samarpan-b merged commit 910cf95 into master Jun 23, 2022
@samarpan-b samarpan-b deleted the GH-845 branch June 23, 2022 08:20
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.

Sonar is Red

2 participants