Provide a custom built-in configuration

By providing a extension plugin the eclipse-cs enables you to roll out a immutable Checkstyle configuration to your team members.
This is especially powerful if you distribute your plugin via a corporate update site

You can provide such a built-in configuration by the use of the net.sf.eclipsecs.core.configurations extension point.

Simply put your configuration file into the root of the extension plugin project and add a similar entry (see example below) to your plugin.xml.

Example:

<extension
    id="checkstyle.CheckConfiguration"
    point="net.sf.eclipsecs.core.configurations">
    <check-configuration
        name="Sample Builtin Checks"
        location="sample_checks.xml"
        description="Sample Built-in configuration">
        <property name="maxLineLength" value="50"/>
     </check-configuration>
</extension>

Example 2 - custom built-in config to become the default configuration (highest default-weight wins):

<extension
    id="checkstyle.CheckConfiguration"
    point="net.sf.eclipsecs.core.configurations">
    <check-configuration
        name="Sample Builtin Checks"
        location="sample_checks.xml"
        description="Sample Built-in configuration"
        default-weight="10">
        <property name="maxLineLength" value="50"/>
     </check-configuration>
</extension>