srcanaapps/codescannerextn/com.nokia.carbide.cpp.codescanner/Tools/release_notes.txt
author noe\swadi
Thu, 18 Feb 2010 12:28:37 +0530
changeset 1 9176d200b8fe
permissions -rw-r--r--
Committing the CodeScanner carbide extension. This component has been moved from the IDE package. BUG : 5889 (http://developer.symbian.org/webbugs/show_bug.cgi?id=5889).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     1
# #################################################################
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     3
# All rights reserved.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     4
# 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     5
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     6
# 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     7
# * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     8
# * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
     9
# * Neither the name of Nokia Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    10
# 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    11
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    12
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    13
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    14
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    15
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    16
#
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    17
# #################################################################
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    18
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    19
Nokia CodeScanner Command Line Tool Release Notes
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    20
=================================================
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    21
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    22
Version 2.1.4
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    23
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    24
- Copyright changes done.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    25
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    26
Version 2.1.3
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    27
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    28
- Updated the function parser in CodeScanner to improve check for
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    29
leaving functions called in non-leaving functions. There should
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    30
be less false positives now.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    31
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    32
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    33
Version 2.1.2
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    34
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    35
- Added new IAD rule to check flag usage. IA must not use R&D flags 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    36
nor feature flags via preprocessor statements in the source code. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    37
This means bldvariant.hrh and productvariant.hrh should not be used.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    38
This new rule is set to low severity in the "Other" category by 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    39
default. It can be configured by adding a <flags> script element 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    40
in the configuration file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    41
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    42
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    43
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    44
    <flags category="other" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    45
           enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    46
           severity="low"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    47
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    48
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    49
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    50
- Added new IAD rule to check Central Repository usage. IA cannot 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    51
assume that the Central Repository is set up fully. This means the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    52
return value of CRepository::get() cannot be ignored.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    53
This new rule is set to low severity in the "Other" category by 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    54
default. It can be configured by adding a <crepository> script 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    55
element in the configuration file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    56
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    57
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    58
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    59
    <crepository category="other" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    60
                 enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    61
                 severity="low"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    62
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    63
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    64
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    65
- Added new IAD rule to check customizable icons. Due to device 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    66
customization requirements, IA must not remove any customization 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    67
done by the variant team. This means IA cannot include customizable 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    68
icons.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    69
This new rule is set to low severity in the "Other" category by 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    70
default. It can be configured by adding a <customizableicons> 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    71
script element in the configuration file. Names of icons can be 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    72
specified in the <iconsRE> element.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    73
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    74
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    75
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    76
    <customizableicons category="other" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    77
                       enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    78
                       severity="low">
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    79
      <iconsRE>iconA.bmp|iconB.svg|iconC</iconsRE>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    80
    </customizableicons>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    81
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    82
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    83
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    84
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    85
Version 2.1.1
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    86
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    87
- Added support for user-defined rules. This can be done by
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    88
adding a <customrules> element to the configuration file.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    89
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    90
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    91
  <customrules>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    92
    <customrule>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    93
      <name>myOwnRule</name>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    94
      <keyword type=”class”>CMyOwnClass</keyword>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    95
      <filetype>h</filetype>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    96
      <severity>low</severity>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    97
      <title>My CodeScanner rule targeting CMyOwnClass</title>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    98
      <description>Locate definition of CMyOwnClass</description>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
    99
    </customrule>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   100
  </customrules>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   101
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   102
More information on the syntax of this new element can be found in 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   103
the document "CodeScanner_XML_ConfigFile_Spec.doc".
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   104
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   105
- When scanning with low severity rules, CodeScanner now 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   106
generates informative messages instead of warnings when the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   107
StdOut output format is selected.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   108
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   109
- Added support to disable individual error/warning via
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   110
CodeScanner commands embedded in comments. The command has the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   111
following format : 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   112
  codescanner(::<rule name>)+
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   113
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   114
void CTestCase::Foo()
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   115
{
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   116
  array->At(a); // codescanner::accessArrayElementWithoutCheck
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   117
  User::Leave(KErrNone); /* codescanner::LeaveNoError */
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   118
}
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   119
A complete list of CodeScanner rule names can be found in the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   120
document "CodeScanner_Rules.doc".
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   121
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   122
- Added new rule to check whether Cancel() function is called 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   123
in active object's destructor.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   124
Cancel() should always be called in active object's destructor 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   125
to cancel an outstanding request if there is one. If there is 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   126
no request pending then Cancel() just does nothing, but if we 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   127
do not call Cancel() when having an outstanding request a panic 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   128
will be raised.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   129
This new rule is set to low severity in the "Coding Standards"
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   130
category by default. It can be configured by adding a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   131
<missingcancel> script element in the configuration
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   132
file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   133
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   134
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   135
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   136
    <missingcancel category="codingstandards" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   137
                   enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   138
                   severity="low"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   139
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   140
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   141
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   142
-Updated the function parser in CodeScanner to filter out constant 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   143
initialization.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   144
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   145
- Updated active object checking rule to ignore After() from 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   146
RTimer type member variables.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   147
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   148
- Updated to skip excluded folders specified in configuration file 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   149
when generating component summary reports.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   150
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   151
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   152
Version 2.1.0
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   153
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   154
- Previously CodeScanner has been distributed as a single-file
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   155
executable which packs all the DLLs and library modules it needed 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   156
into an archive attached to itself. During runtime, it creates a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   157
directory (_MEI<id>) in the user's temp directory, and extract 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   158
these files there. When execution is complete, it recursively 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   159
removes the entire directory it created. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   160
Unfortunately the cleanup process sometimes fail. So over time 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   161
user's temp directory can be littered with these directories, 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   162
which can cause CodeScanner to fail if it tries to reuse a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   163
directory that was created from a previous run.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   164
To address this problem, we separated all these modules from 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   165
CodeScanner.exe and shipping them "as is". This change should be
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   166
transparent from user's point of view, except when copying
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   167
CodeScanner to other locations on user's system.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   168
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   169
- Updated configuration file format to allow passing arguments 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   170
to CodeScanner. One can now add an <arguments> element to the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   171
configuration file with one or more of the following 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   172
child elements :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   173
<input> - specify additional directory/file to scan
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   174
<outputformat> (html|xml|std) - specify output format
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   175
<lxr> - url to lxr site
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   176
<lxrversion> - lxr version
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   177
<timestampedoutput> (on/off) - create time-stamped output directory 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   178
Example:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   179
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   180
  <arguments>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   181
    <input>C:\Testing\CodeScanner_Tests\Bug_6393\Includes</input>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   182
    <outputformat>html|xml</outputformat>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   183
    <lxr>http://s60lxr/source/</lxr>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   184
    <lxrversion>S60_3_2_200736</lxrversion>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   185
    <timestampedoutput>on</timestampedoutput>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   186
  </arguments>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   187
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   188
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   189
- Added new rule to check stack-based resource objects not put 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   190
on the cleanup stack.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   191
If a stack-based resource object is not put on the cleanup stack 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   192
with CleanupClosePushL() or CleanupResetAndDestroyPushL(), and 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   193
a leaving function or ELeave is called, a memory leak occurs. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   194
CodeScanner occasionally gives false positives for this issue. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   195
Individual cases should be investigated.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   196
This new rule is set to low severity in the "Code Review"
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   197
category by default. It can be configured by adding a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   198
<resourcenotoncleanupstack> script element in the configuration
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   199
file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   200
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   201
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   202
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   203
    <resourcenotoncleanupstack category="codereview" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   204
                               enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   205
                               severity="low"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   206
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   207
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   208
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   209
- Added new rule to check inheritance order of M and C classes. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   210
If a C class inherits first from an M class and then a C class,
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   211
a panic can occur when trying to pop a CBase pointer pointing 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   212
to such a class from the cleanup stack when in fact a pointer 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   213
pointing to the first predecessor, the mixin class, was popped 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   214
instead.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   215
This new rule is set to high severity in the "Can Panic"
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   216
category by default. It can be configured by adding a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   217
<inheritanceorder> script element in the configuration file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   218
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   219
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   220
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   221
    <inheritanceorder category="canpanic" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   222
                      enable="true" 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   223
                      severity="high"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   224
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   225
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   226
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   227
- Updated rule for L-functions that cannot leave. It is now
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   228
possible to specify functions to be ignored by this rule in the
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   229
configuration file. This is done by adding a <LFunctionIgnoreRE> 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   230
element to the <LFunctionCantLeave> script element.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   231
Example:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   232
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   233
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   234
    <LFunctionCantLeave enable="true">
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   235
      <LFunctionIgnoreRE>RunL</LFunctionIgnoreRE>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   236
    </LFunctionCantLeave>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   237
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   238
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   239
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   240
- Updated description of rule for badly-named enum members.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   241
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   242
- Updated NULL equality check rule to ignore pointer comparisons 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   243
with NULL inside various __ASSERT_XXX() macros.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   244
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   245
- Removed duplicate rule for hard-coded external drive letters. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   246
There is now only 1 rule that check for this problem and it is 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   247
a low severity rule in the Coding Standard category.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   248
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   249
- Improved rule for accessing array element by [] without 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   250
checking range.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   251
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   252
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   253
Version 2.0.9
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   254
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   255
- Updated check for Open() to allow assignment of return value on 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   256
a different line.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   257
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   258
  TInt error = 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   259
    myFile.Open();
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   260
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   261
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   262
Version 2.0.8
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   263
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   264
- Updated check for C class not inheriting from another C class.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   265
It is now possible to specify C class that does not inherit from
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   266
another C class in the configuration file. This is done by adding
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   267
a <cclassIgnoreRE> element to the <missingcclass> script element.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   268
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   269
<missingcclass enable="true">
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   270
  <cclassIgnoreRE>CLogger|CKeypadData</cclassIgnoreRE>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   271
</missingcclass>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   272
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   273
- Updated check for ignored Open() return value.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   274
It is now possible to specify object or class with Open() method
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   275
that does not return any value in the configuration file. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   276
This is done by adding an <openIgnoreRE> element to the 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   277
<open> script element. For a local variable, one can specify 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   278
either the type or variable name in the <openIgnoreRE> element. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   279
For other types of object, one should specify the object name in 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   280
the <openIgnoreRE> element. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   281
Example:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   282
<open enable="true">
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   283
  <openIgnoreRE>CKeyStore|iKeyStore|lKeyStore</openIgnoreRE>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   284
</open>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   285
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   286
- Fixed a bug where some scripts cannot be disabled from the
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   287
configuration file.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   288
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   289
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   290
Version 2.0.7
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   291
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   292
- Updated standard console output to include severity level and
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   293
category information in the error/warning messages.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   294
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   295
- Incorporated Psyco module to improve scanning performance. Please
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   296
refer to the document "MIT license.txt" for licensing info.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   297
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   298
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   299
Version 2.0.6
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   300
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   301
- Updated check for CleanupStack::Pop(AndDestroy)() to ignore
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   302
CleanupStack::Pop(TInt, TAny*) and 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   303
CleanupStack::PopAndDestroy(TInt, TAny*)
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   304
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   305
- Updated check for Open() to allow handler of return value on a 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   306
different line.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   307
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   308
  User::LeaveIfError(
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   309
    myFile.Open());
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   310
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   311
- Updated check for At() to ignore timer objects.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   312
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   313
  TTime now;
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   314
  iTimer.At(iStatus, now);
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   315
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   316
- Improved handling of scanning of code with #ifdef/#else/#endif
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   317
preprocessor commands. CodeScanner sometimes can be confused by
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   318
code surrounded by these preprocessor commands, e.g. generating
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   319
warnings on member variable deleted incorrectly, even when it 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   320
happens inside a destructor. This has been fixed.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   321
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   322
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   323
Version 2.0.5
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   324
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   325
- Added new option to specify additional source directory/file :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   326
"-i <source dir/file>" -- specify additional directory/file to scan
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   327
Example : codescanner -i C:\resources -i C:\includes
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   328
          C:\sources C:\results
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   329
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   330
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   331
Version 2.0.4
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   332
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   333
- Updated HTML generation to use '/' instead of '\' when generating
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   334
links; this change is needed for Mozilla Firefox compatibility.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   335
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   336
- Added new option to toggle creation of time-stamped directory for
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   337
results :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   338
"-t on/off" -- create a time-stamped directory for results; default
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   339
               is on
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   340
Example : codescanner -t off C:\sources C:\results
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   341
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   342
- Added new option to configure output format of results:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   343
"-o html|xml|std" -- specify output format : HTML, XML or StdOut;
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   344
                     default output format is HTML
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   345
Multiple output formats can be specified at the same time.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   346
Example : codescanner -o xml,html C:\sources C:\results
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   347
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   348
- Updated configuration file format to allow user setting the
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   349
category and severity of scripts individually. Each <scripts> element
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   350
contains one or more Script elements, each of which corresponds to a
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   351
CodeScanner rule. Each Script element has the following attributes:
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   352
enable (boolean) – specifies whether a script is enabled by CodeScanner.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   353
severity (string) – specifies the severity level of a script.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   354
category (string) – specifies the category of a script.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   355
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   356
<codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   357
  <scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   358
    <baddefines enable="true" severity="low" category="codingstandards"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   359
    <friend enable="true" severity="low" category="codereview"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   360
    <leave enable="true" severity="high" category="canpanic"/>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   361
  </scripts>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   362
</codescannerConfig>
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   363
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   364
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   365
Version 2.0.3
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   366
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   367
- Updated HTML generation so that links with the '#' character can be
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   368
opened by Mozilla Firefox correctly.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   369
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   370
- Added new options to generate links to LXR server instead of local 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   371
file system. The new options are :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   372
"-x" -- specify URL of LXR site
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   373
"-r" -- specify LXR version
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   374
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   375
Example : codescanner -x http://some.lxr.server/sources/ -r S60_3_2_12
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   376
C:\sources C:\results
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   377
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   378
Once scanning is completed, the results will point to the remote 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   379
LXR server instead of the local "C:\sources" folder.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   380
*****This new feature has been contributed by James Uther of Nokia*****
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   381
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   382
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   383
Version 2.0.2
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   384
=============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   385
- Updated HTML generation so that source file links can be opened by
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   386
Mozilla Firefox.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   387
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   388
- Improved handling of function parameter list spanning multiple lines.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   389
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   390
void CMenuBar::MyMenu (const HBufC* a,
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   391
                       const TDesC& b)
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   392
{ ... }
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   393
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   394
- Improved handling of TRAP block spanning multiple lines.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   395
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   396
  TRAPD(
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   397
    err,
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   398
    WaitDialogL(aErrorCode)
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   399
  );
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   400
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   401
- Updated handling of NULL equality check to allow comparison with NULL
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   402
in return statement. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   403
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   404
  return (ptr != NULL);
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   405
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   406
- Updated handling of hard-coded numbers so that '2' is no longer 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   407
considered a 'magic number'.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   408
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   409
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   410
Version 2.0.1b
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   411
==============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   412
- When checking for leaving functions called in non-leaving functions,
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   413
Cases where macros are used for class declarations are now filtered out.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   414
Example :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   415
NONSHARABLE_CLASS(CMyClass) : public CActive 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   416
{ ... }
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   417
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   418
- When generating individual component report, text containing HTML tags
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   419
(eg. <s>, <i>) are now cleaned up before written to file. This
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   420
prevents unintended text formatting.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   421
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   422
- Corrected spelling mistake in usage info.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   423
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   424
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   425
Version 2.0.0a
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   426
==============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   427
- This is the first development release of Nokia's version of CodeScanner CLI. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   428
Our goals for this release are to :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   429
1) support feature-functions available in Mobile Innovation's CodeScanner v 1.11
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   430
2) address reported issues
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   431
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   432
The following are known issues from CodeScanner v 1.11 :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   433
1) CodeScanner output is not entirely compatible with Mozilla Firefox. 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   434
For security reasons, Mozila Firefox and Mozilla Suite do not allow links to 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   435
local files (and directories). This includes linking to files on the hard drive, 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   436
on mapped network drives, and those accessible via UNC paths.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   437
2) CodeScanner treats 2 as a ‘magic number’. In User Interface code, '2' is 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   438
often used to calculate offsets and should not always be replaced by variable.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   439
3) CodeScanner does not ignore CleanupStack::Pop() without parameters 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   440
if CleanupClosePushL() or similar utility is used.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   441
4) CodeScanner flags all use of #if in .h files irrespective of context.
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   442
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   443
Licensing Notes
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   444
===============
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   445
CodeScanner is built with Python 2.5.1 but does NOT use any of the following
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   446
files or modules :
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   447
python2.5-2.5.1/Lib/test/decimaltestdata/abs.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   448
python2.5-2.5.1/Lib/test/decimaltestdata/add.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   449
python2.5-2.5.1/Lib/test/decimaltestdata/base.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   450
python2.5-2.5.1/Lib/test/decimaltestdata/clamp.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   451
python2.5-2.5.1/Lib/test/decimaltestdata/compare.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   452
python2.5-2.5.1/Lib/test/decimaltestdata/decimal128.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   453
python2.5-2.5.1/Lib/test/decimaltestdata/decimal32.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   454
python2.5-2.5.1/Lib/test/decimaltestdata/decimal64.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   455
python2.5-2.5.1/Lib/test/decimaltestdata/divide.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   456
python2.5-2.5.1/Lib/test/decimaltestdata/divideint.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   457
python2.5-2.5.1/Lib/test/decimaltestdata/inexact.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   458
python2.5-2.5.1/Lib/test/decimaltestdata/max.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   459
python2.5-2.5.1/Lib/test/decimaltestdata/min.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   460
python2.5-2.5.1/Lib/test/decimaltestdata/minus.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   461
python2.5-2.5.1/Lib/test/decimaltestdata/multiply.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   462
python2.5-2.5.1/Lib/test/decimaltestdata/normalize.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   463
python2.5-2.5.1/Lib/test/decimaltestdata/plus.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   464
python2.5-2.5.1/Lib/test/decimaltestdata/power.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   465
python2.5-2.5.1/Lib/test/decimaltestdata/quantize.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   466
python2.5-2.5.1/Lib/test/decimaltestdata/randomBound32.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   467
python2.5-2.5.1/Lib/test/decimaltestdata/randoms.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   468
python2.5-2.5.1/Lib/test/decimaltestdata/remainder.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   469
python2.5-2.5.1/Lib/test/decimaltestdata/remainderNear.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   470
python2.5-2.5.1/Lib/test/decimaltestdata/rescale.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   471
python2.5-2.5.1/Lib/test/decimaltestdata/rounding.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   472
python2.5-2.5.1/Lib/test/decimaltestdata/samequantum.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   473
python2.5-2.5.1/Lib/test/decimaltestdata/squareroot.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   474
python2.5-2.5.1/Lib/test/decimaltestdata/subtract.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   475
python2.5-2.5.1/Lib/test/decimaltestdata/testall.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   476
python2.5-2.5.1/Lib/test/decimaltestdata/tointegral.decTest 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   477
/Demo/curses/tclock.py python2.5-2.5.1/Modules/expat/ascii.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   478
python2.5-2.5.1/Modules/expat/asciitab.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   479
python2.5-2.5.1/Modules/expat/expat.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   480
python2.5-2.5.1/Modules/expat/expat_external.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   481
python2.5-2.5.1/Modules/expat/iasciitab.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   482
python2.5-2.5.1/Modules/expat/latin1tab.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   483
python2.5-2.5.1/Modules/expat/utf8tab.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   484
python2.5-2.5.1/Modules/expat/xmlparse.c 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   485
python2.5-2.5.1/Modules/expat/xmlrole.c 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   486
python2.5-2.5.1/Modules/expat/xmlrole.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   487
python2.5-2.5.1/Modules/expat/xmltok.c 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   488
python2.5-2.5.1/Modules/expat/xmltok.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   489
python2.5-2.5.1/Modules/expat/xmltok_impl.c 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   490
python2.5-2.5.1/Modules/expat/xmltok_impl.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   491
python2.5-2.5.1/Doc/html/about.dat 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   492
python2.5-2.5.1/Doc/html/stdabout.dat 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   493
python2.5-2.5.1/Modules/expat/pyexpatns.h 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   494
python2.5-2.5.1/Lib/robotparser.py 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   495
python2.5-2.5.1/Lib/ctypes/macholib/README.ctypes 
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   496
python2.5-2.5.1/Lib/wsgiref.egg-info
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   497
9176d200b8fe Committing the CodeScanner carbide extension.
noe\swadi
parents:
diff changeset
   498
Please refer to the document "python 2_5_1 licenses.txt" for licensing info.