Skip to content

Commit

Permalink
Disabled Sevntu Checkstyle tests due to issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisfeld committed Aug 6, 2017
1 parent fb8e218 commit 4b8a621
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public final class AudioUtil {
*/
private static final Short[] TONE_MAP = {(short) 0, Short.MAX_VALUE, (short) 0, Short.MIN_VALUE};

/**
* A map used for generation of simplified high frequency sine wave.
*/
private static final Short[] TONE_MAP_2 = {Short.MAX_VALUE, Short.MIN_VALUE};

/**
Expand Down Expand Up @@ -128,7 +131,7 @@ public static class Beep {
private AudioTrack mAudioTrack = generateTone();

private AudioTrack generateTone() {
return generateTonePulse(25, TONE_LENGTH);
return generateTonePulse(25, TONE_LENGTH); // MAGIC_NUMBER
}

/**
Expand Down
105 changes: 78 additions & 27 deletions je_checks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,37 +103,13 @@ JE Customizations of Sun Checks (Eclipse)
<module name="AbbreviationAsWordInName">
<property name="allowedAbbreviationLength" value="1"/>
</module>
<module name="AvoidHidingCauseException"/>
<module name="ConfusingConditionCheck"/>
<module name="EmptyPublicCtorInClassCheck"/>
<module name="ForbidThrowAnonymousExceptionsCheck"/>
<module name="MapIterationInForEachLoop"/>
<module name="MultipleStringLiteralsExtended">
<property name="allowedDuplicates" value="3"/>
<property name="highlightAllDuplicates" value="true"/>
</module>
<module name="MultipleStringLiteralsExtended">
<property name="severity" value="info"/>
<property name="allowedDuplicates" value="2"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="info"/>
</module>
<module name="NoNullForCollectionReturnCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="OverridableMethodInConstructor"/>
<module name="EitherLogOrThrowCheck"/>
<module name="UnnecessaryParenthesesExtended"/>
<module name="UselessSingleCatchCheck"/>
<module name="UselessSuperCtorCallCheck"/>
<module name="TernaryPerExpressionCount"/>
<module name="NestedSwitchCheck"/>
<module name="AvoidConditionInversionCheck"/>
<module name="NoMainMethodInAbstractClass"/>
<module name="ForbidWildcardAsReturnType"/>
<module name="InterfaceTypeParameterNameCheck"/>
<module name="EnumValueName">
<property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
<module name="InterfaceTypeParameterNameCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="EmptyCatchBlock"/>
<module name="CovariantEquals"/>
Expand Down Expand Up @@ -176,6 +152,81 @@ JE Customizations of Sun Checks (Eclipse)
<module name="MemberName">
<property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
</module>
<module name="AvoidHidingCauseExceptionCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="EnumValueNameCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MultipleStringLiteralsExtendedCheck">
<property name="severity" value="ignore"/>
<property name="allowedDuplicates" value="2"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="info"/>
</module>
<module name="MultipleStringLiteralsExtendedCheck">
<property name="severity" value="ignore"/>
<property name="allowedDuplicates" value="3"/>
<property name="highlightAllDuplicates" value="true"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ConfusingConditionCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="EmptyPublicCtorInClassCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ForbidThrowAnonymousExceptionsCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="MapIterationInForEachLoopCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="OverridableMethodInConstructorCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="EitherLogOrThrowCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UnnecessaryParenthesesExtendedCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UselessSingleCatchCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UselessSuperCtorCallCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="TernaryPerExpressionCountCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="NestedSwitchCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="AvoidConditionInversionCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="NoMainMethodInAbstractClassCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="ForbidWildcardAsReturnTypeCheck">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
</module>
<module name="JavadocPackage"/>
<module name="NewlineAtEndOfFile"/>
Expand Down

0 comments on commit 4b8a621

Please sign in to comment.