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

Feat add codemod check to doctor package #870

Merged
merged 5 commits into from
Jun 29, 2021

Conversation

fyangstudio
Copy link
Collaborator

  • Remove codemod CLI usage.
  • Add codemod check and fix reports to scan.
    Result:
interface ICodemodReports {
  score: number;  // 根据可运行的 codemod severity 进行扣分,1 时 -2 分,2时 -5 分
  output: string; // 运行codemod 时控制台的输出,便于上层显示
  reports: Array<{
    transform: string; 
    title: string;  
    message: string;  
    severity: 0 | 1 | 2;  
    docs: string;  
    'npm-deprecate'?: string;
  }>  
}

Before apptools-lab/codemod#1

@fyangstudio fyangstudio changed the base branch from master to release/1.2.0 June 21, 2021 09:09
@codecov-commenter
Copy link

codecov-commenter commented Jun 29, 2021

Codecov Report

Merging #870 (8d71afa) into release/1.2.0 (f4b2258) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##           release/1.2.0     #870   +/-   ##
==============================================
  Coverage          57.14%   57.14%           
==============================================
  Files                  1        1           
  Lines                 70       70           
  Branches              15       18    +3     
==============================================
  Hits                  40       40           
  Misses                30       30           

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 f4b2258...8d71afa. Read the comment docs.

@fyangstudio fyangstudio merged commit abb096e into release/1.2.0 Jun 29, 2021
@fyangstudio fyangstudio deleted the feat-add-codemod-to-doctor branch June 29, 2021 07:28
@fyangstudio fyangstudio mentioned this pull request Jun 29, 2021
fyangstudio added a commit that referenced this pull request Jul 1, 2021
* feat: init (#878)

* feat: init (#876)

* feat: init (#871)

* feat: update (#883)

* Feat add codemod check to doctor package (#870)

* feat: update

* feat: update usage

* feat: update interface

* feat: update interface

* feat: update interface

* fix: component link (#884)

* fix: component link

* fix: import namespace

* fix: types

* chore: changelog

* Feat doctor extension add codemod (#873)

* feat: doctor

* fix: build error (#885)

* Fix: rax component docs not display (#887)

* fix: rax component docs not display

* fix: import name

Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
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