-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from emanuel-braz/develop
Add filter by pattern feature
- Loading branch information
Showing
23 changed files
with
348 additions
and
57 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
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
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 @@ | ||
class*extends StatefulWidget* | ||
class*extends StatelessWidget* | ||
class GetConfig* |
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,7 @@ | ||
class AppErrorCodes { | ||
static int noError = 0; | ||
static int generalError = 1; | ||
static int commandCannotExecute = 126; | ||
static int commandNotFound = 127; | ||
static int fatalError = 128; | ||
} |
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,5 @@ | ||
extension ListExtension on List { | ||
Iterable<RegExp> mapRegex() => | ||
map((pattern) => '^${pattern.replaceAll('*', r'(.*)?')}\$') | ||
.map((pattern) => RegExp(pattern)); | ||
} |
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,37 @@ | ||
import 'package:args/args.dart'; | ||
|
||
/// Config entity | ||
class Config { | ||
final double percentage; | ||
final List<String> excludeSuffixes; | ||
final bool log; | ||
final String? packageName; | ||
final ArgResults? command; | ||
|
||
/// file name patterns | ||
List<RegExp> excludeFiles; | ||
|
||
/// file content patterns | ||
List<RegExp> excludeContents; | ||
|
||
// If should include untested files to report | ||
final bool includeUntestedFiles; | ||
|
||
/// [lcovGen] | ||
final String? lcovGen; | ||
|
||
/// [excludeContentsPath] | ||
final String? excludeContentsPath; | ||
|
||
Config( | ||
{required this.percentage, | ||
required this.excludeSuffixes, | ||
required this.includeUntestedFiles, | ||
required this.excludeFiles, | ||
required this.excludeContents, | ||
required this.log, | ||
this.packageName, | ||
this.command, | ||
this.lcovGen, | ||
this.excludeContentsPath}); | ||
} |
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
Oops, something went wrong.