org.sonar.javascript.checks.CheckList Maven / Gradle / Ivy
/*
* Sonar JavaScript Plugin
* Copyright (C) 2011 Eriks Nukis and SonarSource
* [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
*/
package org.sonar.javascript.checks;
import com.google.common.collect.ImmutableList;
import java.util.List;
public final class CheckList {
public static final String REPOSITORY_KEY = "javascript";
public static final String SONAR_WAY_PROFILE = "Sonar way";
private CheckList() {
}
public static List getChecks() {
return ImmutableList. of(
ParsingErrorCheck.class,
XPathCheck.class,
CommentedCodeCheck.class,
FunctionComplexityCheck.class,
DebuggerStatementCheck.class,
WithStatementCheck.class,
EqEqEqCheck.class,
CommentRegularExpressionCheck.class,
EvalCheck.class,
OneStatementPerLineCheck.class,
SemicolonCheck.class,
AlwaysUseCurlyBracesCheck.class,
MultilineStringLiteralsCheck.class,
SingleQuoteStringLiteralsCheck.class,
ArrayAndObjectConstructorsCheck.class,
BitwiseOperatorsCheck.class,
PrimitiveWrappersCheck.class,
ForInCheck.class,
FunctionDeclarationsWithinBlocksCheck.class,
TrailingCommaCheck.class,
AssignmentWithinConditionCheck.class,
LabelPlacementCheck.class,
LineLengthCheck.class,
UnreachableCodeCheck.class,
ConditionalOperatorCheck.class,
ParenthesesCheck.class,
NestedIfDepthCheck.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy