aws-sdk-codegurureviewer 1.30.0 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10a4fcf511c777da53abeae4e329f010c49d58fce7fcc5b91bcecf14aebeb615
4
- data.tar.gz: 2c72010554e08681b60ea55e39df8f1e0e8582c7277e1e59bd621fa59b6e39bc
3
+ metadata.gz: 40ace0d2bca028fb7351b6a07054513de3803e3ed394dceef995fb36486a76f8
4
+ data.tar.gz: 75fecc955731f62bb4dcc9db0032341fa64af32f1034c74415ba8aca7cce3791
5
5
  SHA512:
6
- metadata.gz: 4dfadebafe19f821bdb6af31cd7faa4e28e5b0fb01ff7b684a53d8889a6b48e26950ff67f3d09eb06d79fae10850dd956b56efcfa8a66cb911ad8ba7ed705b86
7
- data.tar.gz: d8c3b149b5ce73b34644383fab8d9a89d8021eca490d316855e0df148903435e9824ceb9f5e8f94840ab75029bb58ab19bb8e1dac679731354d3bf222e0ddbfe
6
+ metadata.gz: 64ae52a3f7fe6afa5aa01f6eba4c4f71d809ea915be7e6561bb2f5f894751bc2f4d56882a7776de653d20fcf040c12adf6004cc8f474e21551ef95164257481c
7
+ data.tar.gz: d28c24638bfc5d1cc41f16cf2400b5ac0fd30c04d9f64915a5f948f09af1aa6f672da7a30ec310f5dbb2df5815f3b3a9df12dde447b1a1667e71bf64c4d9ead4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2022-04-29)
5
+ ------------------
6
+
7
+ * Feature - Amazon CodeGuru Reviewer now supports suppressing recommendations from being generated on specific files and directories.
8
+
4
9
  1.30.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.30.0
1
+ 1.31.0
@@ -607,9 +607,11 @@ module Aws::CodeGuruReviewer
607
607
  # resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
608
608
  # resp.code_review.association_arn #=> String
609
609
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
610
+ # resp.code_review.metrics.suppressed_lines_of_code_count #=> Integer
610
611
  # resp.code_review.metrics.findings_count #=> Integer
611
612
  # resp.code_review.analysis_types #=> Array
612
613
  # resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
614
+ # resp.code_review.config_file_state #=> String, one of "Present", "Absent", "PresentWithErrors"
613
615
  #
614
616
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
615
617
  #
@@ -670,9 +672,11 @@ module Aws::CodeGuruReviewer
670
672
  # resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
671
673
  # resp.code_review.association_arn #=> String
672
674
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
675
+ # resp.code_review.metrics.suppressed_lines_of_code_count #=> Integer
673
676
  # resp.code_review.metrics.findings_count #=> Integer
674
677
  # resp.code_review.analysis_types #=> Array
675
678
  # resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
679
+ # resp.code_review.config_file_state #=> String, one of "Present", "Absent", "PresentWithErrors"
676
680
  #
677
681
  #
678
682
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -933,6 +937,7 @@ module Aws::CodeGuruReviewer
933
937
  # resp.code_review_summaries[0].type #=> String, one of "PullRequest", "RepositoryAnalysis"
934
938
  # resp.code_review_summaries[0].pull_request_id #=> String
935
939
  # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
940
+ # resp.code_review_summaries[0].metrics_summary.suppressed_lines_of_code_count #=> Integer
936
941
  # resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
937
942
  # resp.code_review_summaries[0].source_code_type.commit_diff.source_commit #=> String
938
943
  # resp.code_review_summaries[0].source_code_type.commit_diff.destination_commit #=> String
@@ -1390,7 +1395,7 @@ module Aws::CodeGuruReviewer
1390
1395
  params: params,
1391
1396
  config: config)
1392
1397
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1393
- context[:gem_version] = '1.30.0'
1398
+ context[:gem_version] = '1.31.0'
1394
1399
  Seahorse::Client::Request.new(handlers, context)
1395
1400
  end
1396
1401
 
@@ -34,6 +34,7 @@ module Aws::CodeGuruReviewer
34
34
  CodeReviewType = Shapes::StructureShape.new(name: 'CodeReviewType')
