Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions config/checkstyle-checks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,6 @@
<module name="JavadocMissingWhitespaceAfterAsterisk"/>
<module name="JavadocLeadingAsteriskAlign"/>
<module name="JavadocParagraph"/>
<module name="JavadocStyle">
<property name="scope" value="public"/>
</module>
<module name="JavadocTagContinuationIndentation"/>
<module name="JavadocType">
<!-- avoid errors on tag '@noinspection' -->
Expand Down Expand Up @@ -1009,6 +1006,7 @@
<module name="SingleSpaceSeparator">
<property name="validateComments" value="false"/>
</module>
<module name="TypeBodyPadding"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter">
<property name="tokens"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ private static String getEclipseCsPath(String packageName, String fileName) thro
"../net.sf.eclipsecs.checkstyle/metadata/" + packageName.replace(".", "/") + fileName)
.getCanonicalPath();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.puppycrawl.tools.checkstyle.utils.ModuleReflectionUtil;

public final class CheckUtil {

private CheckUtil() {
}

Expand Down Expand Up @@ -57,4 +58,5 @@ public static Set<Class<?>> getModulesInPackage(Set<Class<?>> modules, String pa

return result;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ public static void setPlatformLocale(final Locale locale) {
public ClassLoader getAddonExtensionClassLoader() {
return mAddonExtensionClassLoader;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ public static void setInt(String prefId, int value) throws BackingStoreException
prefs.putInt(prefId, value);
prefs.flush();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -610,4 +610,5 @@ private String getRuleName(AuditEvent error) {
return ruleName;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,5 @@ private static String getLocale() {
}
return lang;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,5 @@ private Collection<IResource> getResources(final IContainer container,
public ISchedulingRule getRule(int kind, Map<String, String> args) {
return getProject();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* Represents the Checkstyle file marker.
*/
public final class CheckstyleMarker {

/** ID for the CheckstyleMarker. */
public static final String MARKER_ID = CheckstylePlugin.PLUGIN_ID + ".CheckstyleMarker";

Expand Down Expand Up @@ -80,4 +81,5 @@ public static boolean isCheckstyleMarker(IMarker marker) {
}
return isCheckstyleMarker;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ public void copyConfiguration(ICheckConfiguration target) throws CheckstylePlugi
CheckstylePluginException.rethrow(ex);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,5 @@ public int hashCode() {
return Objects.hash(getName(), getLocation(), getDescription(), getType(), isGlobal(),
getResolvableProperties(), getAdditionalData());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -402,4 +402,5 @@ private static List<ICheckConfiguration> getGlobalCheckConfigurations(Element ro
}
return configs;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ public List<ResolvableProperty> getUnresolvedProperties() {
return mUnresolvedProperties;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ public static void writeCheckConfiguration(Element parentElement,
addEl.addAttribute(XMLTags.VALUE_TAG, entry.getValue());
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,5 @@ else if (XMLTags.LAST_ENABLED_SEVERITY_ID.equals(name)) {
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,5 @@ else if (childParent.equals(parentInternalName)) {

return childModules;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,5 @@ private static Document createCheckConfigurationsDocument(
}
return doc;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ public interface ICheckConfiguration {
* Error copying the configuration
*/
void copyConfiguration(ICheckConfiguration target) throws CheckstylePluginException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,5 @@ public interface ICheckConfigurationWorkingSet {
* unexprected error
*/
Collection<IProject> getAffectedProjects() throws CheckstylePluginException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,5 @@ else if (Severity.IGNORE == severityLevel) {
public Map<String, String> getCustomMetaData() {
return mCustomMetaData;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,5 @@ public String toString() {
return MoreObjects.toStringHelper(this).add("propertyName", propertyName)
.add("value", value).toString();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,5 @@ public boolean equals(Object obj) {
public int hashCode() {
return Objects.hash(mName, mInternalName, mIsCreatable, mIsEditable, mIsConfigurable);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ protected PropertyResolver getPropertyResolver(ICheckConfiguration config,

return resolver;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ public String resolve(String name) {
}
return resolvedPath;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,5 @@ public static IConfigurationType getByName(String name) {
}
return result;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ URL getResolvedConfigurationFileURL(ICheckConfiguration checkConfiguration)
*/
CheckstyleConfigurationFile getCheckstyleConfiguration(ICheckConfiguration checkConfiguration)
throws CheckstylePluginException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ public interface IContextAware {
* the project context
*/
void setProjectContext(IProject project);

}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ public void notifyCheckConfigRemoved(ICheckConfiguration checkConfiguration)
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ public boolean isConfigurable(ICheckConfiguration checkConfiguration) {
}
return isConfigurable;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,5 @@ else if (aValue.charAt(pos + 1) != '{') {
aFragments.add(aValue.substring(prev));
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,5 @@ public String getPassword() {
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ public String resolve(String property) {

return value;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ else if (mConfigLocation != null

return value;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ public String resolve(String property) {
// get the system property
return System.getProperty(property);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
*
*/
public final class CheckUtil {

/**
* Utility class, not intended to be instantiated.
*/
Expand Down Expand Up @@ -129,4 +130,5 @@ private static String getTokens(Function<Integer, String> function,
List<Integer> modifiableTokens) {
return modifiableTokens.stream().map(function::apply).collect(Collectors.joining(","));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ static ConfigPropertyType fromXmlValue(String xmlValue) {
default -> throw new IllegalArgumentException("Unexpected value: " + xmlValue);
};
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ public interface IOptionProvider {
* @return the options
*/
List<String> getOptions();

}
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,5 @@ public final List<RuleMetadata> getRuleMetadata() {
public String getGroupId() {
return mGroupId;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ static Map<String, ThirdPartyRuleGroupInfo> parse(String metadataContent) {
}
return ruleGroups;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ public void postProcessConfiguredModules(List<Module> configuredModules) {
configuredModules.add(0, checker);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ public interface ISaveFilter {
* the configured modules in from this configuration
*/
void postProcessConfiguredModules(List<Module> configuredModules);

}
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,5 @@ public static void process(List<Module> configuredModules) {
filter.postProcessConfiguredModules(configuredModules);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ else if (XMLTags.CHECKER_MODULE.equals(internalName2)
return comp;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ else if (containsSuppressWarningsHolderModule && !needsSuppressWarningsHolderMod
configuredModules.remove(configuredSuppressWarningsHolder);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ else if (containsTreeWalkerModule && !containsTreeWalkerDependantModule) {
configuredModules.remove(configuredTreeWalker);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* progress UI.
*/
public abstract class AbstractCheckJob extends WorkspaceJob implements ISchedulingRule {

/**
* The job family marker is used by the progress service to provide different icons.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@ public IStatus run(IProgressMonitor monitor) {

return status;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,5 @@ private static void filter(final List<IFile> files, final IProjectConfiguration
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,5 @@ public String toString() {
return MoreObjects.toStringHelper(this).add("patternString", patternString)
.add("isIncludePattern", isIncludePattern).toString();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,5 @@ public String toString() {
return MoreObjects.toStringHelper(this).add("enabled", enabled).add("name", name)
.add("fileMatchPatterns", fileMatchPatterns).add("checkConfig", checkConfig).toString();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ public interface IProjectConfiguration {
* @return <code>true</code> if checkstyle settings are synched into formatter settings.
*/
boolean isSyncFormatter();

}
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,5 @@ public static IFilter getByInternalName(String internalName) {

return filter;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@ public String toString() {
.add("syncFormatter", syncFormatter).add("fileSets", fileSets).add("filters", filters)
.toString();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,5 @@ private static List<IFilter> getFilters(Element root) {

return filters;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -496,4 +496,5 @@ private void writeFilter(IFilter filter, Element docRoot) {
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,5 @@ public String toString() {
.add("internalName", mInternalName).add("filterDescription", mFilterDescription)
.add("selected", mSelected).add("readonly", mReadonly).toString();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ public boolean accept(Object element) {
}
return goesThrough;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ private boolean hasChanges(IFile file, Subscriber subscriber) {
}
return hasChanges;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ private List<IPath> getSourceDirPaths(IProject project) {

return sourceDirs;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,5 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(super.hashCode(), mData);
}

}
Loading
Loading