<commit_before>﻿using BlackFox.Roslyn.Diagnostics.RoslynExtensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;

namespace BlackFox.Roslyn.Diagnostics.MethodCanBeMadeStatic
{
    [DiagnosticAnalyzer]
    [ExportDiagnosticAnalyzer("BlackFox.MethodCanBeMadeStaticAnalyzer", LanguageNames.CSharp)]
    public class MethodCanBeMadeStaticAnalyzer : ISyntaxNodeAnalyzer<SyntaxKind>,
        ICompilationStartedAnalyzer/*, ICompilationEndedAnalyzer*/
    {
        public const string Id = "BlackFox.MethodCanBeMadeStatic";

        public static DiagnosticDescriptor Descriptor { get; }
            = new DiagnosticDescriptor(
                Id,
                "Method can be made static",
                "Method can be made static",
                "Readability",
                DiagnosticSeverity.Error,
                isEnabledByDefault: true);

        public ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
            = ImmutableArray.Create(Descriptor);<commit_msg>Fix 'Method can be made static' severity<commit_after>﻿using BlackFox.Roslyn.Diagnostics.RoslynExtensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Diagnostics;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading;

namespace BlackFox.Roslyn.Diagnostics.MethodCanBeMadeStatic
{
    [DiagnosticAnalyzer]
    [ExportDiagnosticAnalyzer("BlackFox.MethodCanBeMadeStaticAnalyzer", LanguageNames.CSharp)]
    public class MethodCanBeMadeStaticAnalyzer : ISyntaxNodeAnalyzer<SyntaxKind>,
        ICompilationStartedAnalyzer/*, ICompilationEndedAnalyzer*/
    {
        public const string Id = "BlackFox.MethodCanBeMadeStatic";

        public static DiagnosticDescriptor Descriptor { get; }
            = new DiagnosticDescriptor(
                Id,
                "Method can be made static",
                "Method can be made static",
                "Readability",
                DiagnosticSeverity.Info,
                isEnabledByDefault: true);

        public ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
            = ImmutableArray.Create(Descriptor);
{'fraction_non_alphanumeric': 0.07377049180327869, 'fraction_numerical': 0.0, 'mean_word_length': 3.512014787430684, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6347181', 'n_tokens_mistral': 648, 'n_tokens_neox': 608, 'n_words': 127}