Skip to content

Commit

Permalink
Tell sonar to not check Messages classes
Browse files Browse the repository at this point in the history
NLS Message classes use a non Java compliant formating of field names.
However this is the common practice to do so. Therefore we are are
suppressing Sonars rule

 squid:S3008 - Static non-final field names should comply with a naming
convention.

to not disturb us with this noise.
  • Loading branch information
azoitl committed Dec 17, 2023
1 parent 98a6240 commit 63a0b60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import org.eclipse.osgi.util.NLS;

@SuppressWarnings("squid:S3008") // tell sonar the java naming convention does not make sense for this class
public class LogicMessages extends NLS {

public static String AddCommand_Label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import org.eclipse.osgi.util.NLS;

@SuppressWarnings("squid:S3008") // tell sonar the java naming convention does not make sense for this class
public final class Messages extends NLS {

private static final String BUNDLE_NAME = "org.eclipse.gef.examples.ui.pde.internal.l10n.Messages";//$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @author hudsonr
* @since 2.0
*/
@SuppressWarnings("squid:S3008") // tell sonar the java naming convention does not make sense for this class
public class GEFMessages extends NLS {

public static String AlignBottomAction_Label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
/**
* @author Pratik Shah
*/
@SuppressWarnings("squid:S3008") // tell sonar the java naming convention does not make sense for this class
public class PaletteMessages extends NLS {

/**
Expand Down

0 comments on commit 63a0b60

Please sign in to comment.