You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently CLOC counts ".il" extension as "SKILL" type (which I'm unfamiliar with). There's another use of this extension, which is .NET intermediate language -- analagous to Java bytecode. Is it possible to handle that also? Right now on https://github.com/dotnet/runtime, which is something like the 15th most active repo on Github, it reports the following:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
.assembly extern mscorlib { }
.assembly 'devdiv_815942_' {}
.assembly extern xunit.core {}
.class public Repro
{
.method public static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
// This testcase ensures that we correctly compare a double local
// against a float const by converting the float const to double
// instead of converting the local to float and losing precision
.entrypoint
.locals init (float64 V_1)
ldc.i4.1
conv.i8
call float64 [mscorlib]System.BitConverter::Int64BitsToDouble(int64)
conv.r8
stloc.0
ldloc.0
ldc.r4 0.0
bne.un.s PASS
ldstr "FAIL!"
call void [System.Console]System.Console::WriteLine(string)
ldloc.0
call void [System.Console]System.Console::WriteLine(float64)
ldc.i4.s 101
ret
PASS:
ldstr "PASS!"
call void [System.Console]System.Console::WriteLine(string)
ldc.i4.s 100
ret
}
}
Sure, I'll be able to add a fix that supports both .NET IL and SKILL. Cases where file extensions collide mean I'll need to write a disambiguation function but that shouldn't be hard as SKILL doesn't used braces.
Currently CLOC counts ".il" extension as "SKILL" type (which I'm unfamiliar with). There's another use of this extension, which is .NET intermediate language -- analagous to Java bytecode. Is it possible to handle that also? Right now on https://github.com/dotnet/runtime, which is something like the 15th most active repo on Github, it reports the following:
but there are no "SKILL" files.
Details:
//
see example belowexample .IL file:
more info: https://en.wikipedia.org/wiki/Common_Intermediate_Language
The text was updated successfully, but these errors were encountered: