Merge branch 'master' into pr-2656
This commit is contained in:
@ -13,7 +13,10 @@ import net.sourceforge.pmd.lang.ParserOptions;
|
||||
import net.sourceforge.pmd.properties.BooleanProperty;
|
||||
import net.sourceforge.pmd.properties.EnumeratedProperty;
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed in 7.0 TODO refactor this into language versions?
|
||||
*/
|
||||
@Deprecated
|
||||
public class EcmascriptParserOptions extends ParserOptions {
|
||||
|
||||
public enum Version {
|
||||
|
@ -12,7 +12,10 @@ import net.sourceforge.pmd.lang.ecmascript.EcmascriptParserOptions.Version;
|
||||
import net.sourceforge.pmd.lang.rule.XPathRule;
|
||||
import net.sourceforge.pmd.properties.PropertyDescriptor;
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated Parser options are deprecated, use {@link XPathRule} directly
|
||||
*/
|
||||
@Deprecated
|
||||
public class EcmascriptXPathRule extends XPathRule {
|
||||
|
||||
private static final PropertyDescriptor<Boolean> RECORDING_COMMENTS_DESCRIPTOR = EcmascriptParserOptions.RECORDING_COMMENTS_DESCRIPTOR;
|
||||
|
@ -37,6 +37,7 @@ with (object) {
|
||||
</rule>
|
||||
|
||||
<rule name="ConsistentReturn"
|
||||
language="ecmascript"
|
||||
since="5.0"
|
||||
message="A function should not mix 'return' statements with and without a result."
|
||||
class="net.sourceforge.pmd.lang.ecmascript.rule.bestpractices.ConsistentReturnRule"
|
||||
|
Reference in New Issue
Block a user