From 0111f140de411af6d12124f1269c8859d2494508 Mon Sep 17 00:00:00 2001 From: Tom Hvitved Date: Thu, 29 Oct 2020 20:23:07 +0100 Subject: [PATCH] C#: Convert 1.26 change notes --- change-notes/1.26/analysis-csharp.md | 35 ------------------- csharp/change-notes/2020-08-18-ast-viewer.md | 2 ++ .../2020-08-18-partial-method-bodies.md | 2 ++ .../2020-08-26-implicit-array-lengths.md | 5 +++ .../2020-09-02-assembly-insensitive-trap.md | 5 +++ .../2020-09-22-weak-encryption.md | 2 ++ 6 files changed, 16 insertions(+), 35 deletions(-) delete mode 100644 change-notes/1.26/analysis-csharp.md create mode 100644 csharp/change-notes/2020-08-18-ast-viewer.md create mode 100644 csharp/change-notes/2020-08-18-partial-method-bodies.md create mode 100644 csharp/change-notes/2020-08-26-implicit-array-lengths.md create mode 100644 csharp/change-notes/2020-09-02-assembly-insensitive-trap.md create mode 100644 csharp/change-notes/2020-09-22-weak-encryption.md diff --git a/change-notes/1.26/analysis-csharp.md b/change-notes/1.26/analysis-csharp.md deleted file mode 100644 index 3d17e00ab70..00000000000 --- a/change-notes/1.26/analysis-csharp.md +++ /dev/null @@ -1,35 +0,0 @@ -# Improvements to C# analysis - -The following changes in version 1.26 affect C# analysis in all applications. - -## New queries - -| **Query** | **Tags** | **Purpose** | -|-----------------------------|-----------|--------------------------------------------------------------------| - - -## Changes to existing queries - -| **Query** | **Expected impact** | **Change** | -|------------------------------|------------------------|-----------------------------------| -| Weak encryption: Insufficient key size (`cs/insufficient-key-size`) | More results | The required key size has been increased from 1024 to 2048. | - -## Removal of old queries - -## Changes to code extraction - -* Partial method bodies are extracted. Previously, partial method bodies were skipped completely. -* Inferring the lengths of implicitely sized arrays is fixed. Previously, multidimensional arrays were always extracted with the same length for -each dimension. With the fix, the array sizes `2` and `1` are extracted for `new int[,]{{1},{2}}`. Previously `2` and `2` were extracted. -* The extractor is now assembly-insensitive by default. This means that two entities with the same - fully-qualified name are now mapped to the same entity in the resulting database, regardless of - whether they belong to different assemblies. Assembly sensitivity can be reenabled by passing - `--assemblysensitivetrap` to the extractor. - -## Changes to libraries - -## Changes to autobuilder - -## Changes to tooling support - -* The Abstract Syntax Tree of C# files can be printed in Visual Studio Code. diff --git a/csharp/change-notes/2020-08-18-ast-viewer.md b/csharp/change-notes/2020-08-18-ast-viewer.md new file mode 100644 index 00000000000..767b30e716c --- /dev/null +++ b/csharp/change-notes/2020-08-18-ast-viewer.md @@ -0,0 +1,2 @@ +tooling +* The Abstract Syntax Tree of C# files can be viewed in Visual Studio Code. diff --git a/csharp/change-notes/2020-08-18-partial-method-bodies.md b/csharp/change-notes/2020-08-18-partial-method-bodies.md new file mode 100644 index 00000000000..0a774297b1f --- /dev/null +++ b/csharp/change-notes/2020-08-18-partial-method-bodies.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* Partial method bodies are extracted. Previously, partial method bodies were skipped. diff --git a/csharp/change-notes/2020-08-26-implicit-array-lengths.md b/csharp/change-notes/2020-08-26-implicit-array-lengths.md new file mode 100644 index 00000000000..7152975b292 --- /dev/null +++ b/csharp/change-notes/2020-08-26-implicit-array-lengths.md @@ -0,0 +1,5 @@ +lgtm,codescanning +* Inferring the lengths of implicitely sized arrays is fixed. Previously, multi + dimensional arrays were always extracted with the same length for each dimension. + With the fix, the array sizes `2` and `1` are extracted for `new int[,]{{1},{2}}`. + Previously `2` and `2` were extracted. diff --git a/csharp/change-notes/2020-09-02-assembly-insensitive-trap.md b/csharp/change-notes/2020-09-02-assembly-insensitive-trap.md new file mode 100644 index 00000000000..80f15554549 --- /dev/null +++ b/csharp/change-notes/2020-09-02-assembly-insensitive-trap.md @@ -0,0 +1,5 @@ +lgtm,codescanning +* The extractor is now assembly-insensitive by default. This means that two entities + with the same fully-qualified name are now mapped to the same entity in the resulting + database, regardless of whether they belong to different assemblies. Assembly + sensitivity can be reenabled by passing `--assemblysensitivetrap` to the extractor. diff --git a/csharp/change-notes/2020-09-22-weak-encryption.md b/csharp/change-notes/2020-09-22-weak-encryption.md new file mode 100644 index 00000000000..8c3f1ac4809 --- /dev/null +++ b/csharp/change-notes/2020-09-22-weak-encryption.md @@ -0,0 +1,2 @@ +lgtm,codescanning +* The required key size for the query "Weak encryption: Insufficient key size" has been increased from 1024 to 2048.