GithubHelp home page GithubHelp logo

Reduce Cyclomatic Complexity about yaxlib HOT 5 CLOSED

yaxlib avatar yaxlib commented on July 20, 2024
Reduce Cyclomatic Complexity

from yaxlib.

Comments (5)

axunonb avatar axunonb commented on July 20, 2024 1

Candidates for improving Cyclomatic Complexity:

Method Cycl. Compl.
YAXSerializer.SerializeBase(object obj, XName className) 70
YAXSerializer.MakeDictionaryElement(XElement insertionLocation, XName elementName, object elementValue, YAXDictionaryAttribute dicAttrInst, YAXCollectionAttribute collectionAttrInst, bool dontSerializeNull) 33
YAXSerializer.DeserializeBase(XElement baseElement) 67
YAXSerializer.RetrieveElementValue(object o, MemberWrapper member, string elemValue, XElement xelemValue) 33
YAXSerializer.DeserializeCollectionValue(Type colType, XElement xelemValue, XName memberAlias, YAXCollectionAttribute colAttrInstance) 59
YAXSerialzer.DeserializeTaggedDictionaryValue(XElement xelemValue, XName alias, Type type, YAXCollectionAttribute colAttributeInstance, YAXDictionaryAttribute dicAttrInstance) 25

from yaxlib.

304NotModified avatar 304NotModified commented on July 20, 2024

Is there a version 3 planned?

I found it very useful to check the code complexity of a method. see Cyclomatic Complexity Resharper plugin. Some methods have now +100 in code complexity. (the default threshold is 20, but 15 is better IMO)

from yaxlib.

sinairv avatar sinairv commented on July 20, 2024

Absolutely agree with the Cyclomatic Complexity issues stated above, and that was originally the reason I logged this issue.

Given the relatively small number of people using the library and other available options in the .NET Framework, I was thinking it may not be worth investing more time and energy developing v3. Do you have any plans using it for NLog or somewhere else?

from yaxlib.

acvanzant avatar acvanzant commented on July 20, 2024

I like it just how it is. Wonderful library. NIEM is a headache of a thing to deal with and this is excellent, so far, at removing the unneeded complexity.

from yaxlib.

axunonb avatar axunonb commented on July 20, 2024

Some efforts are made on the way to v4

from yaxlib.

Related Issues (20)

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.