Giter Site home page Giter Site logo

sonarqube.net's Introduction

Icon

SonarQube.Net

Build status license NuGet

C# Client for SonarQube 8+

Features

  • api/authentication
  • api/ce
  • api/components
  • api/duplications
  • api/favorites
  • api/issues
  • api/languages
  • api/measures
  • api/metrics
  • api/new_code_periods
  • api/notifications
  • api/permissions
  • api/plugins
  • api/project_analyses
  • api/project_badges
  • api/project_branches
  • api/project_links
  • api/project_pull_requests
  • api/project_tags
  • api/projects
  • api/qualitygates
  • api/qualityprofiles
  • api/rules
  • api/server
  • api/settings
  • api/sources
  • api/system
  • api/user_groups
  • api/user_tokens
  • api/users
  • api/webhooks
  • api/webservices

sonarqube.net's People

Contributors

artemutin avatar lvermeulen avatar stingyjack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sonarqube.net's Issues

Some measures in a repsonse from /api/measures/component are not properly parsed

1 - Make a GET request to https://<SQ_URL>/api/measures/component?component=<ProjectKey>&metricKeys=ncloc, coverage, new_uncovered_conditions, new_vulnerabilities using SonarQubeClient.GetMeasuresComponentAsync.
2 - The raw response from SonarQube is:

{
    "component": {
        "key": "<ProjectKey>",
        "name": "<ProjectName>",
        "qualifier": "TRK",
        "measures": [
            {
                "metric": "coverage",
                "value": "35.6",
                "bestValue": false
            },
            {
                "metric": "new_uncovered_conditions",
                "periods": [
                    {
                        "index": 1,
                        "value": "4298",
                        "bestValue": false
                    }
                ],
                "period": {
                    "index": 1,
                    "value": "4298",
                    "bestValue": false
                }
            },
            {
                "metric": "ncloc",
                "value": "68480"
            },
            {
                "metric": "new_vulnerabilities",
                "periods": [
                    {
                        "index": 1,
                        "value": "1",
                        "bestValue": false
                    }
                ],
                "period": {
                    "index": 1,
                    "value": "1",
                    "bestValue": false
                }
            }
        ]
    }
}

Expected:
ComponentMeasures:

  • coverage = 35.6
  • ncloc = 68480
  • new_uncovered_conditions = 4298
  • new_vulnerabilities = 1

Observed:
ComponentMeasures:

  • coverage = 35.6
  • ncloc = 68480
  • new_uncovered_conditions = null
  • new_vulnerabilities = null

Wow this installs a lot of dependencies for an API client

I installed this into a dotnet 5 console app, and below is the list of dependencies it wanted to install. A lot of these are due to that System.Xml.XmlSerializer that the Furl.Http.Xml package depends on, which is only used for a single extension method. Its not going to stop me from using this package for my console utility (thanks, by the way), but you may want to consider slimming down the dependencies.

Flurl.2.8.2
Flurl.Http.2.4.2
Flurl.Http.Xml.1.6.1
Microsoft.CSharp.4.7.0
Microsoft.NETCore.Platforms.3.1.0
Microsoft.NETCore.Targets.1.1.0
Microsoft.Win32.Primitives.4.3.0
NETStandard.Library.1.6.1
Newtonsoft.Json.12.0.2
runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.native.System.4.3.0
runtime.native.System.IO.Compression.4.3.0
runtime.native.System.Net.Http.4.3.0
runtime.native.System.Security.Cryptography.Apple.4.3.0
runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple.4.3.0
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl.4.3.0
SonarQube.Net.1.0.2
System.AppContext.4.3.0
System.Buffers.4.3.0
System.Collections.4.3.0
System.Collections.Concurrent.4.3.0
System.Console.4.3.0
System.Diagnostics.Debug.4.3.0
System.Diagnostics.DiagnosticSource.4.3.0
System.Diagnostics.Tools.4.3.0
System.Diagnostics.Tracing.4.3.0
System.Globalization.4.3.0
System.Globalization.Calendars.4.3.0
System.Globalization.Extensions.4.3.0
System.IO.4.3.0
System.IO.Compression.4.3.0
System.IO.Compression.ZipFile.4.3.0
System.IO.FileSystem.4.3.0
System.IO.FileSystem.Primitives.4.3.0
System.Linq.4.3.0
System.Linq.Expressions.4.3.0
System.Net.Http.4.3.0
System.Net.Primitives.4.3.0
System.Net.Sockets.4.3.0
System.ObjectModel.4.3.0
System.Reflection.4.3.0
System.Reflection.Emit.4.3.0
System.Reflection.Emit.ILGeneration.4.3.0
System.Reflection.Emit.Lightweight.4.3.0
System.Reflection.Extensions.4.3.0
System.Reflection.Primitives.4.3.0
System.Reflection.TypeExtensions.4.3.0
System.Resources.ResourceManager.4.3.0
System.Runtime.4.3.0
System.Runtime.Extensions.4.3.0
System.Runtime.Handles.4.3.0
System.Runtime.InteropServices.4.3.0
System.Runtime.InteropServices.RuntimeInformation.4.3.0
System.Runtime.Numerics.4.3.0
System.Security.Cryptography.Algorithms.4.3.0
System.Security.Cryptography.Cng.4.3.0
System.Security.Cryptography.Csp.4.3.0
System.Security.Cryptography.Encoding.4.3.0
System.Security.Cryptography.OpenSsl.4.3.0
System.Security.Cryptography.Primitives.4.3.0
System.Security.Cryptography.X509Certificates.4.3.0
System.Text.Encoding.4.3.0
System.Text.Encoding.CodePages.4.7.0
System.Text.Encoding.Extensions.4.3.0
System.Text.RegularExpressions.4.3.0
System.Threading.4.3.0
System.Threading.Tasks.4.3.0
System.Threading.Tasks.Extensions.4.3.0
System.Threading.Timer.4.3.0
System.Xml.ReaderWriter.4.3.0
System.Xml.XDocument.4.3.0
System.Xml.XmlDocument.4.3.0
System.Xml.XmlSerializer.4.3.0
System.Xml.XPath.4.0.1
System.Xml.XPath.XDocument.4.0.1

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.