~widelands-dev/widelands/bug-1808169-disable-focus

« back to all changes in this revision

Viewing changes to cmake/codecheck/rules/illegal_space_after_opening_bracket

  • Committer: qcs
  • Date: 2010-02-05 01:13:20 UTC
  • Revision ID: git-v1:136d6c48811c97ec1f98301726134b0de66f868c
Manual merge of cmake-migration branch to trunk

git-svn-id: https://widelands.svn.sourceforge.net/svnroot/widelands/trunk@5030 37b2a8de-5219-0410-9f54-a31bc463ab9c

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
 
 
4
"""
 
5
This catches an opening [ followed by a space or end of line.
 
6
"""
 
7
 
 
8
error_msg="No space or newline allowed after opening bracket."
 
9
 
 
10
strip_comments_and_strings = True
 
11
regexp=r"""\[( |$|\n)"""
 
12
 
 
13
forbidden = [
 
14
        '\tfloat a[ 2];',
 
15
]
 
16
 
 
17
allowed = [
 
18
    '[h',
 
19
    '//[',
 
20
    '// [',
 
21
    '// Do [ what you want ( in comments',
 
22
]