Skip to content

refactor(typescript-estree): correct warnings reported by sonarlint #100

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

Merged
merged 8 commits into from
Jan 22, 2019
Merged

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Jan 21, 2019

This PR fixes issues found in code by static code analysis by SonarLint.

@@ -11,11 +11,11 @@ import { convertTokens } from './node-utils';
import ts from 'typescript';
import { Extra } from './temp-types-based-on-js-source';

export default (
export default function astConverter (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its easier to profile named functions

@armano2
Copy link
Collaborator Author

armano2 commented Jan 21, 2019

Codecov doesn't like my change (even if it's just refactoring)

@j-f1

This comment has been minimized.

@JamesHenry

This comment has been minimized.

@armano2

This comment has been minimized.

@JamesHenry
Copy link
Member

@armano2 loggerFn is needed - prettier and some others use it

@armano2
Copy link
Collaborator Author

armano2 commented Jan 21, 2019

ohh, i used bad wording, there is no tests if it's actually working

@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #100 into master will increase coverage by 0.15%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   94.83%   94.99%   +0.15%     
==========================================
  Files          48       48              
  Lines        2480     2479       -1     
  Branches      381      381              
==========================================
+ Hits         2352     2355       +3     
+ Misses         77       75       -2     
+ Partials       51       49       -2
Impacted Files Coverage Δ
packages/typescript-estree/src/ast-converter.ts 100% <100%> (ø) ⬆️
packages/typescript-estree/src/convert.ts 94.59% <100%> (ø) ⬆️
packages/typescript-estree/src/parser.ts 81.9% <100%> (+3.6%) ⬆️

@JamesHenry JamesHenry merged commit 857cdc0 into typescript-eslint:master Jan 22, 2019
@armano2 armano2 deleted the code-smell branch January 22, 2019 00:09
armanio123 pushed a commit to armanio123/typescript-eslint that referenced this pull request Jan 24, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants