Skip to content

Commit

Permalink
Issue checkstyle#351: Enable shared config in our plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bananeweizen committed Nov 6, 2022
1 parent 59e8ada commit ae25ded
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
17 changes: 17 additions & 0 deletions net.sf.eclipsecs.branding/.checkstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Eclipse CS configuration" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
6 changes: 6 additions & 0 deletions net.sf.eclipsecs.branding/.project
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
</projectDescription>
12 changes: 11 additions & 1 deletion net.sf.eclipsecs.core/.checkstyle
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<fileset name="all" enabled="true" check-config-name="Google Checks" local="false">
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Eclipse CS configuration" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
12 changes: 11 additions & 1 deletion net.sf.eclipsecs.sample/.checkstyle
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<fileset name="all" enabled="true" check-config-name="Google Checks" local="false">
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Eclipse CS configuration" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
12 changes: 11 additions & 1 deletion net.sf.eclipsecs.ui/.checkstyle
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
<fileset name="all" enabled="true" check-config-name="Google Checks" local="false">
<local-check-config name="Eclipse CS configuration" location="/eclipse-cs/config/checkstyle_checks.xml" type="project" description="Shared configuration for all Eclipse CS plugins.">
<property name="checkstyle.cache.file" value="target/checkstyle-cache"/>
<property name="checkstyle.suppressions.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.header.file" value="${config_loc}/java.header"/>
<property name="checkstyle.regexp.header.file" value="${config_loc}/java_regexp.header"/>
<property name="checkstyle.suppressions-xpath.file" value="${config_loc}/suppressions.xml"/>
<property name="checkstyle.importcontrol.file" value="${config_loc}/import-control.xml"/>
<property name="checkstyle.importcontroltest.file" value="${config_loc}/import-control-test.xml"/>
<additional-data name="protect-config-file" value="false"/>
</local-check-config>
<fileset name="all" enabled="true" check-config-name="Eclipse CS configuration" local="true">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
<filter name="FilesFromPackage" enabled="true">
Expand Down

0 comments on commit ae25ded

Please sign in to comment.