Skip to content

Commit

Permalink
version 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgrassau committed Nov 11, 2024
1 parent ebb9be1 commit cec4cb5
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 32 deletions.
2 changes: 1 addition & 1 deletion com.sap.adt.abapcleaner.app/abapcleaner.product
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>

<product name="ABAP cleaner" uid="com.sap.adt.abapcleaner.app" application="com.sap.adt.abapcleaner.standalone.app" version="1.20.1.qualifier" type="features" includeLaunchers="true" autoIncludeRequirements="true">
<product name="ABAP cleaner" uid="com.sap.adt.abapcleaner.app" application="com.sap.adt.abapcleaner.standalone.app" version="1.20.1" type="features" includeLaunchers="true" autoIncludeRequirements="true">

<configIni use="default">
</configIni>
Expand Down
4 changes: 2 additions & 2 deletions com.sap.adt.abapcleaner.app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>com.sap.adt.abapcleaner.app</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>com.sap.adt.abapcleaner.app</name>
<packaging>eclipse-repository</packaging>

<parent>
<artifactId>parent</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion com.sap.adt.abapcleaner.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="com.sap.adt.abapcleaner.feature"
label="ABAP cleaner"
version="1.20.1.qualifier">
version="1.20.1">

<description>
ABAP cleaner plug-in for ABAP Development Tools
Expand Down
4 changes: 2 additions & 2 deletions com.sap.adt.abapcleaner.feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<modelVersion>4.0.0</modelVersion>
<artifactId>com.sap.adt.abapcleaner.feature</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>com.sap.adt.abapcleaner.feature</name>
<packaging>eclipse-feature</packaging>

<parent>
<artifactId>parent</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion com.sap.adt.abapcleaner.gui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: com.sap.adt.abapcleaner.gui;singleton:=true
Bundle-Version: 1.20.1.qualifier
Bundle-Version: 1.20.1
Bundle-Vendor: %Provider-Name
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Expand Down
4 changes: 2 additions & 2 deletions com.sap.adt.abapcleaner.gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>com.sap.adt.abapcleaner.gui</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>com.sap.adt.abapcleaner.gui</name>
<packaging>eclipse-plugin</packaging>

<parent>
<artifactId>parent</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions com.sap.adt.abapcleaner.updatesite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<artifactId>com.sap.adt.abapcleaner.updatesite</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>ABAP Cleaner for ABAP Development Tools (ADT)</name>
<packaging>eclipse-repository</packaging>

<parent>
<artifactId>parent</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion com.sap.adt.abapcleaner/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: com.sap.adt.abapcleaner;singleton:=true
Bundle-Version: 1.20.1.qualifier
Bundle-Version: 1.20.1
Bundle-Vendor: %Provider-Name
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Expand Down
4 changes: 2 additions & 2 deletions com.sap.adt.abapcleaner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>com.sap.adt.abapcleaner</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>com.sap.adt.abapcleaner</name>
<packaging>eclipse-plugin</packaging>

<parent>
<artifactId>parent</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
10 changes: 10 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ as well as bugfixes of reported issues, i.e. anything that enhances or changes t
For a complete list of changes (including documentation, tests, refactoring etc.), please refer to
the list of [commits](../../../commits/main).

## 2024-11-11 (version 1.21.1)

