[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sonar-dev
Subject:    Re: [sonar-dev] How to use JavaFileScannerContext / getSemanticModel()
From:       Koval Jan <jkoval () gratex ! com>
Date:       2015-02-19 13:46:37
Message-ID: 54E5E93D.4030807 () gratex ! com
[Download RAW message or body]

+1
I've implemented a custom rule based on sonar examples then unit tested 
it but bumped into NoClassDefFound when plugin deployed in the sonar server.

I'm using the 
org.sonar.java.checks.methods.MethodInvocationMatcher.metches which 
requires semantic model instance as an argument.

[Attachment #3 (text/html)]

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
      Helvetica, Arial, sans-serif; font-size: 13.4399995803833px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);">+1<span
        class="Apple-converted-space">  </span></span><br style="color:
      rgb(0, 0, 0); font-family: Verdana, Geneva, Helvetica, Arial,
      sans-serif; font-size: 13.4399995803833px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">
    <span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
      Helvetica, Arial, sans-serif; font-size: 13.4399995803833px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);">I've implemented a
      custom rule based on sonar examples then unit tested it but bumped
      into NoClassDefFound when plugin deployed in the sonar server.<span
        class="Apple-converted-space">  </span></span><br style="color:
      rgb(0, 0, 0); font-family: Verdana, Geneva, Helvetica, Arial,
      sans-serif; font-size: 13.4399995803833px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: normal; orphans: auto; text-align: start;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255);">
    <br style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
      Helvetica, Arial, sans-serif; font-size: 13.4399995803833px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">
    <span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
      Helvetica, Arial, sans-serif; font-size: 13.4399995803833px;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: auto;
      text-align: start; text-indent: 0px; text-transform: none;
      white-space: normal; widows: auto; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);">I'm using the
      org.sonar.java.checks.methods.MethodInvocationMatcher.metches
      which requires semantic model instance as an argument.<span
        class="Apple-converted-space"> <br>
      </span></span>
  </body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic