<commit_before>﻿<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
  <Import Project="VisualStudio.targets"/>
  <Import Project="XUnit.targets" Condition="'$(IsTestProject)' == 'true'" />

  <PropertyGroup>
    <FileAlignment>512</FileAlignment>

    <!-- 
      Only generate our runtimeconfig.json files for net core apps. It's unnecessary in desktop projects
      but gets included in lots of output items like VSIX.
    -->
    <GenerateRuntimeConfigurationFiles Condition="'$(TargetFramework)' != 'netcoreapp3.1'">false</GenerateRuntimeConfigurationFiles>

    <!--
      When building a .NET Core exe make sure to include the template runtimeconfig.json file 
      which has all of our global settings 
    -->
    <UserRuntimeConfig Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(OutputType)' == 'Exe'">$(RepositoryEngineeringDir)config\runtimeconfig.template.json</UserRuntimeConfig>

    <!--
      Disable nullable warnings when targeting anything other than our supported .NET core version(s). 
      This condition will be evaluated multiple times in multi-targeted projects hence need to be careful
      to only set in the inner builds, not the outer build where only $(TargetFrameworks) is defined.
    -->
    <DisableNullableWarnings Condition="'$(DisableNullableWarnings)' == '' AND $(TargetFrameworks.Contains('netcoreapp3.1')) AND '$(TargetFramework)' != '' AND '$(TargetFramework)' != 'netcoreapp3.1'">true</DisableNullableWarnings>
  </PropertyGroup>

  <PropertyGroup Condition="'$(DisableNullableWarnings)' == 'true'">
    <NoWarn>$(NoWarn);Nullable</NoWarn>
  </PropertyGroup>

  <ItemGroup Condition="'$(Language)' == 'CSharp' and '$(TargetFramework)' == 'net20'">
    <_ExplicitReference Include="$(FrameworkPathOverride)\mscorlib.dll" />
  </ItemGroup>
<commit_msg>Disable CodeStyle analyzers by default in CI for Roslyn.sln<commit_after>﻿<?xml version="1.0" encoding="utf-8"?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
  <Import Project="VisualStudio.targets"/>
  <Import Project="XUnit.targets" Condition="'$(IsTestProject)' == 'true'" />

  <PropertyGroup>
    <FileAlignment>512</FileAlignment>

    <!-- 
      Only generate our runtimeconfig.json files for net core apps. It's unnecessary in desktop projects
      but gets included in lots of output items like VSIX.
    -->
    <GenerateRuntimeConfigurationFiles Condition="'$(TargetFramework)' != 'netcoreapp3.1'">false</GenerateRuntimeConfigurationFiles>

    <!--
      When building a .NET Core exe make sure to include the template runtimeconfig.json file 
      which has all of our global settings 
    -->
    <UserRuntimeConfig Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(OutputType)' == 'Exe'">$(RepositoryEngineeringDir)config\runtimeconfig.template.json</UserRuntimeConfig>

    <!--
      Disable nullable warnings when targeting anything other than our supported .NET core version(s). 
      This condition will be evaluated multiple times in multi-targeted projects hence need to be careful
      to only set in the inner builds, not the outer build where only $(TargetFrameworks) is defined.
    -->
    <DisableNullableWarnings Condition="'$(DisableNullableWarnings)' == '' AND $(TargetFrameworks.Contains('netcoreapp3.1')) AND '$(TargetFramework)' != '' AND '$(TargetFramework)' != 'netcoreapp3.1'">true</DisableNullableWarnings>
  </PropertyGroup>

  <PropertyGroup Condition="'$(DisableNullableWarnings)' == 'true'">
    <NoWarn>$(NoWarn);Nullable</NoWarn>
  </PropertyGroup>
  
  <!-- Workaround for https://github.com/dotnet/roslyn/issues/42166 -->
  <!-- PERF: This property group prevents the analyzers from CodeStyle NuGet package from being executed by default in CI -->
  <PropertyGroup Condition="'$(DesignTimeBuild)' != 'true'">
    <NoWarn>$(NoWarn);IDE0004;IDE0004WithoutSuggestion;IDE0005;IDE0005_gen;IDE0007;IDE0007WithoutSuggestion;IDE0008;IDE0008WithoutSuggestion;IDE0009;IDE0009WithoutSuggestion;IDE0010;IDE0010WithoutSuggestion;IDE0011;IDE0011WithoutSuggestion;IDE0016;IDE0016WithoutSuggestion;IDE0017;IDE0017WithoutSuggestion;IDE0018;IDE0018WithoutSuggestion;IDE0019;IDE0019WithoutSuggestion;IDE0020;IDE0020WithoutSuggestion;IDE0021;IDE0022;IDE0023;IDE0024;IDE0025;IDE0026;IDE0027;IDE0028;IDE0028WithoutSuggestion;IDE0029;IDE0029WithoutSuggestion;IDE0030;IDE0030WithoutSuggestion;IDE0031;IDE0031WithoutSuggestion;IDE0032;IDE0032WithoutSuggestion;IDE0033;IDE0033WithoutSuggestion;IDE0034;IDE0034WithoutSuggestion;IDE0035;IDE0035WithoutSuggestion;IDE0036;IDE0036WithoutSuggestion;IDE0037;IDE0037WithoutSuggestion;IDE0040;IDE0040WithoutSuggestion;IDE0041;IDE0041WithoutSuggestion;IDE0042;IDE0042WithoutSuggestion;IDE0043;IDE0044;IDE0044WithoutSuggestion;IDE0045;IDE0045WithoutSuggestion;IDE0046;IDE0046WithoutSuggestion;IDE0047;IDE0048;IDE0048WithoutSuggestion;IDE0050;IDE0050WithoutSuggestion;IDE0051;IDE0052;IDE0054;IDE0054WithoutSuggestion;IDE0055;IDE0056;IDE0056WithoutSuggestion;IDE0057;IDE0057WithoutSuggestion;IDE0058;IDE0059;IDE0060;IDE0061;IDE0062;IDE0062WithoutSuggestion;IDE0063;IDE0063WithoutSuggestion;IDE0064;IDE0065;IDE0066;IDE0066WithoutSuggestion;IDE0070;IDE0070WithoutSuggestion;IDE0071;IDE0071WithoutSuggestion;IDE0072;IDE0072WithoutSuggestion;IDE0073;IDE0073WithoutSuggestion;IDE0074;IDE0074WithoutSuggestion;IDE0075;IDE0075WithoutSuggestion;IDE1005;IDE1005WithoutSuggestion;IDE1006;IDE1006WithoutSuggestion;RemoveUnnecessaryImportsFixable</NoWarn>
  </PropertyGroup>

  <ItemGroup Condition="'$(Language)' == 'CSharp' and '$(TargetFramework)' == 'net20'">
    <_ExplicitReference Include="$(FrameworkPathOverride)\mscorlib.dll" />
  </ItemGroup>

{'fraction_non_alphanumeric': 0.1132766949858404, 'fraction_numerical': 0.07612860236548392, 'mean_word_length': 6.5712484237074404, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 2, '>': 59, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2822282', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1581, 'n_words': 368}