Skip to content

Commit 0031a44

Browse files
authored
#140 Update to emfcloud.checkstyle 0.1.0-RC02 (#141)
* #140 Update to emfcloud.checkstyle 0.1.0-RC02 The new release candiate uses a ruleset that is compliant with Checkstyle 8.44 as default. This ensures that the checkstyle config can also be used in the latest Eclipse Relaease (8.44). If you don't use the latest Eclipse release it's still recommended to update to the latest eclipse-checkstyle plugin version. However, the old checkstyle config (8.39) is still available and can be set in the project-specific properties. Fixes #140 * Add resources that changed after importing all projects via maven
1 parent 677931b commit 0031a44

File tree

40 files changed

+318
-86
lines changed

40 files changed

+318
-86
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ All involved code must adhere to the provided codestyle and checkstyle settings.
393393
- Install the Eclipse Checkstyle Plug-in via its update site `https://checkstyle.org/eclipse-cs/#!/install`.
394394

395395
#### Configure Checkstyle
396-
To configure Checkstyle for the new project right click on the project, choose `Checkstyle > Configure project(s) from blueprint...` and select `org.eclipse.emfcloud.modelserver.common` as blueprint project.
396+
This project uses the common checkstyle ruleset from EMF.cloud. Please follow the [instructions for usage in Eclipse](https://github.com/eclipse-emfcloud/emfcloud/tree/master/codestyle#usage-in-eclipse-ide) to configure this ruleset for a new project.
397+
To configure Checkstyle for a new project in the same workspace your can also right click on the project, choose `Checkstyle > Configure project(s) from blueprint...` and select `org.eclipse.emfcloud.modelserver.common` as blueprint project.
397398
Run `Checkstyle > Check Code with Checkstyle` to make sure Checkstyle is activated correctly.
398399

399400
#### Import Existing Projects

bundles/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.eclipse.emfcloud.modelserver.bundles.parent</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.m2e.core.maven2Builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4-
<local-check-config name="EMF.cloud Checkstyle" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle.xml" type="remote" description="The central checkstyle configuration for emfcloud">
5-
<additional-data name="cache-props-file-location" value="EMFcloud Checkstyle_1618908540765_cache.properties"/>
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="EMF.cloud Checkstyle (8.39)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.39.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.39">
5+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.properties"/>
6+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.xml"/>
67
<additional-data name="cache-file" value="true"/>
7-
<additional-data name="cache-file-location" value="EMFcloud Checkstyle_1618908540765_cache.xml"/>
88
</local-check-config>
9-
<fileset name="all" enabled="true" check-config-name="EMF.cloud Checkstyle" local="true">
9+
<local-check-config name="EMF.cloud Checkstyle (8.44)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.44.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.44">
10+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.properties"/>
11+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.xml"/>
12+
<additional-data name="cache-file" value="true"/>
13+
</local-check-config>
14+
<fileset name="all non-generated" enabled="true" check-config-name="EMF.cloud Checkstyle (8.44)" local="true">
1015
<file-match-pattern match-pattern="." include-pattern="true"/>
16+
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
1117
</fileset>
1218
</fileset-config>
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4-
<local-check-config name="EMF.cloud Checkstyle" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle.xml" type="remote" description="The central checkstyle configuration for emfcloud">
5-
<additional-data name="cache-props-file-location" value="EMFcloud Checkstyle_1618908540765_cache.properties"/>
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="EMF.cloud Checkstyle (8.39)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.39.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.39">
5+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.properties"/>
6+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.xml"/>
67
<additional-data name="cache-file" value="true"/>
7-
<additional-data name="cache-file-location" value="EMFcloud Checkstyle_1618908540765_cache.xml"/>
88
</local-check-config>
9-
<fileset name="all" enabled="true" check-config-name="EMF.cloud Checkstyle" local="true">
9+
<local-check-config name="EMF.cloud Checkstyle (8.44)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.44.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.44">
10+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.properties"/>
11+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.xml"/>
12+
<additional-data name="cache-file" value="true"/>
13+
</local-check-config>
14+
<fileset name="all non-generated" enabled="true" check-config-name="EMF.cloud Checkstyle (8.44)" local="true">
1015
<file-match-pattern match-pattern="." include-pattern="true"/>
16+
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
1117
</fileset>
1218
</fileset-config>
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4-
<local-check-config name="EMF.cloud Checkstyle" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle.xml" type="remote" description="The central checkstyle configuration for emfcloud">
5-
<additional-data name="cache-props-file-location" value="EMFcloud Checkstyle_1618908540765_cache.properties"/>
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="EMF.cloud Checkstyle (8.39)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.39.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.39">
5+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.properties"/>
6+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.xml"/>
67
<additional-data name="cache-file" value="true"/>
7-
<additional-data name="cache-file-location" value="EMFcloud Checkstyle_1618908540765_cache.xml"/>
88
</local-check-config>
9-
<fileset name="all" enabled="true" check-config-name="EMF.cloud Checkstyle" local="true">
9+
<local-check-config name="EMF.cloud Checkstyle (8.44)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.44.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.44">
10+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.properties"/>
11+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.xml"/>
12+
<additional-data name="cache-file" value="true"/>
13+
</local-check-config>
14+
<fileset name="all non-generated" enabled="true" check-config-name="EMF.cloud Checkstyle (8.44)" local="true">
1015
<file-match-pattern match-pattern="." include-pattern="true"/>
16+
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
1117
</fileset>
1218
</fileset-config>
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4-
<local-check-config name="EMF.cloud Checkstyle" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle.xml" type="remote" description="The central checkstyle configuration for emfcloud">
5-
<additional-data name="cache-props-file-location" value="EMFcloud Checkstyle_1618908540765_cache.properties"/>
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="EMF.cloud Checkstyle (8.39)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.39.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.39">
5+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.properties"/>
6+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.xml"/>
67
<additional-data name="cache-file" value="true"/>
7-
<additional-data name="cache-file-location" value="EMFcloud Checkstyle_1618908540765_cache.xml"/>
88
</local-check-config>
9-
<fileset name="all" enabled="true" check-config-name="EMF.cloud Checkstyle" local="true">
9+
<local-check-config name="EMF.cloud Checkstyle (8.44)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.44.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.44">
10+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.properties"/>
11+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.xml"/>
12+
<additional-data name="cache-file" value="true"/>
13+
</local-check-config>
14+
<fileset name="all non-generated" enabled="true" check-config-name="EMF.cloud Checkstyle (8.44)" local="true">
1015
<file-match-pattern match-pattern="." include-pattern="true"/>
16+
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
1117
</fileset>
1218
</fileset-config>
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false">
4-
<local-check-config name="EMF.cloud Checkstyle" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle.xml" type="remote" description="The central checkstyle configuration for emfcloud">
5-
<additional-data name="cache-props-file-location" value="EMFcloud Checkstyle_1618908540765_cache.properties"/>
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="EMF.cloud Checkstyle (8.39)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.39.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.39">
5+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.properties"/>
6+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.39)_1638214328569_cache.xml"/>
67
<additional-data name="cache-file" value="true"/>
7-
<additional-data name="cache-file-location" value="EMFcloud Checkstyle_1618908540765_cache.xml"/>
88
</local-check-config>
9-
<fileset name="all" enabled="true" check-config-name="EMF.cloud Checkstyle" local="true">
9+
<local-check-config name="EMF.cloud Checkstyle (8.44)" location="https://raw.githubusercontent.com/eclipse-emfcloud/emfcloud/master/codestyle/org.eclipse.emfcloud.checkstyle/src/main/resources/emfcloud-checkstyle-8.44.xml" type="remote" description="The central checkstyle configuration for EMF.cloud Checkstyle Version 8.44">
10+
<additional-data name="cache-props-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.properties"/>
11+
<additional-data name="cache-file-location" value="EMF.cloud Checkstyle (8.44)_1638214295838_cache.xml"/>
12+
<additional-data name="cache-file" value="true"/>
13+
</local-check-config>
14+
<fileset name="all non-generated" enabled="true" check-config-name="EMF.cloud Checkstyle (8.44)" local="true">
1015
<file-match-pattern match-pattern="." include-pattern="true"/>
16+
<file-match-pattern match-pattern="src-gen" include-pattern="false"/>
1117
</fileset>
1218
</fileset-config>

