babel / babel
Showing 1 of 2 files from the diff.

@@ -823,8 +823,10 @@
Loading
823 823
    const lastCommentLine = this._lastCommentLine;
824 824
    if (startLine > 0 && lastCommentLine > 0) {
825 825
      const offset = startLine - lastCommentLine;
826 -
      this.newline(offset || 1);
827 -
      return;
826 +
      if (offset >= 0) {
827 +
        this.newline(offset || 1);
828 +
        return;
829 +
      }
828 830
    }
829 831
830 832
    // don't add newlines at the beginning of the file
Files Coverage
codemods 96.92%
eslint 81.79%
packages 93.49%
Project Totals (495 files) 93.22%
1
coverage:
2
  parsers:
3
    javascript:
4
      enable_partials: yes
5
  status:
6
    project:
7
      default:
8
        target: "90%"
9
    patch:
10
      enabled: false
11
ignore:
12
  - packages/babel-types/src/*/generated/*
13
  - packages/babel-helpers/src/helpers/*
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading