Skip to content

SonarLint and CodeFactor warning reduction + better internal logging#3263

Merged
304NotModified merged 1 commit intoNLog:devfrom
snakefoot:SonarFactorReduceWarnings
Apr 3, 2019
Merged

SonarLint and CodeFactor warning reduction + better internal logging#3263
304NotModified merged 1 commit intoNLog:devfrom
snakefoot:SonarFactorReduceWarnings

Conversation

@snakefoot
Copy link
Copy Markdown
Contributor

No description provided.

@304NotModified
Copy link
Copy Markdown
Member

FYI

Targets/FileTarget.cs(730,51): error CS0103: The name '_lineEndingMode' does not exist in the current context [/home/travis/build/NLog/NLog/src/NLog/NLog.csproj]

Comment thread src/NLog/LayoutRenderers/NdcLayoutRenderer.cs
Comment thread src/NLog/LayoutRenderers/WindowsIdentityLayoutRenderer.cs Outdated
@snakefoot snakefoot force-pushed the SonarFactorReduceWarnings branch 2 times, most recently from 9904e34 to 40c935a Compare March 31, 2019 21:17
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2019

Codecov Report

Merging #3263 into dev will decrease coverage by <1%.
The diff coverage is 54%.

@@          Coverage Diff           @@
##             dev   #3263    +/-   ##
======================================
- Coverage     80%     80%   -<1%     
======================================
  Files        355     355            
  Lines      27986   27989     +3     
  Branches    3727    3727            
======================================
- Hits       22324   22317     -7     
- Misses      4579    4593    +14     
+ Partials    1083    1079     -4

@304NotModified
Copy link
Copy Markdown
Member

@snakefoot thanks for doing refactorings 👍

FYI: I really like this site, which has some nice lists how to refactor things: https://sourcemaking.com/refactoring

@snakefoot snakefoot force-pushed the SonarFactorReduceWarnings branch from 40c935a to 7e47071 Compare April 1, 2019 23:04
@304NotModified 304NotModified added this to the 4.6.3 milestone Apr 2, 2019
dict[configItem.Key.Trim()] = configItem.Value;
string key = configItem.Key.Trim();
if (dict.ContainsKey(key))
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is something else than the refactor, isn't?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are there more of these changes in this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes some debug-noise to help diagnose Xml-config issues.

@304NotModified 304NotModified changed the title SonarLint and CodeFactor warning reduction SonarLint and CodeFactor warning reduction + better internal logging Apr 3, 2019
@304NotModified 304NotModified merged commit 6d3be02 into NLog:dev Apr 3, 2019
@snakefoot snakefoot deleted the SonarFactorReduceWarnings branch April 4, 2020 12:58
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.

2 participants