Suppressing a few code analysis warnings.

--HG--
branch : dev
This commit is contained in:
Dave Reed
2010-11-11 16:23:32 -08:00
parent e6324ea43e
commit a9a2c87fe6
2 changed files with 2 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ namespace Orchard.Core.Routable.Services {
_contentManager = contentManager; _contentManager = contentManager;
} }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Justification = "Slugs should be lowercase.")]
public void FillSlugFromTitle<TModel>(TModel model) where TModel : RoutePart { public void FillSlugFromTitle<TModel>(TModel model) where TModel : RoutePart {
if (!string.IsNullOrEmpty(model.Slug) || string.IsNullOrEmpty(model.Title)) if (!string.IsNullOrEmpty(model.Slug) || string.IsNullOrEmpty(model.Title))
return; return;

View File

@@ -321,6 +321,7 @@ namespace Orchard.Data.Migration.Interpreters {
} }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2100:Review SQL queries for security vulnerabilities", Justification = "Nothing comes from user input.")]
private void RunPendingStatements() { private void RunPendingStatements() {
var connection = _session.Connection; var connection = _session.Connection;