-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes and enhancements for new release
- Loading branch information
Showing
6 changed files
with
155 additions
and
84 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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
ProjectPath = "/Users/home/" # Usualy ok to leave empty. If empty gets current working dir at runtime. | ||
FilterTargets = ["CoreTests"] # If a target name contains one of these substrings the target would be filtered. Empty string "" matches everything. Please note that if regex is used targets filtering has no effect. | ||
FilterPaths = ["Tests","UITests","Constants.swift"] # If a path contains one of these substrings the path (file, dir) would be filtered. Empty string "" matches everything. Please note that if regex is used path filtering has no effect. | ||
FilterPattern = "[\\S\\s]*secret\\.json$" # Go flavored regex (non-PCRE!). Please check https://golang.org/pkg/regexp/ for more info. When used in config escape characters should be escaped twice for config parsing (unfortunately). Please note that if regex is used targets filtering has no effect. | ||
InvertFilter = false # Set `false` to disallow targets and paths in filters. Set `true` to allow only targets and paths in filters. Default `false`. | ||
IncludeMasked = false # Skip recalculating coverage, just read from xccov report regardless masked (filtered) targets and paths. Default `false`. | ||
ZeroWarnOnly = false # Don't error on 0% coverage, produce warning only. | ||
MeterLOC = false # Set `false` for coverage percent and `true` for number of LOCs e.g. 42/13 (now/was). Default `false`. | ||
Tolerance = 5 # Percent. Default 0. | ||
ProjectPath = "/Users/home/" # Usualy ok to leave empty. If empty gets current working dir at runtime. | ||
FilterTargets = ["CoreTests"] # If a target name contains one of these substrings the target would be filtered. Empty string "" matches everything. Please note that if regex is used targets filtering has no effect. | ||
FilterPaths = ["Tests","UITests","Constants.swift"] # If a path contains one of these substrings the path (file, dir) would be filtered. Empty string "" matches everything. Please note that if regex is used path filtering has no effect. | ||
FilterWarnPaths = ["Project/Target/File.swift"] # If a path contains one of these substrings warnings would be muted for the path (file, dir). Coverage for the paths would still be metered. | ||
FilterPattern = "[\\S\\s]*secret\\.json$" # Go flavored regex (non-PCRE!). Please check https://golang.org/pkg/regexp/ for more info. When used in config escape characters should be escaped twice for config parsing (unfortunately). Please note that if regex is used `FilterTargets` and `FilterPaths` has no effect. | ||
InvertFilter = false # Set `false` to allow toggling every filter individually. Set `true` to force `true` to all filters. Default `false`. | ||
InvertTargetFilter = false # Set `false` to disallow targets in filter. Set `true` to allow only targets in filter. Default `false`. | ||
InvertPathFilter = false # Set `false` to disallow paths in filter. Set `true` to allow only paths in filter. Default `false`. | ||
InvertRegexp = false # Set `false` to disallow paths matching `FilterPattern`. Set `true` to allow only paths matching `FilterPattern`. Default `false`. | ||
InvertWarnpathFilter = false # Set `false` to mute warnings for paths in filter. Set `true` to allow only warnings for paths in filter. Default `false`. | ||
IncludeMasked = false # Skip recalculating coverage, just read from xccov report regardless masked (filtered) targets and paths. Default `false`. | ||
ZeroWarnOnly = false # Don't error on 0% coverage, produce warning only. | ||
MeterLOC = false # Set `false` for coverage percent and `true` for number of LOCs e.g. 42/13 (now/was). Default `false`. | ||
Tolerance = 5 # Percent. Default 0. |
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
- No breaking changes. New `ZeroWarnOnly` parameter added to config. Please check examples. | ||
- This release still only tested manually. Help wanted to cover with tests. | ||
### Fixed | ||
- File paths for warnings was always relative to working dir only. `ProjectPath` setting in config and `proj` flag was completely ignored. | ||
- Removed some code duplication. | ||
- Data race is cured by adding a wait group to wait for all file reports being processed. Sometimes looping through all the files was ended prior the last report is collected from channel leading to incomplete counts. No more. | ||
|
||
### Changed | ||
- Now warnings for functions coverage aren't shown per line, but instead are included in file coverage warnings. It still includes xccov messages with the line numbers. | ||
- New filter added to mute warnings for paths without excluding the path from coverage report. | ||
- Filters may be inverted individually with new flags and config settings. Please check readme and config example for usage. | ||
- No breaking changes were introduced. |
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