Skip to content

Commit

Permalink
PR feedback - disable CA1515 when public classes are necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Nov 25, 2024
1 parent 7879556 commit 1d3cad9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ namespace Examples.GrpcCore.AspNetCore.Controllers;

[ApiController]
[Route("[controller]")]
internal class WeatherForecastController : ControllerBase
#pragma warning disable CA1515
public class WeatherForecastController : ControllerBase
#pragma warning restore CA1515
{
private static readonly string[] Summaries =
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

namespace Examples.GrpcCore.AspNetCore;

internal class WeatherForecast
#pragma warning disable CA1515
public class WeatherForecast
#pragma warning restore CA1515
{
public WeatherForecast(DateTime date, int temperatureC, string summary)
{
Expand Down
4 changes: 3 additions & 1 deletion examples/owin/Controllers/TestController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

namespace Examples.Owin.Controllers;

internal class TestController : ApiController
#pragma warning disable CA1515
public class TestController : ApiController
#pragma warning restore CA1515
{
// GET api/test/{id}
public string Get(string? id = null)
Expand Down
4 changes: 3 additions & 1 deletion examples/wcf/client-core/StatusServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

namespace Examples.Wcf.Client;

internal class StatusServiceClient : ClientBase<IStatusServiceContract>, IStatusServiceContract
#pragma warning disable CA1515
public class StatusServiceClient : ClientBase<IStatusServiceContract>, IStatusServiceContract
#pragma warning restore CA1515
{
public StatusServiceClient(string name)
: base(name)
Expand Down

0 comments on commit 1d3cad9

Please sign in to comment.