Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
\b(get)\b.*{
|
Description |
This piece of regex catches the if the open braces are not placed the line under a get command
|
Matches |
get {
|
Non-Matches |
get
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
\bfor\b.*[A-Za-z][<> ][\d]
|
Description |
This regex catches the hard-coded for blocks
|
Matches |
for (i=1;i<7;i++)
|
Non-Matches |
for (i=1;i<MyEnd;i++)
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
\b(byte|char|short|long|float|int|double|decimal|bool|string)\b.*\s[a-zA-Z](?=;)
|
Description |
This regex catches if the variable isn't initialized when it is declared
|
Matches |
int a;
|
Non-Matches |
int a =5;
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
(\bprotected\b.*(public))|(\bprivate\b.*(protected))|(\bprivate\b.*(public))
|
Description |
This regex catches illegal precedence order of declerations of a class
|
Matches |
class SomeClass:private BaseClass1, public BaseClass2, protected BaseClass3
|
Non-Matches |
class SomeClass:public BaseClass1, protected BaseClass2, private BaseClass3
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
\b(\w+).\1
|
Description |
This regex catches the redundacy of including class names in the name of class properties.
|
Matches |
Book.BookPage
|
Non-Matches |
Book.Page
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
\b(public|private|protected|internal)\b.*(byte|char|short|long|float|int|double|decimal|bool|string)\b.*(?=,)
|
Description |
This regex forces the programmer to make only one decleration per line.
|
Matches |
private int height, width;
|
Non-Matches |
private int height;
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
((\bm_[a-zA-Z\d]*\b)|(\bin_[a-zA-Z\d]*\b)|(\bin _[a-zA-Z\d]*\b))
|
Description |
This regex limits the use of any special prefix characters to indicate that the variable is scoped to the class.
|
Matches |
in_name | m_name
|
Non-Matches |
this.name
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Title |
Test
Details
Pattern Title
|
Expression |
\binterface\b.*(\bI[_]\w*\b)
|
Description |
This regex forbids the use of underscore in the interface decleration.
|
Matches |
interface I_Point
|
Non-Matches |
interface IPoint
|
Author |
Rating:
Not yet rated.
Utku Ozan CANKAYA
|
Displaying page
of
pages;
Items to