Permalink
Browse files

SA1024 - Colons Should Be Spaced Correctly

  • Loading branch information...
amervitz committed Oct 15, 2017
1 parent 9b59d33 commit fc87b99d0974f8290b4eaa135a849950a49cfa46
Showing with 39 additions and 48 deletions.
  1. +0 −9 Build/CodeAnalysis.ruleset
  2. +1 −1 Framework/Adxstudio.Xrm/Blogs/BlogCommentPolicyReader.cs
  3. +1 −1 Framework/Adxstudio.Xrm/Blogs/IBlogPost.cs
  4. +1 −1 Framework/Adxstudio.Xrm/Cms/CommentDataAdapterFactory.cs
  5. +1 −1 Framework/Adxstudio.Xrm/Cms/IComment.cs
  6. +1 −1 Framework/Adxstudio.Xrm/Cms/RatingDataAdapter.cs
  7. +1 −1 Framework/Adxstudio.Xrm/Cms/RatingDataAdapterFactory.cs
  8. +1 −1 Framework/Adxstudio.Xrm/Cms/RatingInfo.cs
  9. +1 −1 Framework/Adxstudio.Xrm/Cms/Security/PublishingStateTransitionSecurityProvider.cs
  10. +1 −1 Framework/Adxstudio.Xrm/Cms/WebPageDataAdapter.cs
  11. +1 −1 Framework/Adxstudio.Xrm/Commerce/PaymentProcessingRequestHandlerFactory.cs
  12. +1 −1 Framework/Adxstudio.Xrm/Events/Event.cs
  13. +1 −1 Framework/Adxstudio.Xrm/Events/EventSpeaker.cs
  14. +1 −1 Framework/Adxstudio.Xrm/Events/EventSponsor.cs
  15. +1 −1 Framework/Adxstudio.Xrm/Forums/ForumPostUrlProvider.cs
  16. +1 −1 Framework/Adxstudio.Xrm/Forums/ForumThreadDataAdapter.cs
  17. +1 −1 Framework/Adxstudio.Xrm/Issues/IssueCommentPolicyReader.cs
  18. +1 −1 Framework/Adxstudio.Xrm/Marketing/InvalidSignatureException.cs
  19. +1 −1 Framework/Adxstudio.Xrm/Search/SearchDisabledProviderException.cs
  20. +1 −1 Framework/Adxstudio.Xrm/Web/ContentMapCrmSiteMapProvider.cs
  21. +2 −2 Framework/Adxstudio.Xrm/Web/Handlers/CmsEntityDeleteHandler.cs
  22. +1 −1 Framework/Adxstudio.Xrm/Web/Modules/UpdateCookieModule.cs
  23. +1 −1 Framework/Adxstudio.Xrm/Web/Mvc/Liquid/BlogPostsDrop.cs
  24. +1 −1 Framework/Adxstudio.Xrm/Web/Mvc/Liquid/EventOccurrencesDrop.cs
  25. +1 −1 Framework/Adxstudio.Xrm/Web/Mvc/Liquid/PollDrop.cs
  26. +1 −1 Framework/Adxstudio.Xrm/Web/Mvc/Liquid/SponsorDrop.cs
  27. +1 −1 Framework/Adxstudio.Xrm/Web/UI/CrmEntityFormView/ICellTemplateFactory.cs
  28. +1 −1 Framework/Adxstudio.Xrm/Web/UI/CrmEntityFormView/MultipleChoiceControlTemplate.cs
  29. +1 −1 Framework/Adxstudio.Xrm/Web/UI/EntityList/OData/EntityListODataFeedDataAdapter.cs
  30. +1 −1 Framework/Adxstudio.Xrm/Web/UI/JsonConfiguration/ActionSerializationBinder.cs
  31. +1 −1 Framework/Adxstudio.Xrm/Web/UI/WebControls/CheckboxValidator.cs
  32. +1 −1 Framework/Adxstudio.Xrm/Web/UI/WebControls/CommentCreatorFormView.cs
  33. +1 −1 Framework/Adxstudio.Xrm/Web/UI/WebControls/SiteMarkerLinkButton.cs
  34. +1 −1 Framework/Microsoft.Xrm.Portal/Web/Routing/IEmbeddedResourceRouteHandler.cs
  35. +1 −1 Samples/MasterPortal/Areas/CustomerManagement/CustomerManagementAreaRegistration.cs
  36. +1 −1 Samples/MasterPortal/Areas/Forums/Pages/ForumThread.aspx.cs
  37. +1 −1 Samples/MasterPortal/Areas/Forums/Pages/Forums.aspx.cs
  38. +1 −1 Samples/MasterPortal/Areas/Opportunities/OpportunitiesAreaRegistration.cs
  39. +1 −1 Samples/MasterPortal/Controls/BlogsPanel.ascx.cs
