Giter Club home page Giter Club logo

autocodefix's Introduction

Hi ๐Ÿ‘‹, I'm kzu

sounds like 'kah-zu' rather than 'kzoo' :)

A hardcore .NET/C# developer from Argentina

X Discord LinkedIn

I have set up a GitHub sponsor account so you can contribute to my ongoing opensource work, no minimum amount required!

Sponsor me ๐Ÿ’œ Sponsor me ๐Ÿ’œ

Some fancy stats about my favorite hobby (coding on GitHub, of course!):

And since I'm a total fan of Shields.io badges, some additional GitHub stats in badge format:

GitHub Sponsors GitHub followers GitHub stars GitHub followers GitHub Org's stars

autocodefix's People

Contributors

kzu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autocodefix's Issues

"InitializeBuildEnvironment" task failed unexpectedly.

I'm getting the following error on build with Rider:

  AutoCodeFix.Core.targets(36, 5): [MSB4018] The "InitializeBuildEnvironment" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Error 2147500035 (0x80004003 (E_POINTER))
File name: 'Microsoft.CodeAnalysis.Workspaces, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'uriString')
   at System.Uri..ctor(String uriString)
   at AutoCodeFix.AssemblyResolver.<>c__DisplayClass9_0.<LoadAssembly>b__5(AssemblyName name) in d:\a\1\s\src\AutoCodeFix.Tasks\AssemblyResolver.cs:line 88
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at AutoCodeFix.AssemblyResolver.LoadAssembly(AssemblyName assemblyName) in d:\a\1\s\src\AutoCodeFix.Tasks\AssemblyResolver.cs:line 81
   at AutoCodeFix.AssemblyResolver.ResolveAssembly(Object sender, ResolveEventArgs args) in d:\a\1\s\src\AutoCodeFix.Tasks\AssemblyResolver.cs:line 62
   at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
   at System.Runtime.Loader.AssemblyLoadContext.OnAssemblyResolve(RuntimeAssembly assembly, String assemblyFullName)
   at AutoCodeFix.InitializeBuildEnvironment.InitializeBuildWorkspace()
   at AutoCodeFix.InitializeBuildEnvironment.Execute() in d:\a\1\s\src\AutoCodeFix.Tasks\InitializeBuildEnvironment.cs:line 57
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Only AutoCodeFix addition in csproj besides the package reference:

  <ItemGroup>
    <AutoCodeFix Include="RCS1003" />
  </ItemGroup>

[Request] Provide report mechanism for code fixes

Hello,
As I mentioned in Twitter you did great with this library. Your idea is very useful for automation system scenarios.

What I am asking for is to provide a mechanism to get a report in which we could observe what kind of code fixes have been applied and on which part of codes. This is good if we can bind it with source controllers and detect which developer has the most code fixes.

Consider the following scenario, As a project manager my team consists of various developers, ranging from juniors to seniors, and regarding performance matters we have set rules to prohibit the use of some features for instance to use for rather than foreach or linq. That being said, we can use your library with the following AutoFix rule <AutoFix Include="SA1208" /> within the build process.

Such reports not only will help us to detect wich kind of mistakes are common in our team, also which developers are adhering to rules and which one require more education.

Report Sample:

UserName/Git Account; Diagnostic code; Datetime

Hamed; SA1208; Saturday 1 March 2019 07:38:05 UTC => or more human friendly: 1 hour ago
Hamed; SA1515; Saturday 2 March 2019 07:38:05 UTC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.