|
| 1 | +# (mandatory) |
| 2 | +# Path to coverage profile file (output of `go test -coverprofile` command). |
| 3 | +# |
| 4 | +# For cases where there are many coverage profiles, such as when running |
| 5 | +# unit tests and integration tests separately, you can combine all those |
| 6 | +# profiles into one. In this case, the profile should have a comma-separated list |
| 7 | +# of profile files, e.g., 'cover_unit.out,cover_integration.out'. |
| 8 | +profile: cover.out |
| 9 | + |
| 10 | +# (optional; but recommended to set) |
| 11 | +# When specified reported file paths will not contain local prefix in the output. |
| 12 | +local-prefix: "github.com/macadmins/osquery-extension" |
| 13 | + |
| 14 | +# Holds coverage thresholds percentages, values should be in range [0-100]. |
| 15 | +threshold: |
| 16 | + # (optional; default 0) |
| 17 | + # Minimum coverage percentage required for individual files. |
| 18 | + file: 40 |
| 19 | + |
| 20 | + # (optional; default 0) |
| 21 | + # Minimum coverage percentage required for each package. |
| 22 | + package: 40 |
| 23 | + |
| 24 | + # (optional; default 0) |
| 25 | + # Minimum overall project coverage percentage required. |
| 26 | + total: 40 |
| 27 | + |
| 28 | +# Holds regexp rules which will override thresholds for matched files or packages |
| 29 | +# using their paths. |
| 30 | +# |
| 31 | +# First rule from this list that matches file or package is going to apply |
| 32 | +# new threshold to it. If project has multiple rules that match same path, |
| 33 | +# override rules should be listed in order from specific to more general rules. |
| 34 | +override: |
| 35 | + - path: tables/filevaultusers/filevaultusers.go |
| 36 | + threshold: 36 |
| 37 | + - path: tables/macos_profiles/macos_profiles.go |
| 38 | + threshold: 36 |
| 39 | + - path: tables/sofa/sofa_cves.go |
| 40 | + threshold: 26 |
| 41 | + - path: ^tables/macos_profiles$ |
| 42 | + threshold: 36 |
| 43 | + - path: ^tables/filevaultusers$ |
| 44 | + threshold: 36 |
| 45 | + - path: ^tables/mdm$ |
| 46 | + threshold: 38 |
| 47 | + - path: tables/mdm/mdm.go |
| 48 | + threshold: 38 |
| 49 | +# Holds regexp rules which will exclude matched files or packages |
| 50 | +# from coverage statistics. |
| 51 | +exclude: |
| 52 | + # Exclude files or packages matching their paths |
| 53 | + paths: |
| 54 | + - main.go |
| 55 | + - pkg/utils/exec.go |
| 56 | + - tables/fileline/file_line.go |
| 57 | + - tables/unifiedlog/unified_log.go |
| 58 | + - ^tables/networkquality$ |
| 59 | + - ^tables/unifiedlog$ |
| 60 | + - ^tables/puppet$ |
| 61 | + - ^tables/unifiedlog$ |
| 62 | + - ^tables/pendingappleupdates$ |
| 63 | + - ^tables/fileline$ |
| 64 | + - tables/unifiedlog/unified_log.go |
| 65 | + - tables/networkquality/networkquality.go |
| 66 | + - tables/pendingappleupdates/pendingappleupdates.go |
| 67 | + - tables/puppet/puppet_facts.go |
| 68 | + - tables/puppet/puppet_info.go |
| 69 | + - tables/puppet/puppet_logs.go |
| 70 | + - tables/puppet/puppet_state.go |
| 71 | + - tables/puppet/yaml.go |
| 72 | + # - \.pb\.go$ # excludes all protobuf generated files |
| 73 | + # - ^pkg/bar # exclude package `pkg/bar` |
| 74 | + |
| 75 | +# File name of go-test-coverage breakdown file, which can be used to |
| 76 | +# analyze coverage difference. |
| 77 | +breakdown-file-name: "" |
| 78 | + |
| 79 | +diff: |
| 80 | + # File name of go-test-coverage breakdown file which will be used to |
| 81 | + # report coverage difference. |
| 82 | + base-breakdown-file-name: "" |
0 commit comments