Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
codeaster-fra
devtools
Commits
b82e960c
Commit
b82e960c
authored
6 years ago
by
Mathieu Courtois
Browse files
Options
Downloads
Patches
Plain Diff
[#28192] Adapt DEBUT/POURSUITE checking for asterxx branch.
--HG-- branch : edf/mc
parent
139d44a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/aslint/test/test_checkers.py
+5
-3
5 additions, 3 deletions
lib/aslint/test/test_checkers.py
with
5 additions
and
3 deletions
lib/aslint/test/test_checkers.py
+
5
−
3
View file @
b82e960c
...
...
@@ -111,13 +111,13 @@ class InvalidFilenameXX(FilenameCat, TextMsgNotFound):
# - mac3c needs the '3'
# accept aaaaNNNm + a suffix starting with '_'
# accept 'xx*'
_expr1
=
re
.
compile
(
r
"
/(?P<root>[a-z3]{3,
5
}[0-9]{2,3}[a-z]{1})
"
_expr1
=
re
.
compile
(
r
"
/(?P<root>[a-z3]{3,
16
}[0-9]{2,3}[a-z]{1})
"
r
"
(?P<ext>\.(
"
+
"
|
"
.
join
(
REG_EXT
)
+
"
))$
"
)
_expr2
=
re
.
compile
(
r
"
/(?P<root>[a-z3]{3,
5
}[0-9]{2,3}[a-z]{1}
"
_expr2
=
re
.
compile
(
r
"
/(?P<root>[a-z3]{3,
16
}[0-9]{2,3}[a-z]{1}
"
r
"
_\w{1,16})
"
r
"
(?P<ext>\.(comm|py))$
"
)
_expr3
=
re
.
compile
(
r
"
/(?P<root>xx\w+)
"
r
"
(?P<ext>(|\.(
export|py
)))$
"
)
r
"
(?P<ext>(|\.(
"
+
"
|
"
.
join
(
REG_EXT
)
+
"
)))$
"
)
_expr4
=
re
.
compile
(
r
"
/(?P<root>[0-9]+)
"
r
"
(?P<ext>\.med)$
"
)
found
=
(
_expr1
.
findall
(
txt
)
or
...
...
@@ -547,6 +547,8 @@ class RequiredKeyword(FileContentCat, GenericMsg):
elif
self
.
_pours
.
search
(
txt
):
if
not
self
.
_poucod
.
search
(
txt
):
err
.
append
(
"
: %s not found in POURSUITE
"
%
self
.
_pouerr
)
elif
"
asterxx
"
in
self
.
ctxt
.
branch
:
pass
else
:
err
.
append
(
"
: neither DEBUT or POURSUITE found
"
)
return
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment