File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Semmle.Extraction.CSharp.Entities
6
6
{
7
7
internal class CompilerDiagnostic : FreshEntity
8
8
{
9
- private static readonly int limit = EnvironmentVariables . TryGetExtractorOption < int > ( "COMPILER_DIAGNOSTIC_LIMIT" ) ?? 1000 ;
9
+ private static readonly int limit = EnvironmentVariables . TryGetExtractorNumberOption < int > ( "COMPILER_DIAGNOSTIC_LIMIT" ) ?? 1000 ;
10
10
private static readonly ConcurrentDictionary < string , int > messageCounts = new ( ) ;
11
11
12
12
private readonly Microsoft . CodeAnalysis . Diagnostic diagnostic ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Semmle.Extraction.Entities
6
6
{
7
7
internal class ExtractionMessage : FreshEntity
8
8
{
9
- private static readonly int limit = EnvironmentVariables . TryGetExtractorOption < int > ( "MESSAGE_LIMIT" ) ?? 10000 ;
9
+ private static readonly int limit = EnvironmentVariables . TryGetExtractorNumberOption < int > ( "MESSAGE_LIMIT" ) ?? 10000 ;
10
10
private static int messageCount = 0 ;
11
11
12
12
private readonly Message msg ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public class EnvironmentVariables
9
9
public static string ? GetExtractorOption ( string name ) =>
10
10
Environment . GetEnvironmentVariable ( $ "CODEQL_EXTRACTOR_CSHARP_OPTION_{ name . ToUpper ( ) } ") ;
11
11
12
- public static T ? TryGetExtractorOption < T > ( string name ) where T : struct , INumberBase < T >
12
+ public static T ? TryGetExtractorNumberOption < T > ( string name ) where T : struct , INumberBase < T >
13
13
{
14
14
var value = GetExtractorOption ( name ) ;
15
15
if ( T . TryParse ( value , NumberStyles . Number , CultureInfo . InvariantCulture , out var result ) )
You can’t perform that action at this time.
0 commit comments