Skip to content

Package to add Roslyn Analyzers to Unity projects.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

tertle/com.bovinelabs.analyzers

Folders and files

NameName
Last commit message
Last commit date
Sep 17, 2021
Sep 17, 2021
Mar 29, 2021
May 15, 2019
May 22, 2019
Jun 6, 2020
Dec 29, 2018
Jan 15, 2019
Sep 17, 2021
Dec 29, 2018

Repository files navigation

com.bovinelabs.analyzers

A package to easily add Roslyn Analyzers to Unity projects.

Install

Add the package to your manifest.json file located under the Packages folder.

  "dependencies": {
    "com.bovinelabs.analyzers": "https://github.com/tertle/com.bovinelabs.analyzers.git",

Alternatively download into the Packages/com.bovinelabs.analyzers folder. Please note importing to a directory outside of the Packages folder is not supported.

Using

A simple UI interface is available at Windows/BovineLabs/Analyzers. This allows you change the target directory for the analyzers.

An option to import StyleCop (with a few custom rules for Unity) is available for use or as a test. If working, you should see your analyzers in your project references, under for example, References/Analyzers/StyleCop.Analyzers

Requirements

  • Unity 2018.3.0f2 onwards.
  • Visual Studios or Rider

Unfortunately as far as I can tell, other code editors such as Visual Studio Code do not support Roslyn Analyzers at this point. If I am mistaken please point me in the right direction and I'll see if there is anyway to support it.

Note, adding the package should not cause any issues to other team members who do use an unsupported IDE.

About

Package to add Roslyn Analyzers to Unity projects.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages