Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
fa184ed8
Commit
fa184ed8
authored
May 11, 2011
by
Alexander Wiebel
Browse files
[CHNAGE] made stylecheck for header more precise
parent
3c6ce00a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
tools/brainlint.py
tools/brainlint.py
+23
-1
No files found.
tools/brainlint.py
View file @
fa184ed8
...
...
@@ -888,27 +888,49 @@ def CheckForCompleteCommentHeader(filename, lines, error):
# We'll say it should occur by line 10. Don't forget there's a
# dummy line at the front.
if
(
not
(
re
.
match
(
r
'//---------------------------------------------------------------------------'
,
lines
[
1
])
and
(
len
(
lines
[
1
]
)
==
77
)
and
re
.
match
(
r
'//'
,
lines
[
2
])
and
(
len
(
lines
[
2
]
)
==
2
)
and
re
.
match
(
r
'// Project: OpenWalnut \( http://www.openwalnut.org \)'
,
lines
[
3
])
and
(
len
(
lines
[
3
]
)
==
52
)
and
re
.
match
(
r
'//'
,
lines
[
4
])
and
re
.
match
(
r
'// Copyright 2009 '
,
lines
[
5
])
and
(
len
(
lines
[
4
]
)
==
2
)
and
re
.
match
(
r
'// Copyright 2009 '
,
lines
[
5
])
#Checks only the first part of the line. Other copyrights could appear.
# and ( len( lines[5] ) == 18 ) #Checks only the first part of the line. Other copyrights could appear.
and
re
.
match
(
r
'// For more information see http://www.openwalnut.org/copying'
,
lines
[
6
])
and
(
len
(
lines
[
6
]
)
==
61
)
and
re
.
match
(
r
'//'
,
lines
[
7
])
and
(
len
(
lines
[
7
]
)
==
2
)
and
re
.
match
(
r
'// This file is part of OpenWalnut.'
,
lines
[
8
])
and
(
len
(
lines
[
8
]
)
==
35
)
and
re
.
match
(
r
'//'
,
lines
[
9
])
and
(
len
(
lines
[
9
]
)
==
2
)
and
re
.
match
(
r
'// OpenWalnut is free software: you can redistribute it and/or modify'
,
lines
[
10
])
and
(
len
(
lines
[
10
]
)
==
69
)
and
re
.
match
(
r
'// it under the terms of the GNU Lesser General Public License as published by'
,
lines
[
11
])
and
(
len
(
lines
[
11
]
)
==
78
)
and
re
.
match
(
r
'// the Free Software Foundation, either version 3 of the License, or'
,
lines
[
12
])
and
(
len
(
lines
[
12
]
)
==
68
)
and
re
.
match
(
r
'// \(at your option\) any later version.'
,
lines
[
13
])
and
(
len
(
lines
[
13
]
)
==
38
)
and
re
.
match
(
r
'//'
,
lines
[
14
])
and
(
len
(
lines
[
14
]
)
==
2
)
and
re
.
match
(
r
'// OpenWalnut is distributed in the hope that it will be useful,'
,
lines
[
15
])
and
(
len
(
lines
[
15
]
)
==
64
)
and
re
.
match
(
r
'// but WITHOUT ANY WARRANTY; without even the implied warranty of'
,
lines
[
16
])
and
(
len
(
lines
[
16
]
)
==
65
)
and
re
.
match
(
r
'// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the'
,
lines
[
17
])
and
(
len
(
lines
[
17
]
)
==
64
)
and
re
.
match
(
r
'// GNU Lesser General Public License for more details.'
,
lines
[
18
])
and
(
len
(
lines
[
18
]
)
==
54
)
and
re
.
match
(
r
'//'
,
lines
[
19
])
and
(
len
(
lines
[
19
]
)
==
2
)
and
re
.
match
(
r
'// You should have received a copy of the GNU Lesser General Public License'
,
lines
[
20
])
and
(
len
(
lines
[
20
]
)
==
75
)
and
re
.
match
(
r
'// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.'
,
lines
[
21
])
and
(
len
(
lines
[
21
]
)
==
69
)
and
re
.
match
(
r
'//'
,
lines
[
22
])
and
(
len
(
lines
[
22
]
)
==
2
)
and
re
.
match
(
r
'//---------------------------------------------------------------------------'
,
lines
[
23
])
and
re
.
match
(
r
'$'
,
lines
[
24
])
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment