Skip to content

Commit d20e2de

Browse files
committed
chore(ci): adjust pattern matching for ignores to align with Codecov processing
1 parent c9e574e commit d20e2de

File tree

1 file changed

+38
-40
lines changed

1 file changed

+38
-40
lines changed

codecov.yml

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
1-
# Codecov repository YAML
1+
2+
# Codecov Repository YAML
23
# https://docs.codecov.com/docs/codecov-yaml
3-
coverage:
44

5-
# https://docs.codecov.com/docs/commit-status
5+
coverage:
6+
# https://docs.codecov.com/docs/commit-status
67
status:
7-
88
project:
99
default:
10-
target: 80% # Default target for all components
11-
threshold: 10% # Allowable drop in coverage without failing
12-
if_not_found: success # If no coverage report is found, don't fail
13-
if_ci_failed: error # CI failure should fail coverage check
14-
15-
patch:
16-
default:
17-
target: 80% # Target for changed lines
18-
threshold: 10% # Allowable drop in coverage without failing
10+
target: 80%
11+
threshold: 100%
12+
if_not_found: success
13+
if_ci_failed: success
14+
patch:
15+
default:
16+
target: 0%
17+
threshold: 100%
18+
if_not_found: success
1919

20+
# https://docs.codecov.com/docs/components#component-options
2021
component_management:
21-
22-
default_rules: # default rules that will be inherited by all components
22+
default_rules:
2323
statuses:
24-
- type: project # components that don't have a status defined will have a project type one
24+
- type: project
2525
target: auto
2626
branches:
2727
- "!main"
28-
2928
individual_components:
30-
- component_id: controllers # this is an identifier that should not be changed
31-
name: Controllers # this is a display name, and can be changed freely
29+
- component_id: controllers
30+
name: Controllers
3231
paths:
3332
- 'src/Dotnet.Samples.AspNetCore.WebApi/Controllers/'
3433
- component_id: services
@@ -38,29 +37,28 @@ component_management:
3837

3938
comment:
4039
layout: "header, diff, flags, components"
40+
behavior: default
41+
require_changes: false
4142

4243
# https://docs.codecov.com/docs/ignoring-paths
4344
ignore:
44-
# Ignoring specific file yypes
45-
- '**/*.sln' # Solution files
46-
- '**/*.csproj' # C# project files
47-
- '**/*.json' # JSON config files (e.g., appsettings)
48-
- '**/*.yml' # YAML config files (e.g., pipelines)
49-
- '**/*.png' # Image assets (e.g., Swagger diagram)
45+
- .*\.sln
46+
- .*\.csproj
47+
- .*\.json
48+
- .*\.yml
49+
- .*\.png
50+
- '**/*.md'
5051

51-
# Ignoring a specific folder
52-
- 'src/**/Data/**/*' # Repositories, DbContext, database files
53-
- 'src/**/Enums/**/*' # Enums like Position
54-
- 'src/**/Mappings/**/*' # AutoMapper profiles
55-
- 'src/**/Migrations/**/*' # EF Core migration artifacts
56-
- 'src/**/Models/**/*' # Domain and DTO models
57-
- 'src/**/Properties/**/*' # launchSettings.json or other system files
58-
- 'src/**/Utilities/**/*' # Static helper and extension classes
59-
- 'src/**/Validators/**/*' # FluentValidation validators
60-
- 'test' # Any file in the test folder (unit/integration/utils)
52+
- .*\/test\/.*
53+
- .*\/Program\.cs
54+
- '**/LICENSE'
55+
- '**/README.md'
6156

62-
# Ignoring Specific Files At All Depths
63-
- '**/Program.cs' # ASP.NET Core entry point
64-
- '**/.gitignore' # Git ignore file
65-
- '**/LICENSE' # License text
66-
- '**/README.md' # Project readme
57+
- .*\/Data\/.*
58+
- .*\/Enums\/.*
59+
- .*\/Mappings\/.*
60+
- .*\/Migrations\/.*
61+
- .*\/Models\/.*
62+
- .*\/Properties\/.*
63+
- .*\/Utilities\/.*
64+
- .*\/Validators\/.*

0 commit comments

Comments
 (0)