-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
97 changed files
with
1,952 additions
and
1,973 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Roslynator> | ||
<Settings> | ||
<General> | ||
<!-- <PrefixFieldIdentifierWithUnderscore>true</PrefixFieldIdentifierWithUnderscore> --> | ||
</General> | ||
<Refactorings> | ||
<!-- <Refactoring Id="RRxxxx" IsEnabled="false" /> --> | ||
</Refactorings> | ||
<CodeFixes> | ||
<!-- <CodeFix Id="CSxxxx.RCFxxxx" IsEnabled="false" /> --> | ||
<!-- <CodeFix Id="CSxxxx" IsEnabled="false" /> --> | ||
<!-- <CodeFix Id="RCFxxxx" IsEnabled="false" /> --> | ||
</CodeFixes> | ||
</Settings> | ||
</Roslynator> |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This rule set can be used to: | ||
1) Enable/disable analyzer(s) by DEFAULT. | ||
2) Change DEFAULT severity (action) of the analyzer(s). | ||
Default configuration is applied once when analyzers are loaded. | ||
Therefore, it may be neccessary to restart IDE for changes to take effect. | ||
Although it is possible to edit ruleset manually, Visual Studio has built-in support for editing ruleset. | ||
Just add ruleset file to a solution and open it. | ||
--> | ||
<RuleSet Name="roslynator.ruleset" ToolsVersion="16.0"> | ||
|
||
<!-- Specify default action that should be applied to all analyzers except those explicitly specified. --> | ||
<!-- <IncludeAll Action="None,Hidden,Info,Warning,Error" /> --> | ||
|
||
<!-- Specify zero or more paths to other rulesets that should be included. --> | ||
<!-- <Include Path="" Action="Default,None,Hidden,Info,Warning,Error" /> --> | ||
|
||
<Rules AnalyzerId="Roslynator.CSharp.Analyzers" RuleNamespace="Roslynator.CSharp.Analyzers"> | ||
|
||
<!-- Specify default action that should be applied to a specified analyzer. --> | ||
<Rule Id="RCS0044" Action="None" /> | ||
<Rule Id="RCS1308" Action="None" /> | ||
<Rule Id="CA1014" Action="None" /> | ||
<Rule Id="CA1308" Action="None" /> | ||
<Rule Id="CA1054" Action="None" /> | ||
<Rule Id="CA1716" Action="None" /> | ||
<!-- Lots of catching rare null pointer exceptions in properties. Might refactor those in the future --> | ||
<Rule Id="CA1065" Action="None" /> | ||
|
||
|
||
</Rules> | ||
|
||
</RuleSet> |
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
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using System; | ||
|
||
namespace NetDaemon.Common.Exceptions | ||
{ | ||
/// <inheritdoc/> | ||
public class NetDaemonNullReferenceException : NullReferenceException | ||
{ | ||
/// <inheritdoc/> | ||
public NetDaemonNullReferenceException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonNullReferenceException(string? message) : base(message) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonNullReferenceException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
} | ||
|
||
/// <inheritdoc/> | ||
public class NetDaemonException : Exception | ||
{ | ||
/// <inheritdoc/> | ||
public NetDaemonException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonException(string? message) : base(message) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
} | ||
|
||
/// <inheritdoc/> | ||
public class NetDaemonArgumentNullException : ArgumentNullException | ||
{ | ||
/// <inheritdoc/> | ||
public NetDaemonArgumentNullException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonArgumentNullException(string? paramName) : base(paramName) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonArgumentNullException(string? message, Exception? innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
/// <inheritdoc/> | ||
public NetDaemonArgumentNullException(string? paramName, string? message) : base(paramName, message) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.