Coder Social home page Coder Social logo

konh / unityrefanalyzer Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 1.14 MB

Roslyn code analyzer to find method usages on scenes

License: MIT License

C# 93.61% PowerShell 6.07% Shell 0.32%
unity unity3d unity2d unity-3d unity-2d unity-editor unity-plugin unityplugins unity3d-plugin csharp csharp-code csharp-library roslyn roslyn-analyzer roslyn-analyzers code-analysis static-code-analysis game-development gamedev

unityrefanalyzer's Issues

Add exception helper methods

It's annoying to write such code:

if ( string.IsNullOrEmpty(srcPath) ) {
throw new ArgumentException("srcPath");
}

It's utility code, which required to don't spread errors in code deeply. And it need to be much more simple.
I suggest to use ExceptionHelper methods, which get's object, check it in some way (null, empty string) and raise exception from one place.

Fix working on Mac OS + Rider

When it started, we got exception:
Analyzer 'RefAnalyzer.RefAnalyzer' threw an exception of type 'System.IO.FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.'.
It's related to way how we find refs file, based on solution, which is Visual Studio based. Need to find workaround.

Improve Unity exporter UI

  • Window title
  • Header with short description
  • Async processing
  • Progress reporting with some progress bar

Summary for v0.0.1

Features short list:

  • Collect info about assigned via Inspector UnityEvent callbacks from scenes - #2
  • Save it to cache file - #2
  • Load it to analyzer - #4
  • Show warnings/hints on methods which is assigned via Inspector - #5
  • Write overview docs about how it import, use & maintain - #6

Fix missing dependecy issue when trying to parse json in analyzer

Currently we get exception on this line:

System.IO.FileNotFoundException: 'Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.'

It's related to external dependency, which isn't copied to analyzer package.
Solution isn't yet found.

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.