**Thank you** very much, [**openPhiL**](https://github.com/openPhiL) and
[**ConjuringCoffee**](https://github.com/ConjuringCoffee), for your bug reports!

* Fixed rule '**Replace CONDENSE with string function**' for **structured types** ([#371](../../../issues/371))
* Fixed rule '**Simplify a chain with one element**' for **first command in code** document ([#372](../../../issues/372))
* Fixed rule '**Align METHODS declarations**' for FINAL with **FOR EVENT** ([#373](../../../issues/373))
* Updated known CamelCase names

## 2024-10-19 (version 1.20.0)

**Great thanks** to [**ConjuringCoffee**](https://github.com/ConjuringCoffee) for the issue behind the custom view and field names!
Expand Down
2 changes: 1 addition & 1 deletion docs/rules.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Available Cleanup Rules

ABAP cleaner offers 98 cleanup rules with a total of 461 configuration options:
ABAP cleaner offers 98 cleanup rules with a total of 462 configuration options:

## Empty Lines

Expand Down
50 changes: 39 additions & 11 deletions docs/rules/CondenseRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,28 @@ This rule is part of the **essential** profile, as it is explicitly demanded by
* \[ \] Explicitly specify parameter del = \` \`, except for NO-GAPS
* \[X\] Explicitly specify parameter from = \` \` for NO-GAPS
* \[ \] Keep parameters on one line \(see rule 'Align parameters and components', option 'Keep other one-liners'\)
* \[X\] Only replace CONDENSE for known unstructured types \(STRING, C, N, CHAR10 etc.\)
* Warning: deactivating this option might lead to syntax errors if your code contains CONDENSE with structured types \(but at least the syntax check will immediately show this\)

## Examples


```ABAP
METHOD replace_condense.
TYPES: BEGIN OF ty_s_any_struc,
field TYPE c LENGTH 10,
END OF ty_s_any_struc.
CONSTANTS lc_abc_with_gaps TYPE string VALUE ` a b c `.
DATA lv_text_a TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_b TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_c TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_string_a TYPE string VALUE lc_abc_with_gaps.
DATA lv_string_b TYPE string VALUE lc_abc_with_gaps.
DATA lv_text_a TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_b TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_c TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_string_a TYPE string VALUE lc_abc_with_gaps.
DATA lv_string_b TYPE string VALUE lc_abc_with_gaps.
DATA ls_structure TYPE ty_s_any_struc.
DATA l_unknown_type TYPE if_any_interface=>ty_unknown_type.
" condense first text field to 'a b c', second one to 'abc'
CONDENSE lv_text_a.
Expand All @@ -44,6 +52,13 @@ This rule is part of the **essential** profile, as it is explicitly demanded by
" condense text field with offset 5 and length 7 to ` a b c`
" (specifying offset and length in write positions is possible for text fields, but not for strings)
CONDENSE lv_text_c+5(7).
" unlike CONDENSE, the string function condense( ) does not work on structured data; therefore,
" changing the next statements might cause syntax errors. You can activate the option
" 'Only replace CONDENSE for known unstructured types' to restrict this cleanup rule
" to cases in which ABAP cleaner can clearly determine the type (as above)
CONDENSE ls_structure.
CONDENSE l_unknown_type.
ENDMETHOD.
```

Expand All @@ -52,13 +67,19 @@ Resulting code:
```ABAP
METHOD replace_condense.
TYPES: BEGIN OF ty_s_any_struc,
field TYPE c LENGTH 10,
END OF ty_s_any_struc.
CONSTANTS lc_abc_with_gaps TYPE string VALUE ` a b c `.
DATA lv_text_a TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_b TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_c TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_string_a TYPE string VALUE lc_abc_with_gaps.
DATA lv_string_b TYPE string VALUE lc_abc_with_gaps.
DATA lv_text_a TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_b TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_text_c TYPE char30 VALUE lc_abc_with_gaps.
DATA lv_string_a TYPE string VALUE lc_abc_with_gaps.
DATA lv_string_b TYPE string VALUE lc_abc_with_gaps.
DATA ls_structure TYPE ty_s_any_struc.
DATA l_unknown_type TYPE if_any_interface=>ty_unknown_type.
" condense first text field to 'a b c', second one to 'abc'
lv_text_a = condense( lv_text_a ).
Expand All @@ -74,7 +95,14 @@ Resulting code:
" condense text field with offset 5 and length 7 to ` a b c`
" (specifying offset and length in write positions is possible for text fields, but not for strings)
lv_text_c+5(7) = condense( lv_text_c+5(7) ).
CONDENSE lv_text_c+5(7).
" unlike CONDENSE, the string function condense( ) does not work on structured data; therefore,
" changing the next statements might cause syntax errors. You can activate the option
" 'Only replace CONDENSE for known unstructured types' to restrict this cleanup rule
" to cases in which ABAP cleaner can clearly determine the type (as above)
CONDENSE ls_structure.
CONDENSE l_unknown_type.
ENDMETHOD.
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>parent</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>ABAP cleaner</name>
<packaging>pom</packaging>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion test/com.sap.adt.abapcleaner.test/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Unit Tests for com.sap.adt.abapcleaner
Bundle-SymbolicName: com.sap.adt.abapcleaner.test;singleton:=true
Bundle-Version: 1.20.1.qualifier
Bundle-Version: 1.20.1
Bundle-Vendor: abap-dev
Fragment-Host: com.sap.adt.abapcleaner
Bundle-RequiredExecutionEnvironment: JavaSE-17
Expand Down
4 changes: 2 additions & 2 deletions test/com.sap.adt.abapcleaner.test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>com.sap.adt.abapcleaner.test</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>com.sap.adt.abapcleaner.test</name>
<packaging>eclipse-test-plugin</packaging>

<parent>
<artifactId>tests</artifactId>
<groupId>com.sap.adt.abapcleaner</groupId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>tests</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<name>Test Fragments</name>
<packaging>pom</packaging>

<parent>
<groupId>com.sap.adt.abapcleaner</groupId>
<artifactId>parent</artifactId>
<version>1.20.1-SNAPSHOT</version>
<version>1.20.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down

0 comments on commit cec4cb5

Please sign in to comment.