Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.selesse.jxlint.model.rules;
 
 import java.io.File;
 import java.util.List;

Interface specification of a container of list rules. Has utility methods to deal with various LintRule configurations.
 
public interface LintRules {
    
Get the LintRule object that matches the given rule name. Throw a NonExistentLintRuleException if such a rule doesn't exist.
    LintRule getLintRule(String ruleNamethrows NonExistentLintRuleException;

    
Return every single rule, including ones off by default.
    List<LintRulegetAllRules();

    
Get all rules enabled by default.
    List<LintRulegetAllRulesExcept(List<StringdisabledRules);
    List<LintRulegetAllEnabledRulesExcept(List<StringdisabledRules);
    List<LintRulegetAllEnabledRulesAsWellAs(List<StringenabledRulesList);
    List<LintRulegetRulesWithCategoryNames(List<StringenabledCategoriesList);
    List<LintRulegetOnlyRules(List<StringcheckRulesList);
    List<LintRulegetAllRulesWithSeverity(Severity severity);

    
Set the source/root directory. This is the directory that was passed to the program, i.e. "java -jar myjar.jar sourceDirectory".
    void setSourceDirectory(File sourceDirectory);

    
Get the source/root directory. This is the directory that was passed to the program, i.e. "java -jar myjar.jar sourceDirectory".
New to GrepCode? Check out our FAQ X