Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tracecompass-dev] Sonar analysis "false positives"

I can look into that. It may require a very specific exclusion though.
IIRC eclipse will only start looking at sonar in late q2-q3 15. I will
have to confirm.

On 15-04-01 01:33 PM, Marc-André Laperle wrote:
> Interesting! Matthew, do you know if that's configurable in the
> profile (on your test server)? We can ask to change the Eclipse
> profile if it makes sense for everyone to have this rule, there is
> precedent for that. We can open a bug against Community/Sonar if we
> need to.
>
> ------------------------------------------------------------------------
> *From:* tracecompass-dev-bounces@xxxxxxxxxxx
> [tracecompass-dev-bounces@xxxxxxxxxxx] on behalf of Patrick Tasse
> [patrick.tasse@xxxxxxxxx]
> *Sent:* Wednesday, 01 April 2015 1:28 PM
> *To:* tracecompass developer discussions
> *Subject:* Re: [tracecompass-dev] Sonar analysis "false positives"
>
> > 3- In Messages only: our code style for messages.java fieldnames is as
> > follows: ModuleName_CamelCaseMessage, it's weird, but that underscore is
> > actually useful, so we will keep it.
>
> This underscore is actually set by default if you use the 'Externalize
> Strings' wizard in Eclipse and tick the checkbox 'Use Eclipse's string
> externalization mechanism'.
>
>
> On Wed, Apr 1, 2015 at 1:22 PM, Matthew Khouzam
> <matthew.khouzam@xxxxxxxxxxxx <mailto:matthew.khouzam@xxxxxxxxxxxx>>
> wrote:
>
>     Hi,
>
>     After discussing internally, unless there are any objections some
>     sonar
>     warnings will be marked as false positive since we are following the
>     eclipse rules and not our own. These are good rules but don't reflect
>     our code reality.
>
>     1- Annotation order on nullable annotations
>     We write
>
>     private final @NonNull String foo
>
>     sonar wants
>
>     @NonNull
>     private final String foo
>
>     2- In Messages only: we have public static not final fields without
>     getters and setters. It is how eclipse externalizes Strings, we
>     are not
>     about to rewrite eclipse to appease a warning, even though it's valid.
>
>     3- In Messages only: our code style for messages.java fieldnames is as
>     follows: ModuleName_CamelCaseMessage, it's weird, but that
>     underscore is
>     actually useful, so we will keep it.
>
>     Of course, feedback is very welcome!
>
>     BR
>
>     Matthew
>
>     _______________________________________________
>     tracecompass-dev mailing list
>     tracecompass-dev@xxxxxxxxxxx <mailto:tracecompass-dev@xxxxxxxxxxx>
>     To change your delivery options, retrieve your password, or
>     unsubscribe from this list, visit
>     https://dev.eclipse.org/mailman/listinfo/tracecompass-dev
>
>
>
>
> _______________________________________________
> tracecompass-dev mailing list
> tracecompass-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tracecompass-dev



Back to the top