Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TargetDefaultWrapper and TargetDefaultParameters #500

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

snakefoot
Copy link
Contributor

Resolves #499

@snakefoot snakefoot added this to the 1.7.3 milestone Apr 3, 2021
@codecov-io
Copy link

Codecov Report

Merging #500 (6ff3e6c) into master (084cd50) will decrease coverage by 0.37%.
The diff coverage is 85.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #500      +/-   ##
==========================================
- Coverage   80.96%   80.59%   -0.38%     
==========================================
  Files          16       16              
  Lines        1345     1355      +10     
  Branches      234      230       -4     
==========================================
+ Hits         1089     1092       +3     
- Misses        172      175       +3     
- Partials       84       88       +4     
Impacted Files Coverage Δ
...ensions.Logging/Config/NLogLoggingConfiguration.cs 89.65% <85.41%> (-2.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 084cd50...6ff3e6c. Read the comment docs.

Copy link
Member

@304NotModified 304NotModified left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, 1 general question. Not sure if we need to change it.

}
}
}

private bool AlreadyReadChild(IConfigurationSection child, IConfigurationSection variables, IConfigurationSection defaultWrapper, IConfigurationSection defaultTargetParameters)
private bool AlreadyReadChild(IConfigurationSection child, IConfigurationSection variables, IConfigurationSection targetDefaultWrapper, IConfigurationSection targetDefaultParameters)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't defaultTargetParameters more in line with:

✔️ DO choose easily readable identifier names.

For example, a property named HorizontalAlignment is more English-readable than AlignmentHorizontal.

From https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/general-naming-conventions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I like that first word specifies the area of functionality. And "default" is very generic and gives no information. Just like I prefer FilterDefaultAction over DefaultFilterAction.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DefaultFilterAction is also more in line with english and the microsoft guideline.

@codecov-commenter
Copy link

Codecov Report

Merging #500 (dd29028) into master (084cd50) will decrease coverage by 0.37%.
The diff coverage is 83.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #500      +/-   ##
==========================================
- Coverage   80.96%   80.59%   -0.38%     
==========================================
  Files          16       16              
  Lines        1345     1355      +10     
  Branches      234      230       -4     
==========================================
+ Hits         1089     1092       +3     
- Misses        172      175       +3     
- Partials       84       88       +4     
Impacted Files Coverage Δ
...xtensions.Logging/Config/SetupBuilderExtensions.cs 83.33% <0.00%> (ø)
...ensions.Logging/Config/NLogLoggingConfiguration.cs 89.65% <85.41%> (-2.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 084cd50...dd29028. Read the comment docs.

@snakefoot snakefoot merged commit a693ce1 into NLog:master Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recognize TargetDefaultWrapper instead of default-wrapper
4 participants