Skip to content

Commit 3fac3dc

Browse files
authored
Merge pull request #223 from cnescatlab/develop
Release of i-Code CNES 4.1.1
2 parents 1717bdf + a444a91 commit 3fac3dc

File tree

216 files changed

+252
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+252
-193
lines changed

.github/ISSUE_TEMPLATE/question.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
> **Before posting a new question, please read the documentation](https://github.com/lequal/i-CodeCNES/wiki) and check [existing issues](https://github.com/lequal/i-CodeCNES/issues)**
10+
> **Before posting a new question, please read the documentation](https://github.com/cnescatlab/i-CodeCNES/wiki) and check [existing issues](https://github.com/cnescatlab/i-CodeCNES/issues)**
1111
1212
**Describe what you need to know**
1313
A clear and concise description of what your question is.

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ What types of changes does your code introduce to i-Code?
2222

2323
> _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
2424
25-
- [ ] I have read the [CONTRIBUTING](https://github.com/lequal/i-CodeCNES/blob/master/CONTRIBUTING.md) doc
26-
- [ ] I agree with the [CODE OF CONDUCT](https://github.com/lequal/i-CodeCNES/blob/master/CONTRIBUTING.md)
25+
- [ ] I have read the [CONTRIBUTING](https://github.com/cnescatlab/i-CodeCNES/blob/master/CONTRIBUTING.md) doc
26+
- [ ] I agree with the [CODE OF CONDUCT](https://github.com/cnescatlab/i-CodeCNES/blob/master/CONTRIBUTING.md)
2727
- [ ] Lint and unit tests pass locally with my changes
2828
- [ ] SonarCloud and Travis CI tests pass with my changes
2929
- [ ] I have added tests that prove my fix is effective or that my feature works

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jdk:
99

1010
addons:
1111
sonarcloud:
12-
organization: "lequal"
12+
organization: "cnescatlab"
1313
token:
1414
secure: "XrTPbT5js+N1quKghtNNwb+F911kkREvm1ucDUb6vBwfGY5n/du9Mas5R632HuV/s8pJcJGi66NwzxhjaZGzvsNT+WhhRzeOTunpPSXzrW1wkN3cYyiURqN7p7c+YhmGVtymgiDmWh9/hamxsWp7PsmnGsAHe8U/omhV/7riU73/AwPahdeAaLdRegUrEvL9814q88d7g6A9gPFssPq9p+NLGP1J7zyNEWfHz59i0GRKFtmBTvqhONvFsostTZ1F+MJRv+Z5YIVCzkiOr99TRYrIQCwBmTXNWp/pZyKTV2xahhdY1UFY7Mtk4IUzrGhTBwaqsazMwF5EI2qdL0oKTabNEQoLtJoIA+vVLS9vONf3/zijcGnMQZvtI0M7HaXuAdIdXXpj/OZdPSrqZy1rVy7RQWoTyK4Wv8jwls3Ocrbpojo/uaSJk4t/iCyToURgQzTPPbeSkX52fFt0ylOnCEQVm8OSjcnx3WeM5jm8moaPXGsJjSvsUjGbyVWwTiqe/oAY1vJDY6TT11+v4mCmLyv21AQg16euMhuSQMKaml/F8Gt/th0Yr1HCXn6Vcw7fwU9IX2sbFrTlip7e4XQ/ohZXuM37IjG/9CrqFU2AI55HneQXERH7qkMTEiZOTYg7vbHZkzzBLTBlPEwtmlnYSObiOq2BFXxzY1wgP3jGTVQ="
1515

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at L-lequal@cnes.fr. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at catlab@cnes.fr. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to i-Code CNES
22
First off, thanks for taking the time to contribute!
3-
The following is a set of guidelines for contributing to i-Code Cnes, which are hosted in the [Lequal Organization](https://github.com/lequal) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
3+
The following is a set of guidelines for contributing to i-Code Cnes, which are hosted in the [CATLab Organization](https://github.com/cnescatlab) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
44

55
#### Table Of Contents
66
+ [Code of Conduct](#code-of-conduct)
@@ -11,7 +11,7 @@ The following is a set of guidelines for contributing to i-Code Cnes, which are
1111
* [Git Commit Messages](#git-commit-messages)
1212

1313
## Code of Conduct
14-
This project and everyone participating in it is governed by the [Lequal Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [L-lequal@cnes.fr](mailto:L-lequal@cnes.fr).
14+
This project and everyone participating in it is governed by the [CATLab Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [catlab@cnes.fr](mailto:catlab@cnes.fr).
1515

1616
## How Can I Contribute?
1717

@@ -32,7 +32,7 @@ Explain the problem and include additional details to help maintainers reproduce
3232

3333
Provide more context by answering these questions:
3434
* **Did the problem start happening recently** (e.g. after updating to a new version of the plugin or SonarQube) or was this always a problem?
35-
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can download older versions from [the releases page](https://github.com/lequal/i-CodeCNES/releases).
35+
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can download older versions from [the releases page](https://github.com/cnescatlab/i-CodeCNES/releases).
3636
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
3737

3838
Include details about your configuration and environment:
@@ -72,7 +72,7 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
7272

7373
All contributions are welcome. They are made via a *pull request* on the branch `dev` which is the branch of the next version.
7474

75-
* pull request with **major** changes must be approved by at least one maintainer of each team and the LEQUAL.
75+
* pull request with **major** changes must be approved by at least one maintainer of each team and the CNES CatLab.
7676

7777
* pull requests with **minor** changes must be approved by at least one organization's member.
7878

README.md

+25-21
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
![i-Code logo](https://github.com/lequal/i-CodeCNES/blob/master/img/logo-i-code-cnes.png)
1+
![i-Code logo](https://github.com/cnescatlab/i-CodeCNES/blob/master/img/logo-i-code-cnes.png)
22

3-
[![Build Status](https://travis-ci.org/lequal/i-CodeCNES.svg?branch=master)](https://travis-ci.org/lequal/i-CodeCNES)
3+
[![Build Status](https://travis-ci.org/cnescatlab/i-CodeCNES.svg?branch=master)](https://travis-ci.org/cnescatlab/i-CodeCNES)
44
[![SonarQube Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=lequal_i-CodeCNES&metric=alert_status)](https://sonarcloud.io/dashboard?id=lequal_i-CodeCNES)
55
[![SonarQube Bugs](https://sonarcloud.io/api/project_badges/measure?project=lequal_i-CodeCNES&metric=bugs)](https://sonarcloud.io/project/issues?id=lequal_i-CodeCNES&resolved=false&types=BUG)
66
[![SonarQube Coverage](https://sonarcloud.io/api/project_badges/measure?project=lequal_i-CodeCNES&metric=coverage)](https://sonarcloud.io/component_measures?id=lequal_i-CodeCNES&metric=Coverage)
77
[![SonarQube Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=lequal_i-CodeCNES&metric=sqale_index)](https://sonarcloud.io/component_measures?id=lequal_i-CodeCNES&metric=Maintainability)
88

99
i-Code CNES is a static code analysis tool to help developers write code compliant with CNES coding rules for Fortran 77, Fortran 90 and Shell.
1010

11-
All the information on CNES standards coverage, and rules availabilities and limitations can be read in the [documentation](https://github.com/lequal/i-CodeCNES/wiki).
11+
All the information on CNES standards coverage, and rules availabilities and limitations can be read in the [documentation](https://github.com/cnescatlab/i-CodeCNES/wiki).
1212

1313
## Quick start
14-
- Download latest i-Code version on [GitHub Releases](https://github.com/lequal/i-CodeCNES/releases).
14+
- Download latest i-Code version on [GitHub Releases](https://github.com/cnescatlab/i-CodeCNES/releases).
1515
- Unzip i-Code archive where you need it.
1616
- Add `icode` to your path.
1717
- Grant `icode` execution permission.
@@ -30,7 +30,7 @@ This is the common GUI application for i-Code.
3030
##### i-Code plugin for Eclipse
3131
The Eclipse plugin for i-Code allows to use i-Code from Eclipse IDE.
3232
##### i-Code plugin for SonarQube
33-
The SonarQube plugin for i-Code allows to use i-Code through SonarQube analysis. Please refer to [sonar-icode-cnes-plugin](https://github.com/lequal/sonar-icode-cnes-plugin) for more details.
33+
The SonarQube plugin for i-Code allows to use i-Code through SonarQube analysis. Please refer to [sonar-icode-cnes-plugin](https://github.com/cnescatlab/sonar-icode-cnes-plugin) for more details.
3434

3535
## Installation
3636
##### i-Code CLI
@@ -65,22 +65,26 @@ Analyze Shell, F77 & F90 code to find defects & bugs.
6565
-x,--excluded-rules <arg> Comma separated list of rules id to exclude from analysis. None by default.
6666
6767
68-
Please report issues at https://github.com/lequal/i-CodeCNES/issues
68+
Please report issues at https://github.com/cnescatlab/i-CodeCNES/issues
6969
```
7070

7171
## Build
7272
You can easily rebuild all i-Code products with Maven:
7373
```bash
74-
git clone https://github.com/lequal/i-CodeCNES icode
74+
git clone https://github.com/cnescatlab/i-CodeCNES icode
7575
cd ./icode/
7676
mvn clean install
7777
```
7878

7979
## Extending i-Code with your own plugin
80-
If you need to add some new feature, the easiest way is to implment your own plugin by forking [icode-custom-plugin-example](https://github.com/lequal/icode-custom-plugin-example) and its dedicated [Developer Guide](https://github.com/lequal/icode-custom-plugin-example/wiki/Developer-guide).
80+
If you need to add some new feature, the easiest way is to implment your own plugin by forking [icode-custom-plugin-example](https://github.com/cnescatlab/icode-custom-plugin-example) and its dedicated [Developer Guide](https://github.com/cnescatlab/icode-custom-plugin-example/wiki/Developer-guide).
8181

8282
## Changelog
8383

84+
#### Release 4.1.1
85+
###### Fixed bugs
86+
- [x] **BUG #221** > Too many open files
87+
8488
#### Release 4.1.0
8589

8690
###### New features
@@ -110,17 +114,17 @@ If you need to add some new feature, the easiest way is to implment your own plu
110114
- Update packaging of i-Code #165
111115
- Update CI #145
112116
- Reintegrate RCP as a submodule using i-Code Core #165
113-
- This 4.0.0 version integrate a whole new architecture described in https://github.com/lequal/i-CodeCNES/wiki
117+
- This 4.0.0 version integrate a whole new architecture described in https://github.com/cnescatlab/i-CodeCNES/wiki
114118
- `icode-core`: contains core feature to build analyzer
115119
- `icode-library`: contains the minimal classes to run i-Code analyzers in a Java application
116120
- `icode-app`: a standalone command line version of i-Code analyzer
117121
- `icode-ide`: contains the i-Code IDE version and Eclipse plugin
118122
- `*-language`, `*-rules` and `*-metrics`: contain analyzer for several languages: Shell, Fortran, ...
119-
- The new documentation is available as a wiki https://github.com/lequal/i-CodeCNES/wiki
120-
- A `Developer Guide` is now available here: https://github.com/lequal/icode-custom-plugin-example/wiki/Developer-guide
123+
- The new documentation is available as a wiki https://github.com/cnescatlab/i-CodeCNES/wiki
124+
- A `Developer Guide` is now available here: https://github.com/cnescatlab/icode-custom-plugin-example/wiki/Developer-guide
121125
- Users are able to add custom plugins by putting their `jar` files into `icode/plugins/` directory
122126
- Bug about recursive analysis is fixed and users can now simply analyze a directory, e.g.: `icode .`
123-
- The continuous integration was enhanced with Travis(https://travis-ci.org/lequal/i-CodeCNES) and SonarCloud(https://sonarcloud.io/dashboard?id=lequal_i-CodeCNES)
127+
- The continuous integration was enhanced with Travis(https://travis-ci.org/cnescatlab/i-CodeCNES) and SonarCloud(https://sonarcloud.io/dashboard?id=lequal_i-CodeCNES)
124128
- The contributing page and issue templates were updated
125129
- Eclipse RCP was removed from core features of i-Code
126130
- Some other minor enhancements and fixes
@@ -200,28 +204,28 @@ If you need to add some new feature, the easiest way is to implment your own plu
200204
* Improvements of analysis failure notifications #50
201205
* XML and CSV export improvements #69  #19
202206

203-
*Minor fixes and other enhancements : [milestone 3.0.0](https://github.com/lequal/i-CodeCNES/milestone/1).*
207+
*Minor fixes and other enhancements : [milestone 3.0.0](https://github.com/cnescatlab/i-CodeCNES/milestone/1).*
204208

205209
### Previous Releases
206-
* [Release 3.1.0](https://github.com/lequal/i-CodeCNES/releases/tag/v3.1.0)
207-
* [Release 3.0.1](https://github.com/lequal/i-CodeCNES/releases/tag/v3.0.1)
208-
* [Release 3.0.0](https://github.com/lequal/i-CodeCNES/releases/tag/v3.0.0)
209-
* [Release 2.0.0](https://github.com/lequal/i-CodeCNES/releases/tag/v2.0.0)
210-
* [Release 1.0.0](https://github.com/lequal/i-CodeCNES/releases/tag/v1.0.0)
210+
* [Release 3.1.0](https://github.com/cnescatlab/i-CodeCNES/releases/tag/v3.1.0)
211+
* [Release 3.0.1](https://github.com/cnescatlab/i-CodeCNES/releases/tag/v3.0.1)
212+
* [Release 3.0.0](https://github.com/cnescatlab/i-CodeCNES/releases/tag/v3.0.0)
213+
* [Release 2.0.0](https://github.com/cnescatlab/i-CodeCNES/releases/tag/v2.0.0)
214+
* [Release 1.0.0](https://github.com/cnescatlab/i-CodeCNES/releases/tag/v1.0.0)
211215

212216

213217
### Feedback and Support
214-
Contact : L-lequal@cnes.fr
218+
Contact : catlab@cnes.fr
215219

216-
Bugs and feature requests: https://github.com/lequal/i-CodeCNES/issues
220+
Bugs and feature requests: https://github.com/cnescatlab/i-CodeCNES/issues
217221

218222
### How to contribute
219223
If you experienced a problem with the plugin please open an issue. Inside this issue please explain us how to reproduce this issue and paste the log.
220224

221225
If you want to do a PR, please put inside of it the reason of this pull request. If this pull request fix an issue please insert the number of the issue or explain inside of the PR how to reproduce this issue.
222226

223227
### License
224-
Copyright 2019 LEQUAL.
228+
Copyright 2022 CATLab.
225229

226230
This software is licensed under the terms in the file named "LICENSE" in this directory.
227231

fortran77-metrics/src/main/resources/example/ExampleMetric.lex

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
107107
fileValue.setFileValue(valueOfFile);
108108
return fileValue;
109109
%eofval}
110+
%eofclose
110111

111112
/* Here is where you can declare transition words for the Metric. */
112113
METRIC_WORD = first_word | SECOND_WORD

fortran77-metrics/src/main/resources/lex/F77METComplexitySimplified.lex

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
118118
this.computeMetric(null, Float.NaN, 0);
119119
return getCheckResults();
120120
%eofval}
121+
%eofclose
121122
%%
122123

123124
/* This is the general automaton. Each part will be described later. */

fortran77-metrics/src/main/resources/lex/F77METLineOfCode.lex

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ SPACE = [\ \r\f\t]
108108
this.computeMetric(null, numTotal, 0);
109109
return getCheckResults();
110110
%eofval}
111+
%eofclose
111112
%%
112113

113114
/************************************************************************/

fortran77-metrics/src/main/resources/lex/F77METLineOfComment.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ END = END | end
109109
this.computeMetric(null, numCommentTotal, 0);
110110
return getCheckResults();
111111
%eofval}
112-
112+
%eofclose
113113
%%
114114

115115
/*********************/

fortran77-metrics/src/main/resources/lex/F77METNesting.lex

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ SMBL = \& | \+ | \$
131131
this.computeMetric(null, Float.NaN, 0);
132132
return getCheckResults();
133133
%eofval}
134+
%eofclose
134135
%%
135136

136137
/* This is the general automaton. Each part will be described later. */

fortran77-metrics/src/main/resources/lex/F77METRatioComment.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ END = END | end
114114
this.computeMetric(null, Float.NaN, 0);
115115
return getCheckResults();
116116
%eofval}
117-
117+
%eofclose
118118
%%
119119

120120
/*********************/

fortran77-rules/src/main/resources/example/ExampleRule.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
9595
%eofval{
9696
return violations;
9797
%eofval}
98-
98+
%eofclose
9999
/* Here is where you can declare transition words for the rule. */
100100
RULE_WORD = first_word | SECOND_WORD
101101

fortran77-rules/src/main/resources/lex/COMDATAFloatCompare.lex

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
107107

108108
return getCheckResults();
109109
%eofval}
110+
%eofclose
110111

111112
/* Transition word are real, complex and double precision. Whenever this word is */
112113
/* encountered, we store all variables declared. */

fortran77-rules/src/main/resources/lex/COMDATAInitialisation.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ SEE_FUNC = ([^a-zA-Z0-9\_])?("if" | "elseif" | "forall" | "while" | "where" | "
293293
displayErrorVariableByType();
294294
return getCheckResults();
295295
%eofval}
296-
296+
%eofclose
297297

298298
%%
299299

fortran77-rules/src/main/resources/lex/COMDATAInvariant.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
125125

126126
return getCheckResults();
127127
%eofval}
128-
128+
%eofclose
129129

130130
%%
131131

fortran77-rules/src/main/resources/lex/COMDATALoopCondition.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
179179
%eofval{
180180
return getCheckResults();
181181
%eofval}
182-
182+
%eofclose
183183
/* Transition word is do (or DO). If this word is met, we focus on out condition */
184184
/* end verifies that it's not modified within the DO-loop. If WHILE is found, */
185185
/* nothing has to be done. We also look for END, which means modification can be */

fortran77-rules/src/main/resources/lex/COMDATANotUsed.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ EQUAL = \= [^\,\n\"\']*
112112

113113
return getCheckResults();
114114
%eofval}
115-
115+
%eofclose
116116

117117
%%
118118

fortran77-rules/src/main/resources/lex/COMDESIGNActiveWait.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ WAIT = "sleep" | "wait" | "pause"
8282
%eofval{
8383
return getCheckResults();
8484
%eofval}
85-
85+
%eofclose
8686

8787
%%
8888

fortran77-rules/src/main/resources/lex/COMDESIGNAlloc.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ INT = [0-9]+
154154
sortResults();
155155
return getCheckResults();
156156
%eofval}
157-
157+
%eofclose
158158

159159
%%
160160

fortran77-rules/src/main/resources/lex/COMFLOWAbort.lex

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
7979
%eofval{
8080
return getCheckResults();
8181
%eofval}
82+
%eofclose
8283

8384

8485
%%

fortran77-rules/src/main/resources/lex/COMFLOWBooleanExpression.lex

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ VAR = [a-zA-Z][a-zA-Z0-9\_]*
8585
%eofval{
8686
return getCheckResults();
8787
%eofval}
88+
%eofclose
8889

8990

9091
%%

fortran77-rules/src/main/resources/lex/COMFLOWCheckCodeReturn.lex

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ AVOIDED = {SPACE}*( "abs" | "achar" | "acos" | "acosh" | "adjustl" | "adjustr"
247247
sortResults();
248248
return getCheckResults();
249249
%eofval}
250+
%eofclose
250251

251252

252253
%%

fortran77-rules/src/main/resources/lex/COMFLOWCheckUser.lex

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ GETUID = "GETUID"{SPACE}*\({SPACE}*\)
8484
}
8585
return getCheckResults();
8686
%eofval}
87+
%eofclose
8788

8889

8990
%%

fortran77-rules/src/main/resources/lex/COMFLOWExit.lex

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
8484
%eofval{
8585
return getCheckResults();
8686
%eofval}
87+
%eofclose
8788

8889

8990
%%

fortran77-rules/src/main/resources/lex/COMFLOWExitLoop.lex

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
8989
%eofval{
9090
return getCheckResults();
9191
%eofval}
92+
%eofclose
9293

9394
/* Transition word are STOP, EXIT, CYCLE and GO TO. If these words are met inside */
9495
/* a DO-loop, an error is thrown. */

fortran77-rules/src/main/resources/lex/COMFLOWFileExistence.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ STRING = \'[^\']*\' | \"[^\"]*\"
9494
%eofval{
9595
return getCheckResults();
9696
%eofval}
97-
97+
%eofclose
9898

9999
%%
100100

fortran77-rules/src/main/resources/lex/COMFLOWFilePath.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ FILENAME = \'[\.]*[a-zA-Z\/][a-zA-Z0-9\_\/]*(\.[a-zA-Z0-9]+)?\' |
8282
%eofval{
8383
return getCheckResults();
8484
%eofval}
85-
85+
%eofclose
8686

8787
%%
8888

fortran77-rules/src/main/resources/lex/COMINSTBoolNegation.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ VAR = [a-zA-Z][a-zA-Z0-9\_]*
8282
%eofval{
8383
return getCheckResults();
8484
%eofval}
85-
85+
%eofclose
8686

8787
%%
8888

fortran77-rules/src/main/resources/lex/COMINSTBrace.lex

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ SPACE = [\ \r\t\f]
172172
%eofval{
173173
return getCheckResults();
174174
%eofval}
175-
175+
%eofclose
176176

177177
%%
178178

0 commit comments

Comments
 (0)