<commit_before>﻿using JetBrains.DocumentModel;
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Tree;
using Sizikov.AsyncSuffix.Analyzer;


[assembly: RegisterConfigurableSeverity(ConsiderUsingAsyncSuffixHighlighting.SeverityId,
  null,
  HighlightingGroupIds.BestPractice,
  "Consider adding Async suffix",
  "Library code should use ConfigureAwait with every await. Always specifying ConfigureAwait makes it clearer how the continuation is invoked and avoids synchonization bugs.",
  Severity.SUGGESTION,
  false)]
namespace Sizikov.AsyncSuffix.Analyzer
{
    [ConfigurableSeverityHighlighting(SeverityId, CSharpLanguage.Name, OverlapResolve = OverlapResolveKind.WARNING)]
    public sealed class ConsiderUsingAsyncSuffixHighlighting : IHighlighting
    {
        public IMethodDeclaration MethodDeclaration { get; set; }
        public const string SeverityId = "ConsiderUsingAsyncSuffix";

        public ConsiderUsingAsyncSuffixHighlighting(IMethodDeclaration methodDeclaration)
        {
            MethodDeclaration = methodDeclaration;
        }

        public DocumentRange CalculateRange()
        {
            return MethodDeclaration.NameIdentifier.GetDocumentRange();
        }

        public string ToolTip
        {
            get { return "Async method name does not have 'Async' suffix"; }
        }<commit_msg>Highlighting description updated<commit_after>﻿using JetBrains.DocumentModel;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.CSharp;
using JetBrains.ReSharper.Psi.CSharp.Tree;
using JetBrains.ReSharper.Psi.Tree;
using Sizikov.AsyncSuffix.Analyzer;


[assembly: RegisterConfigurableSeverity(ConsiderUsingAsyncSuffixHighlighting.SeverityId,
  null,
  HighlightingGroupIds.BestPractice,
  "Consider adding Async suffix",
  "According do Microsoft gudlines a method which is Task-returning and is asynchronous in nature should have an 'Async' suffix. ",
  Severity.SUGGESTION,
  false)]
namespace Sizikov.AsyncSuffix.Analyzer
{
    [ConfigurableSeverityHighlighting(SeverityId, CSharpLanguage.Name, OverlapResolve = OverlapResolveKind.WARNING)]
    public sealed class ConsiderUsingAsyncSuffixHighlighting : IHighlighting
    {
        public IMethodDeclaration MethodDeclaration { get; set; }
        public const string SeverityId = "ConsiderUsingAsyncSuffix";

        public ConsiderUsingAsyncSuffixHighlighting(IMethodDeclaration methodDeclaration)
        {
            MethodDeclaration = methodDeclaration;
        }

        public DocumentRange CalculateRange()
        {
            return MethodDeclaration.NameIdentifier.GetDocumentRange();
        }

        public string ToolTip
        {
            get { return "Async method name does not have 'Async' suffix"; }
        }
{'fraction_non_alphanumeric': 0.06583936573595311, 'fraction_numerical': 0.0, 'mean_word_length': 4.055749128919861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1691350', 'n_tokens_mistral': 822, 'n_tokens_neox': 776, 'n_words': 178}