@@ -74,15 +74,6 @@
<Rule Id="SA1005" Action="None" />
<Rule Id="SA1006" Action="None" />
<Rule Id="SA1007" Action="None" />
<Rule Id="SA1016" Action="None" />
<Rule Id="SA1017" Action="None" />
<Rule Id="SA1018" Action="None" />
<Rule Id="SA1019" Action="None" />
<Rule Id="SA1020" Action="None" />
<Rule Id="SA1021" Action="None" />
<Rule Id="SA1022" Action="None" />
<Rule Id="SA1023" Action="None" />
<Rule Id="SA1024" Action="None" />
<Rule Id="SA1025" Action="None" />
<Rule Id="SA1026" Action="None" />
<Rule Id="SA1027" Action="None" />
@@ -7,7 +7,7 @@

namespace Adxstudio.Xrm.Blogs
{
public class BlogCommentPolicyReader: ICommentPolicyReader
public class BlogCommentPolicyReader : ICommentPolicyReader
{
private IBlogPost _blogPost;

@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Blogs
{
public interface IBlogPost: IRateable
public interface IBlogPost : IRateable
{
ApplicationPath ApplicationPath { get; }

@@ -10,7 +10,7 @@

namespace Adxstudio.Xrm.Cms
{
public class CommentDataAdapterFactory: ICommentDataAdapterFactory
public class CommentDataAdapterFactory : ICommentDataAdapterFactory
{
private readonly EntityReference _entity;

@@ -9,7 +9,7 @@

namespace Adxstudio.Xrm.Cms
{
public interface IComment: IRateable
public interface IComment : IRateable
{
IAuthor Author { get; }

@@ -16,7 +16,7 @@

namespace Adxstudio.Xrm.Cms
{
public class RatingDataAdapter: IRatingDataAdapter
public class RatingDataAdapter : IRatingDataAdapter
{
public RatingDataAdapter(EntityReference rateableReference, IDataAdapterDependencies dependencies)
{
@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Cms
{
public class RatingDataAdapterFactory: IRatingDataAdapterFactory
public class RatingDataAdapterFactory : IRatingDataAdapterFactory
{
private EntityReference _entity;

@@ -8,7 +8,7 @@
namespace Adxstudio.Xrm.Cms
{
[Serializable]
public class RatingInfo: IRatingInfo
public class RatingInfo : IRatingInfo
{
public RatingInfo(int yesCount = 0, int noCount = 0, double averageRating = 0, int ratingCount = 0, int ratingSum = 0)
{
@@ -15,7 +15,7 @@

namespace Adxstudio.Xrm.Cms.Security
{
internal class PublishingStateTransitionSecurityProvider: IPublishingStateTransitionSecurityProvider
internal class PublishingStateTransitionSecurityProvider : IPublishingStateTransitionSecurityProvider
{

public void Assert(OrganizationServiceContext context, Entity website, Entity fromState, Entity toState)
@@ -23,7 +23,7 @@

namespace Adxstudio.Xrm.Cms
{
public class WebPageDataAdapter: RatingDataAdapter, ICommentDataAdapter
public class WebPageDataAdapter : RatingDataAdapter, ICommentDataAdapter
{
private bool? _hasCommentModerationPermission;

@@ -16,7 +16,7 @@

namespace Adxstudio.Xrm.Commerce
{
public class PaymentProcessingRequestHandlerFactory: IHttpHandler
public class PaymentProcessingRequestHandlerFactory : IHttpHandler
{
public string PortalName { get; set; }

@@ -10,7 +10,7 @@

namespace Adxstudio.Xrm.Events
{
internal class Event: IEvent
internal class Event : IEvent
{
public Event(Entity entity)
{
@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Events
{
public class EventSpeaker: IEventSpeaker
public class EventSpeaker : IEventSpeaker
{
public EventSpeaker(Entity entity)
{
@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Events
{
public class EventSponsor: IEventSponsor
public class EventSponsor : IEventSponsor
{
public EventSponsor(Entity entity)
{
@@ -13,7 +13,7 @@

namespace Adxstudio.Xrm.Forums
{
public class ForumPostUrlProvider: IForumPostUrlProvider
public class ForumPostUrlProvider : IForumPostUrlProvider
{
public string GetPostUrl(IForumThread forumThread, Guid forumPostId)
{
@@ -618,7 +618,7 @@ public IEnumerable<IForumPost> SelectPosts(bool descending, int startRowIndex, i
cloudStorageContainer = AnnotationDataAdapter.GetBlobContainer(cloudStorageAccount, cloudStorageContainerName);
}

var postInfos = serviceContext.FetchForumPostInfos(entities.Select(e => e.Id), website.Id, cloudStorageContainer:cloudStorageContainer);
var postInfos = serviceContext.FetchForumPostInfos(entities.Select(e => e.Id), website.Id, cloudStorageContainer: cloudStorageContainer);
var urlProvider = Dependencies.GetUrlProvider();
var thread = Select();
var user = Dependencies.GetPortalUser();
@@ -7,7 +7,7 @@

namespace Adxstudio.Xrm.Issues
{
public class IssueCommentPolicyReader: ICommentPolicyReader
public class IssueCommentPolicyReader : ICommentPolicyReader
{
private IIssue _issue;

@@ -7,7 +7,7 @@

namespace Adxstudio.Xrm.Marketing
{
class InvalidSignatureException: Exception
class InvalidSignatureException : Exception
{
}
}
@@ -7,7 +7,7 @@

namespace Adxstudio.Xrm.Search
{
internal class SearchDisabledProviderException: ProviderException
internal class SearchDisabledProviderException : ProviderException
{
public SearchDisabledProviderException(string message) : base(message)
{
@@ -44,7 +44,7 @@ public virtual SiteMapNode FindSiteMapNodeWithoutSecurityValidation(string rawUr
{
ADXTrace.Instance.TraceInfo(TraceCategory.Monitoring, "FindSiteMapNode: (0)ENTER");

return GetContentMapProvider().Using(map => FindSiteMapNode(GetRawUrlWithoutLanguage(rawUrl), map, excludeFromSecurityValidation:true));
return GetContentMapProvider().Using(map => FindSiteMapNode(GetRawUrlWithoutLanguage(rawUrl), map, excludeFromSecurityValidation: true));
}

private string GetRawUrlWithoutLanguage(string rawUrl)
@@ -53,7 +53,7 @@ protected override void ProcessRequest(HttpContext context, ICmsEntityServicePro
{
var forumDataAdapter = new ForumDataAdapter(
forum.ToEntityReference(),
new PortalConfigurationDataAdapterDependencies(portalName:PortalName, requestContext:context.Request.RequestContext));
new PortalConfigurationDataAdapterDependencies(portalName: PortalName, requestContext: context.Request.RequestContext));

forumDataAdapter.DeleteThread(entity.ToEntityReference());

@@ -76,7 +76,7 @@ protected override void ProcessRequest(HttpContext context, ICmsEntityServicePro
{
var forumThreadDataAdapter = new ForumThreadDataAdapter(
forumThread.ToEntityReference(),
new PortalConfigurationDataAdapterDependencies(portalName:PortalName, requestContext:context.Request.RequestContext));
new PortalConfigurationDataAdapterDependencies(portalName: PortalName, requestContext: context.Request.RequestContext));

forumThreadDataAdapter.DeletePost(entity.ToEntityReference());

@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Web.Modules
{
public class UpdateCookieModule :IHttpModule
public class UpdateCookieModule : IHttpModule
{
public void Dispose() { }

@@ -13,7 +13,7 @@

namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public class BlogPostsDrop: PortalDrop
public class BlogPostsDrop : PortalDrop
{
private readonly IBlogAggregationDataAdapter _adapter;
private readonly Lazy<BlogPostDrop[]> _posts;
@@ -15,7 +15,7 @@

namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public class EventOccurrencesDrop: PortalDrop
public class EventOccurrencesDrop : PortalDrop
{
private bool _isMin;
private bool _isMax;
@@ -11,7 +11,7 @@

namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public class PollDrop :EntityDrop
public class PollDrop : EntityDrop
{
private readonly Lazy<PollOptionDrop[]> _options;

@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Web.Mvc.Liquid
{
public class SponsorDrop: EntityDrop
public class SponsorDrop : EntityDrop
{
public SponsorDrop(IPortalLiquidContext portalLiquidContext, IEventSponsor eventSponsor)
: base(portalLiquidContext, eventSponsor.Entity)
@@ -15,7 +15,7 @@ namespace Adxstudio.Xrm.Web.UI.CrmEntityFormView
/// <summary>
/// Factory pattern class to create a cell template.
/// </summary>
public interface ICellTemplateFactory: Microsoft.Xrm.Portal.Web.UI.CrmEntityFormView.ICellTemplateFactory
public interface ICellTemplateFactory : Microsoft.Xrm.Portal.Web.UI.CrmEntityFormView.ICellTemplateFactory
{
/// <summary>
/// CellTemplateFactory Initialization.
@@ -135,7 +135,7 @@ private void AddSpecialBindingAndHiddenFieldsToPersistDisabledCheckBox(Control c
};
}

private class MultipleChoiceCheckboxValidator: CheckboxValidator
private class MultipleChoiceCheckboxValidator : CheckboxValidator
{
public Control Container;
public string GroupName;
@@ -29,7 +29,7 @@ namespace Adxstudio.Xrm.Web.UI.EntityList.OData
/// <summary>
/// Data adapter regarding OData feeds enabled for Entity List.
/// </summary>
public class EntityListODataFeedDataAdapter: IEntityListODataFeedDataAdapter
public class EntityListODataFeedDataAdapter : IEntityListODataFeedDataAdapter
{
private enum StateCode
{
@@ -14,7 +14,7 @@

namespace Adxstudio.Xrm.Web.UI.JsonConfiguration
{
public class ActionSerializationBinder :SerializationBinder
public class ActionSerializationBinder : SerializationBinder
{
private IList<Type> _knownTypes;

@@ -14,7 +14,7 @@

namespace Adxstudio.Xrm.Web.UI.WebControls
{
public class CheckboxValidator: CustomValidator
public class CheckboxValidator : CustomValidator
{
protected CheckBox CheckBoxToValidate
{
@@ -12,7 +12,7 @@

namespace Adxstudio.Xrm.Web.UI.WebControls
{
public class CommentCreatorFormView: CrmEntityFormView
public class CommentCreatorFormView : CrmEntityFormView
{
protected override void OnInit(EventArgs e)
{
@@ -19,7 +19,7 @@
namespace Adxstudio.Xrm.Web.UI.WebControls
{
[ToolboxData("<{0}:SiteMarkerLinkButton runat=\"server\">SiteMarkerLinkButton</{0}:SiteMarkerLinkButton>")]
public class SiteMarkerLinkButton: LinkButton
public class SiteMarkerLinkButton : LinkButton
{

private IPortalContext Portal
@@ -11,7 +11,7 @@ namespace Microsoft.Xrm.Portal.Web.Routing
/// <summary>
/// Handles routes involving access to embedded resources.
/// </summary>
public interface IEmbeddedResourceRouteHandler :IRouteHandler
public interface IEmbeddedResourceRouteHandler : IRouteHandler
{
/// <summary>
/// Description of the available embedded resource assemblies.
@@ -11,7 +11,7 @@

namespace Site.Areas.CustomerManagement
{
public class CustomerManagementAreaRegistration: AreaRegistration
public class CustomerManagementAreaRegistration : AreaRegistration
{
public override string AreaName
{
@@ -134,7 +134,7 @@ private IForumPost CreatePost()

private IForumThreadDataAdapter CreateForumThreadDataAdapter()
{
return new ForumThreadDataAdapter(_portal.Value.Entity.ToEntityReference(), new PortalContextDataAdapterDependencies(_portal.Value, requestContext:Request.RequestContext));
return new ForumThreadDataAdapter(_portal.Value.Entity.ToEntityReference(), new PortalContextDataAdapterDependencies(_portal.Value, requestContext: Request.RequestContext));
}

protected void AddAlert_Click(object sender, EventArgs e)
@@ -25,7 +25,7 @@ protected void CreateForumAggregationDataAdapter(object sender, ObjectDataSource
args.ObjectInstance = new WebsiteForumDataAdapter(new PortalContextDataAdapterDependencies(
_portal.Value,
new PaginatedLatestPostUrlProvider("page", Html.IntegerSetting("Forums/PostsPerPage").GetValueOrDefault(20)),
requestContext:Request.RequestContext));
requestContext: Request.RequestContext));
}
}
}
@@ -11,7 +11,7 @@

namespace Site.Areas.Opportunities
{
public class OpportunitiesAreaRegistration: AreaRegistration
public class OpportunitiesAreaRegistration : AreaRegistration
{
public override string AreaName
{
@@ -25,7 +25,7 @@ protected void CreateBlogDataAdapter(object sender, ObjectDataSourceEventArgs ar

args.ObjectInstance =
new WebsiteBlogAggregationDataAdapter(
new PortalContextDataAdapterDependencies(Portal, requestContext:Request.RequestContext),
new PortalContextDataAdapterDependencies(Portal, requestContext: Request.RequestContext),
null,
serviceContext => GetAllBlogPostsInWebsiteExceptNews(ServiceContext, Website.Id, newsBlogName));
}

0 comments on commit fc87b99

Please sign in to comment.