35
35
  CommitDiffSourceCodeType = Shapes::StructureShape.new(name: 'CommitDiffSourceCodeType')
36
36
  CommitId = Shapes::StringShape.new(name: 'CommitId')
37
+ ConfigFileState = Shapes::StringShape.new(name: 'ConfigFileState')
37
38
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
38
39
  ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
39
40
  CreateCodeReviewRequest = Shapes::StructureShape.new(name: 'CreateCodeReviewRequest')
@@ -59,6 +60,7 @@ module Aws::CodeGuruReviewer
59
60
  KMSKeyDetails = Shapes::StructureShape.new(name: 'KMSKeyDetails')
60
61
  KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
61
62
  LineNumber = Shapes::IntegerShape.new(name: 'LineNumber')
63
+ LinesOfCodeCount = Shapes::IntegerShape.new(name: 'LinesOfCodeCount')
62
64
  ListCodeReviewsMaxResults = Shapes::IntegerShape.new(name: 'ListCodeReviewsMaxResults')
63
65
  ListCodeReviewsRequest = Shapes::StructureShape.new(name: 'ListCodeReviewsRequest')
64
66
  ListCodeReviewsResponse = Shapes::StructureShape.new(name: 'ListCodeReviewsResponse')
@@ -73,7 +75,6 @@ module Aws::CodeGuruReviewer
73
75
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
74
76
  LongDescription = Shapes::StringShape.new(name: 'LongDescription')
75
77
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
76
- MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
77
78
  Metrics = Shapes::StructureShape.new(name: 'Metrics')
78
79
  MetricsSummary = Shapes::StructureShape.new(name: 'MetricsSummary')
79
80
  Name = Shapes::StringShape.new(name: 'Name')
@@ -183,6 +184,7 @@ module Aws::CodeGuruReviewer
183
184
  CodeReview.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, location_name: "AssociationArn"))
184
185
  CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
185
186
  CodeReview.add_member(:analysis_types, Shapes::ShapeRef.new(shape: AnalysisTypes, location_name: "AnalysisTypes"))
187
+ CodeReview.add_member(:config_file_state, Shapes::ShapeRef.new(shape: ConfigFileState, location_name: "ConfigFileState"))
186
188
  CodeReview.struct_class = Types::CodeReview
187
189
 
188
190
  CodeReviewSummaries.member = Shapes::ShapeRef.new(shape: CodeReviewSummary)
@@ -313,11 +315,13 @@ module Aws::CodeGuruReviewer
313
315
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
314
316
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
315
317
 
316
- Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
318
+ Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
319
+ Metrics.add_member(:suppressed_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "SuppressedLinesOfCodeCount"))
317
320
  Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
318
321
  Metrics.struct_class = Types::Metrics
319
322
 
320
- MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
323
+ MetricsSummary.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
324
+ MetricsSummary.add_member(:suppressed_lines_of_code_count, Shapes::ShapeRef.new(shape: LinesOfCodeCount, location_name: "SuppressedLinesOfCodeCount"))
321
325
  MetricsSummary.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
322
326
  MetricsSummary.struct_class = Types::MetricsSummary
323
327
 
@@ -322,11 +322,18 @@ module Aws::CodeGuruReviewer
322
322
  # @return [Types::Metrics]
323
323
  #
324
324
  # @!attribute [rw] analysis_types
325
- # They types of analysis performed during a repository analysis or a
325
+ # The types of analysis performed during a repository analysis or a
326
326
  # pull request review. You can specify either `Security`,
327
327
  # `CodeQuality`, or both.
328
328
  # @return [Array<String>]
329
329
  #
330
+ # @!attribute [rw] config_file_state
331
+ # The state of the `aws-codeguru-reviewer.yml` configuration file that
332
+ # allows the configuration of the CodeGuru Reviewer analysis. The file
333
+ # either exists, doesn't exist, or exists with errors at the root
334
+ # directory of your repository.
335
+ # @return [String]
336
+ #
330
337
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReview AWS API Documentation
331
338
  #
