Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
SA1024 - Colons Should Be Spaced Correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
amervitz committed Oct 15, 2017
1 parent 9b59d33 commit fc87b99
Show file tree
Hide file tree
Showing 39 changed files with 39 additions and 48 deletions.
9 changes: 0 additions & 9 deletions Build/CodeAnalysis.ruleset
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@
<Rule Id="SA1005" Action="None" /> <Rule Id="SA1005" Action="None" />
<Rule Id="SA1006" Action="None" /> <Rule Id="SA1006" Action="None" />
<Rule Id="SA1007" 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="SA1025" Action="None" />
<Rule Id="SA1026" Action="None" /> <Rule Id="SA1026" Action="None" />
<Rule Id="SA1027" Action="None" /> <Rule Id="SA1027" Action="None" />
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Blogs/BlogCommentPolicyReader.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Blogs/IBlogPost.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/CommentDataAdapterFactory.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/IComment.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/RatingDataAdapter.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


namespace Adxstudio.Xrm.Cms namespace Adxstudio.Xrm.Cms
{ {
public class RatingDataAdapter: IRatingDataAdapter public class RatingDataAdapter : IRatingDataAdapter
{ {
public RatingDataAdapter(EntityReference rateableReference, IDataAdapterDependencies dependencies) public RatingDataAdapter(EntityReference rateableReference, IDataAdapterDependencies dependencies)
{ {
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/RatingDataAdapterFactory.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/RatingInfo.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Adxstudio.Xrm.Cms namespace Adxstudio.Xrm.Cms
{ {
[Serializable] [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) public RatingInfo(int yesCount = 0, int noCount = 0, double averageRating = 0, int ratingCount = 0, int ratingSum = 0)
{ {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


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


public void Assert(OrganizationServiceContext context, Entity website, Entity fromState, Entity toState) public void Assert(OrganizationServiceContext context, Entity website, Entity fromState, Entity toState)
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Cms/WebPageDataAdapter.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


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


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Events/Event.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


namespace Adxstudio.Xrm.Events namespace Adxstudio.Xrm.Events
{ {
internal class Event: IEvent internal class Event : IEvent
{ {
public Event(Entity entity) public Event(Entity entity)
{ {
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Events/EventSpeaker.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


namespace Adxstudio.Xrm.Events namespace Adxstudio.Xrm.Events
{ {
public class EventSpeaker: IEventSpeaker public class EventSpeaker : IEventSpeaker
{ {
public EventSpeaker(Entity entity) public EventSpeaker(Entity entity)
{ {
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Events/EventSponsor.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


namespace Adxstudio.Xrm.Events namespace Adxstudio.Xrm.Events
{ {
public class EventSponsor: IEventSponsor public class EventSponsor : IEventSponsor
{ {
public EventSponsor(Entity entity) public EventSponsor(Entity entity)
{ {
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Forums/ForumPostUrlProvider.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


namespace Adxstudio.Xrm.Forums namespace Adxstudio.Xrm.Forums
{ {
public class ForumPostUrlProvider: IForumPostUrlProvider public class ForumPostUrlProvider : IForumPostUrlProvider
{ {
public string GetPostUrl(IForumThread forumThread, Guid forumPostId) public string GetPostUrl(IForumThread forumThread, Guid forumPostId)
{ {
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Forums/ForumThreadDataAdapter.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public IEnumerable<IForumPost> SelectPosts(bool descending, int startRowIndex, i
cloudStorageContainer = AnnotationDataAdapter.GetBlobContainer(cloudStorageAccount, cloudStorageContainerName); 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 urlProvider = Dependencies.GetUrlProvider();
var thread = Select(); var thread = Select();
var user = Dependencies.GetPortalUser(); var user = Dependencies.GetPortalUser();
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Issues/IssueCommentPolicyReader.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


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


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


namespace Adxstudio.Xrm.Marketing namespace Adxstudio.Xrm.Marketing
{ {
class InvalidSignatureException: Exception class InvalidSignatureException : Exception
{ {
} }
} }
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


namespace Adxstudio.Xrm.Search namespace Adxstudio.Xrm.Search
{ {
internal class SearchDisabledProviderException: ProviderException internal class SearchDisabledProviderException : ProviderException
{ {
public SearchDisabledProviderException(string message) : base(message) public SearchDisabledProviderException(string message) : base(message)
{ {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public virtual SiteMapNode FindSiteMapNodeWithoutSecurityValidation(string rawUr
{ {
ADXTrace.Instance.TraceInfo(TraceCategory.Monitoring, "FindSiteMapNode: (0)ENTER"); 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) private string GetRawUrlWithoutLanguage(string rawUrl)
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void ProcessRequest(HttpContext context, ICmsEntityServicePro
{ {
var forumDataAdapter = new ForumDataAdapter( var forumDataAdapter = new ForumDataAdapter(
forum.ToEntityReference(), forum.ToEntityReference(),
new PortalConfigurationDataAdapterDependencies(portalName:PortalName, requestContext:context.Request.RequestContext)); new PortalConfigurationDataAdapterDependencies(portalName: PortalName, requestContext: context.Request.RequestContext));


forumDataAdapter.DeleteThread(entity.ToEntityReference()); forumDataAdapter.DeleteThread(entity.ToEntityReference());


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


forumThreadDataAdapter.DeletePost(entity.ToEntityReference()); forumThreadDataAdapter.DeletePost(entity.ToEntityReference());


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Web/Modules/UpdateCookieModule.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Web/Mvc/Liquid/BlogPostsDrop.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


namespace Adxstudio.Xrm.Web.Mvc.Liquid namespace Adxstudio.Xrm.Web.Mvc.Liquid
{ {
public class BlogPostsDrop: PortalDrop public class BlogPostsDrop : PortalDrop
{ {
private readonly IBlogAggregationDataAdapter _adapter; private readonly IBlogAggregationDataAdapter _adapter;
private readonly Lazy<BlogPostDrop[]> _posts; private readonly Lazy<BlogPostDrop[]> _posts;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


namespace Adxstudio.Xrm.Web.Mvc.Liquid namespace Adxstudio.Xrm.Web.Mvc.Liquid
{ {
public class EventOccurrencesDrop: PortalDrop public class EventOccurrencesDrop : PortalDrop
{ {
private bool _isMin; private bool _isMin;
private bool _isMax; private bool _isMax;
Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Web/Mvc/Liquid/PollDrop.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


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


Expand Down
2 changes: 1 addition & 1 deletion Framework/Adxstudio.Xrm/Web/Mvc/Liquid/SponsorDrop.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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


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


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


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


namespace Adxstudio.Xrm.Web.UI.WebControls namespace Adxstudio.Xrm.Web.UI.WebControls
{ {
public class CheckboxValidator: CustomValidator public class CheckboxValidator : CustomValidator
{ {
protected CheckBox CheckBoxToValidate protected CheckBox CheckBoxToValidate
{ {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


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


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


namespace Site.Areas.CustomerManagement namespace Site.Areas.CustomerManagement
{ {
public class CustomerManagementAreaRegistration: AreaRegistration public class CustomerManagementAreaRegistration : AreaRegistration
{ {
public override string AreaName public override string AreaName
{ {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private IForumPost CreatePost()


private IForumThreadDataAdapter CreateForumThreadDataAdapter() 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) protected void AddAlert_Click(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion Samples/MasterPortal/Areas/Forums/Pages/Forums.aspx.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected void CreateForumAggregationDataAdapter(object sender, ObjectDataSource
args.ObjectInstance = new WebsiteForumDataAdapter(new PortalContextDataAdapterDependencies( args.ObjectInstance = new WebsiteForumDataAdapter(new PortalContextDataAdapterDependencies(
_portal.Value, _portal.Value,
new PaginatedLatestPostUrlProvider("page", Html.IntegerSetting("Forums/PostsPerPage").GetValueOrDefault(20)), new PaginatedLatestPostUrlProvider("page", Html.IntegerSetting("Forums/PostsPerPage").GetValueOrDefault(20)),
requestContext:Request.RequestContext)); requestContext: Request.RequestContext));
} }
} }
} }
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


namespace Site.Areas.Opportunities namespace Site.Areas.Opportunities
{ {
public class OpportunitiesAreaRegistration: AreaRegistration public class OpportunitiesAreaRegistration : AreaRegistration
{ {
public override string AreaName public override string AreaName
{ {
Expand Down
2 changes: 1 addition & 1 deletion Samples/MasterPortal/Controls/BlogsPanel.ascx.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected void CreateBlogDataAdapter(object sender, ObjectDataSourceEventArgs ar


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

0 comments on commit fc87b99

Please sign in to comment.