locked
Tools or plug ins for chceking S.O.L.I.D principles? RRS feed

  • General discussion

  • Does anyone know if there are 3rd party tools that will check for solid principle violations in your code?


    chuckdawit

    Tuesday, November 27, 2012 12:18 AM

All replies

  • Hello

    I think, there no good instrument, except of our head to do it.

    SRP - can not be checked by any tool, because it Your decision, if class have a lot of responsibilities. Tool can not understand class meaning, i think.
    OCP - tool must check if class derives form abstract class or class implements interface? You can do it easily, i think.
    LSP - it is a complicated task for tool, i think. Maybe in future will be tool with AI, so it will able check LSP violation.
    ISP - tool can not tell you if you have "fat" interface (like in SRP). You and Your head do it.
    DIP - you can build tool, that will insert dependency injection by constructor/property into all classes, but i think, is odd.

    IMHO

    Tuesday, December 18, 2012 9:00 AM