332
339
  class CodeReview < Struct.new(
@@ -344,7 +351,8 @@ module Aws::CodeGuruReviewer
344
351
  :source_code_type,
345
352
  :association_arn,
346
353
  :metrics,
347
- :analysis_types)
354
+ :analysis_types,
355
+ :config_file_state)
348
356
  SENSITIVE = []
349
357
  include Aws::Structure
350
358
  end
@@ -1373,11 +1381,20 @@ module Aws::CodeGuruReviewer
1373
1381
  # Information about the statistics from the code review.
1374
1382
  #
1375
1383
  # @!attribute [rw] metered_lines_of_code_count
1376
- # `MeteredLinesOfCode` is the number of lines of code in the
1384
+ # `MeteredLinesOfCodeCount` is the number of lines of code in the
1377
1385
  # repository where the code review happened. This does not include
1378
1386
  # non-code lines such as comments and blank lines.
1379
1387
  # @return [Integer]
1380
1388
  #
1389
+ # @!attribute [rw] suppressed_lines_of_code_count
1390
+ # `SuppressedLinesOfCodeCount` is the number of lines of code in the
1391
+ # repository where the code review happened that CodeGuru Reviewer did
1392
+ # not analyze. The lines suppressed in the analysis is based on the
1393
+ # `excludeFiles` variable in the `aws-codeguru-reviewer.yml` file.
1394
+ # This number does not include non-code lines such as comments and
1395
+ # blank lines.
1396
+ # @return [Integer]
1397
+ #
1381
1398
  # @!attribute [rw] findings_count
1382
1399
  # Total number of recommendations found in the code review.
1383
1400
  # @return [Integer]
@@ -1386,6 +1403,7 @@ module Aws::CodeGuruReviewer
1386
1403
  #
1387
1404
  class Metrics < Struct.new(
1388
1405
  :metered_lines_of_code_count,
1406
+ :suppressed_lines_of_code_count,
1389
1407
  :findings_count)
1390
1408
  SENSITIVE = []
1391
1409
  include Aws::Structure
@@ -1408,6 +1426,25 @@ module Aws::CodeGuruReviewer
1408
1426
  # the 25 changed lines of code for a total of 2,725 lines of code.
1409
1427
  # @return [Integer]
1410
1428
  #
1429
+ # @!attribute [rw] suppressed_lines_of_code_count
1430
+ # Lines of code suppressed in the code review based on the
1431
+ # `excludeFiles` element in the `aws-codeguru-reviewer.yml` file. For
1432
+ # full repository analyses, this number includes all lines of code in
1433
+ # the files that are suppressed. For pull requests, this number only
1434
+ # includes the *changed* lines of code that are suppressed. In both
1435
+ # cases, this number does not include non-code lines such as comments
1436
+ # and import statements. For example, if you initiate a full
1437
+ # repository analysis on a repository containing 5 files, each file
1438
+ # with 100 lines of code, and 2 files are listed as excluded in the
1439
+ # `aws-codeguru-reviewer.yml` file, then `SuppressedLinesOfCodeCount`
1440
+ # returns 200 (2 * 100) as the total number of lines of code
1441
+ # suppressed. However, if you submit a pull request for the same
1442
+ # repository, then `SuppressedLinesOfCodeCount` only includes the
1443
+ # lines in the 2 files that changed. If only 1 of the 2 files changed
1444
+ # in the pull request, then `SuppressedLinesOfCodeCount` returns 100
1445
+ # (1 * 100) as the total number of lines of code suppressed.
1446
+ # @return [Integer]
1447
+ #
1411
1448
  # @!attribute [rw] findings_count
1412
1449
  # Total number of recommendations found in the code review.
1413
1450
  # @return [Integer]
@@ -1416,6 +1453,7 @@ module Aws::CodeGuruReviewer
1416
1453
  #
1417
1454
  class MetricsSummary < Struct.new(
1418
1455
  :metered_lines_of_code_count,
1456
+ :suppressed_lines_of_code_count,
1419
1457
  :findings_count)
1420
1458
  SENSITIVE = []
1421
1459
  include Aws::Structure
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
49
49
  # @!group service
50
50
  module Aws::CodeGuruReviewer
51
51
 
52
- GEM_VERSION = '1.30.0'
52
+ GEM_VERSION = '1.31.0'
53
53
 
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codegurureviewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core