bundles/org.eclipse.emfcloud.modelserver.lib/.classpath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry exported="true" kind="lib" path="lib/websocket-api-9.4.43.v20210629.jar"/>
4-
<classpathentry exported="true" kind="lib" path="lib/websocket-servlet-9.4.43.v20210629.jar"/>
53
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
64
<attributes>
75
<attribute name="module" value="true"/>
@@ -15,5 +13,7 @@
1513
<classpathentry exported="true" kind="lib" path="lib/kotlin-stdlib-common-1.4.10.jar" sourcepath="lib/kotlin-stdlib-common-1.4.10-sources.jar"/>
1614
<classpathentry exported="true" kind="lib" path="lib/okhttp-4.9.0.jar" sourcepath="lib/okhttp-4.9.0-sources.jar"/>
1715
<classpathentry exported="true" kind="lib" path="lib/okio-2.10.0.jar" sourcepath="lib/okio-2.10.0-sources.jar"/>
16+
<classpathentry exported="true" kind="lib" path="lib/websocket-api-9.4.43.v20210629.jar"/>
17+
<classpathentry exported="true" kind="lib" path="lib/websocket-servlet-9.4.43.v20210629.jar"/>
1818
<classpathentry kind="output" path="target/classes"/>
1919
</classpath>

0 commit comments

Comments
 (0)