Git Product home page Git Product logo

immutableanalyzer's Introduction

Hello World! ๐Ÿ‘‹

โœจ My name is Daniil
โš™๏ธ I'm a software engineer from Moscow, Russia.

immutableanalyzer's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar protomorphine avatar

Stargazers

 avatar

Watchers

 avatar

immutableanalyzer's Issues

Codefix providers

Add codefix providers to project.

  1. fix property set accessor to:
    1.1. init
    1.2. private set

  2. change mutable collection to immutable analog e.g.
    List<> -> IReadOnlyLst
    Dictionary<,> -> ImmutableDictionary<,> or IReadOnlyDictionary<,>
    and etc.

Doxygen documentation

Need to rework doxygen documentation with:

  • public attribute refences
  • instalation instructions

Nuget package

Problem
.NET community have a nice package managment system. It's very hard and painfull to intergrate and use this tool in other projects by adding this manually, from github.

Solution
Pack this analyzer and publish on Nuget

Add tests to user defined type checks.

Need to cover by tests this functionality.

Short description

User defined classes, which marked by Immutable attribute, don't violates immutability of other classes.

Example

In code below, in class Example, property ImmutableExample shouldn't raise diagnostic, because property type (ImmutableExample) is immutable.

[Immutable]
public class ImmutableExample
{
    public int Id { get; init; }
}

public class NotImmutableExample
{
    public List<int> Ints { get; set; } = new();
}

[Immutable]
public class Example
{
    public ImmutableExample ImmutableExample { get; init; } = new();
    public NotImmutableExample MutableExample { get; init; } = new();
}

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.