-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Rule: enforce-min-coverage-comments-sync (#277)
* initial updateCommentThreshold * on second thought it should be separate rule enforce-min-coverage-comments-sync * create not under meta * fix func name * introduce getMinCoverageDirectiveCommentNodeAndPercent * fix works!? TODO: how to revert test file after spec fixes it? * 4.5.0-pre0.1 * floor * remove comment if coverage above global threshold * add coverage-sync-* examples * add to codebases * Update format.spec.js.snap * handle expected fixes * no js ext on fixed examples so they won't be fixed themselves * percent is 33 apparently ok flow * version * remove leftover copypasta from enforce-min-coverage * 0.4 * address pr review comments
- Loading branch information
Showing
10 changed files
with
147 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
src/ | ||
flow-typed/ | ||
test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[options] | ||
esproposal.class_static_fields=enable | ||
esproposal.class_instance_fields=enable | ||
esproposal.export_star_as=enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @flow | ||
|
||
|
||
let x: number = 100; | ||
let x2: number = 100; | ||
let x3: number = 100; | ||
let x4; | ||
let x5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @flow | ||
/* eslint "flowtype-errors/enforce-min-coverage": [2, 30] */ | ||
|
||
let x: number = 100; | ||
let x2: number = 100; | ||
let x3: number = 100; | ||
let x4; | ||
let x5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[options] | ||
esproposal.class_static_fields=enable | ||
esproposal.class_instance_fields=enable | ||
esproposal.export_star_as=enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @flow | ||
/* eslint "flowtype-errors/enforce-min-coverage": [2, 33] */ | ||
|
||
let x: number = 100; | ||
let x2; | ||
let x3; | ||
let x4; | ||
let x5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// @flow | ||
/* eslint "flowtype-errors/enforce-min-coverage": [2, 5] */ | ||
|
||
let x: number = 100; | ||
let x2; | ||
let x3; | ||
let x4; | ||
let x5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters