Skip to content

Commit

Permalink
Merge branch 'release/V2.14.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
gquerret committed Sep 22, 2021
2 parents 0e6338a + bc6d325 commit f1e0f64
Show file tree
Hide file tree
Showing 69 changed files with 1,527 additions and 921 deletions.
16 changes: 8 additions & 8 deletions coverage-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>coverage-report</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>JaCoCo report</name>
<description>Fake module for code coverage report in SonarQube</description>
Expand All @@ -20,37 +20,37 @@
<dependency>
<groupId>eu.rssw.openedge.rcode</groupId>
<artifactId>rcode-reader</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.sonar.openedge</groupId>
<artifactId>sonar-openedge-plugin</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>proparse</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>profiler-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>database-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>listing-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.checks</groupId>
<artifactId>openedge-checks</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion database-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>database-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>OpenEdge database definition lexer and parser</name>
<description>OpenEdge dump files parser</description>
Expand Down
2 changes: 1 addition & 1 deletion listing-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>listing-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>OpenEdge listing so-called parser</name>
<description>OpenEdge listing files parser</description>
Expand Down
6 changes: 3 additions & 3 deletions openedge-checks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.checks</groupId>
<artifactId>openedge-checks</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>OpenEdge checks</name>
<description>OpenEdge checks</description>
Expand Down Expand Up @@ -55,12 +55,12 @@
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>database-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>proparse</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
Expand Down
8 changes: 4 additions & 4 deletions openedge-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.sonar.openedge</groupId>
<artifactId>sonar-openedge-plugin</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
<packaging>sonar-plugin</packaging>

<name>OpenEdge plugin for SonarQube</name>
Expand Down Expand Up @@ -60,17 +60,17 @@
<dependency>
<groupId>eu.rssw.openedge.checks</groupId>
<artifactId>openedge-checks</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>listing-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>profiler-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public class MultiLineIssue extends OpenEdgeProparseCheck {

@Override
public void execute(InputFile file, ParseUnit unit) {
NewIssue issue = createIssue(file, unit.getTopNode().getFirstStatement(), "First statement", true);
addLocation(issue, file, unit.getTopNode().getFirstStatement().getNextStatement(), "... and next one", false);
NewIssue issue = createIssue(file, unit.getTopNode().getFirstStatement().asJPNode(), "First statement", true);
addLocation(issue, file, unit.getTopNode().getFirstStatement().getNextStatement().asJPNode(), "... and next one",
false);
issue.save();
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>eu.rssw</groupId>
<artifactId>sonar-openedge</artifactId>
<packaging>pom</packaging>
<version>2.14.2</version>
<version>2.14.3</version>
<name>OpenEdge plugin for SonarQube</name>
<url>http://www.riverside-software.fr/</url>
<description>Open source code analysis for OpenEdge</description>
Expand Down
2 changes: 1 addition & 1 deletion profiler-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>profiler-parser</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>OpenEdge profiler output lexer and parser</name>
<description>OpenEdge profiler files parser</description>
Expand Down
4 changes: 2 additions & 2 deletions proparse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>eu.rssw.openedge.parsers</groupId>
<artifactId>proparse</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>

<name>Proparse</name>
<description>ABL code parser</description>
Expand Down Expand Up @@ -55,7 +55,7 @@
<dependency>
<groupId>eu.rssw.openedge.rcode</groupId>
<artifactId>rcode-reader</artifactId>
<version>2.14.2</version>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -880,15 +880,15 @@ caseSensitiveOrNot:
;

caseStatement:
CASE expression blockColon caseBlock caseOtherwise? (EOF | caseEnd statementEnd)
CASE expression blockColon caseWhen* caseOtherwise? (EOF | caseEnd statementEnd)
;

caseBlock:
caseWhen*
caseWhen:
WHEN caseExpression caseWhenThen
;

caseWhen:
WHEN caseExpression THEN blockOrStatement
caseWhenThen:
THEN blockOrStatement
;

caseExpression:
Expand Down Expand Up @@ -2350,9 +2350,12 @@ hideStatement:
ifStatement:
// Plplt. Progress compiles this fine: DO: IF FALSE THEN END.
// i.e. you don't have to have anything after the THEN or the ELSE.
IF expression THEN blockOrStatement ifElse?
IF expression ifThen ifElse?
;

ifThen:
THEN blockOrStatement;

ifElse:
ELSE blockOrStatement
;
Expand Down Expand Up @@ -3212,7 +3215,8 @@ stopStatement:
;

superStatement:
SUPER LEFTPAREN ( parameter ( COMMA parameter )* )? RIGHTPAREN statementEnd
// Only for SUPER(...) in FUNCTION ; SUPER() in a class is handled by exprt2ParenCall2
SUPER parameterListNoRoot statementEnd // TODO Use parameterList
;

streamNameOrHandle:
Expand Down
7 changes: 0 additions & 7 deletions proparse/src/main/java/org/prorefactor/core/IConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ public class IConstants {
* without referencing its value (i.e. no buffer scope).
*/
public static final int BUFFERSCOPE = -212;
/**
* A valid value for setLink() and getLink(). You should not use this directly. Only JPNodes of subtype BlockNode will
* have this set, so use BlockNode.getBlock instead.
*
* @see org.prorefactor.core.nodetypes.BlockNode
*/
public static final int BLOCK = -214;
/**
* A valid value for setLink() and getLink().
*/
Expand Down
Loading

0 comments on commit f1e0f64

Please sign in to comment.