Skip to content

Commit 78afc7a

Browse files
treat warnings as errors (#2329)
* treat warnings as errors * Change file
1 parent e06cfdd commit 78afc7a

6 files changed

Lines changed: 19 additions & 5 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Projects": [
3+
{
4+
"Name": "Amazon.Lambda.Annotations",
5+
"Type": "Patch",
6+
"ChangelogMessages": [
7+
"treat warnings as errors and fix unshipped.md"
8+
]
9+
}
10+
]
11+
}

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Amazon.Lambda.Annotations.SourceGenerator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<IncludeBuildOutput>false</IncludeBuildOutput>
2222

2323
<Version>1.11.0</Version>
24+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2425
</PropertyGroup>
2526

2627
<!-- Delay setting the package id till after resolving dependencies to avoid ambigious errors. -->

Libraries/src/Amazon.Lambda.Annotations.SourceGenerator/Diagnostics/AnalyzerReleases.Unshipped.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ AWSLambda0132 | AWSLambdaCSharpGenerator | Error | Invalid ALBApiAttribute
2020
AWSLambda0133 | AWSLambdaCSharpGenerator | Error | ALB Listener Reference Not Found
2121
AWSLambda0134 | AWSLambdaCSharpGenerator | Error | FromRoute not supported on ALB functions
2222
AWSLambda0135 | AWSLambdaCSharpGenerator | Error | Unmapped parameter on ALB function
23+
AWSLambda0136 | AWSLambdaCSharpGenerator | Error | Invalid S3EventAttribute

Libraries/src/Amazon.Lambda.Annotations/APIGateway/HttpApiAuthorizerAttribute.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace Amazon.Lambda.Annotations.APIGateway
88
/// </summary>
99
/// <remarks>
1010
/// This attribute must be used in conjunction with the <see cref="LambdaFunctionAttribute"/>.
11-
/// The authorizer function should return <see cref="Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2SimpleResponse"/>
12-
/// when <see cref="EnableSimpleResponses"/> is true, or <see cref="Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2IamResponse"/>
11+
/// The authorizer function should return <c>APIGatewayCustomAuthorizerV2SimpleResponse</c>
12+
/// when <see cref="EnableSimpleResponses"/> is true, or <c>APIGatewayCustomAuthorizerV2IamResponse</c>
1313
/// when <see cref="EnableSimpleResponses"/> is false.
1414
/// </remarks>
1515
/// <example>
@@ -45,8 +45,8 @@ public class HttpApiAuthorizerAttribute : Attribute
4545
/// Defaults to true for simpler implementation.
4646
/// </summary>
4747
/// <remarks>
48-
/// When true, the authorizer should return <see cref="Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2SimpleResponse"/>.
49-
/// When false, the authorizer should return <see cref="Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerV2IamResponse"/>.
48+
/// When true, the authorizer should return <c>APIGatewayCustomAuthorizerV2SimpleResponse</c>.
49+
/// When false, the authorizer should return <c>APIGatewayCustomAuthorizerV2IamResponse</c>.
5050
/// </remarks>
5151
public bool EnableSimpleResponses { get; set; } = true;
5252

Libraries/src/Amazon.Lambda.Annotations/APIGateway/RestApiAuthorizerAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public enum RestApiAuthorizerType
2626
/// </summary>
2727
/// <remarks>
2828
/// This attribute must be used in conjunction with the <see cref="LambdaFunctionAttribute"/>.
29-
/// The authorizer function should return <see cref="Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerResponse"/>.
29+
/// The authorizer function should return <c>APIGatewayCustomAuthorizerResponse</c>.
3030
/// </remarks>
3131
/// <example>
3232
/// <code>

Libraries/src/Amazon.Lambda.Annotations/Amazon.Lambda.Annotations.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<SignAssembly>true</SignAssembly>
1313

1414
<Version>1.11.0</Version>
15+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1516
</PropertyGroup>
1617

1718
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">

0 commit comments

Comments
 (0)