Skip to content

Commit

Permalink
Version 1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gquerret committed Apr 15, 2016
1 parent 2e600bd commit ee47011
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion oedb-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-db-plugin</artifactId>
<version>1.7.3</version>
<version>1.7.4</version>
<packaging>sonar-plugin</packaging>

<name>OpenEdge DB plugin for SonarQube</name>
Expand Down
2 changes: 1 addition & 1 deletion 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>1.7.3</version>
<version>1.7.4</version>
<packaging>sonar-plugin</packaging>

<name>OpenEdge plugin for SonarQube</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void lint(ParseUnit unit) {
}

private final void initRule() {
keywordNum = NodeTypes.getTypeNum(keyword);
keywordNum = NodeTypes.testLiteralsTable(keyword, -1);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public final void tokenize(final SourceCode source, Tokens cpdTokens) {
}
} catch (TokenStreamException | RefactorException | ProparseRuntimeException caught) {
LOG.error("Could not parse : " + inputFile.relativePath(), caught);
} catch (RuntimeException caught) {
LOG.error("Runtime exception was caught '{}' - Please report this issue : ", caught.getMessage());
for (StackTraceElement element : caught.getStackTrace()) {
LOG.error(" {}", element.toString());
}
}

cpdTokens.add(TokenEntry.getEOF());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ public void analyse(Project project, SensorContext context) {
issue.forRule(
RuleKey.of(OpenEdgeRulesDefinition.REPOSITORY_KEY, OpenEdgeRulesDefinition.PROPARSE_ERROR_RULEKEY)).at(
issue.newLocation().on(file).message(caught.getMessage())).save();
} catch (RuntimeException caught) {
LOG.error("Runtime exception was caught '{}' - Please report this issue : ", caught.getMessage());
for (StackTraceElement element : caught.getStackTrace()) {
LOG.error(" {}", element.toString());
}
}
}
new File("listingparser.txt").delete();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ public void analyse(Project project, SensorContext context) {
xrefNum++;
} catch (SAXException | IOException caught) {
LOG.error("Unable to parse file " + xrefFile.getAbsolutePath(), caught);
} catch (RuntimeException caught) {
LOG.error("Runtime exception was caught '{}' - Please report this issue : ", caught.getMessage());
for (StackTraceElement element : caught.getStackTrace()) {
LOG.error(" {}", element.toString());
}
}
}
}
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>1.7.3</version>
<version>1.7.4</version>
<name>OpenEdge plugin for SonarQube</name>
<url>http://www.riverside-software.fr/</url>
<description>Open source code analysis for OpenEdge</description>
Expand Down

0 comments on commit ee47011

Please sign in to comment.