jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar Plugins
  • Sonar Plugins
  • SONARPLUGINS-1994

Provide support for PC-lint

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: CXX-0.1
  • Fix Version/s: CXX-0.2
  • Component/s: Cxx
  • Labels:
    None
  • Environment:
    Java 7u5, Microsoft Windows 7 64-bit, MS SQL Server 2012
  • Number of attachments :
    2

Description

PC-lint from Gimpel is a static code checker which does a good job analysing C++ source code and also generates XML output. Also Author files can be used to extent the scan rules according MISRA C++ 2008 (TM) definitions.

Please extent CXX plugin to include PCLint reports.

see also
http://aloa-lint.sourceforge.net/
http://www.gimpel.com/html/pub90/msg.txt

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    resources.zip
    19/Aug/12 11:50 AM
    123 kB
    bert kandert
    1. XML File
      pclint-profile.xml 169 kB
    2. XML File
      pclint.xml 471 kB
    Download Zip
    Show
    Zip Archive
    resources.zip
    19/Aug/12 11:50 AM
    123 kB
    bert kandert
  2. Text File
    sonar-cxx-plugin-with-PCLint-0.1.patch
    14/Jul/12 12:47 AM
    36 kB
    bert kandert

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
bert kandert added a comment - 01/Jul/12 1:49 PM

PCLint 9.x report integration was successful done on one rainy weekend. Thanks to my son - he did not complain.

Show
bert kandert added a comment - 01/Jul/12 1:49 PM PCLint 9.x report integration was successful done on one rainy weekend. Thanks to my son - he did not complain.
Hide
Permalink
bert kandert added a comment - 01/Jul/12 1:53 PM - edited

A first version of PCLint reporting is available (see attachment).

Show
bert kandert added a comment - 01/Jul/12 1:53 PM - edited A first version of PCLint reporting is available (see attachment).
Hide
Permalink
bert kandert added a comment - 14/Jul/12 12:47 AM

patch for pclint and bullseye support

Show
bert kandert added a comment - 14/Jul/12 12:47 AM patch for pclint and bullseye support
Hide
Permalink
bert kandert added a comment - 14/Jul/12 12:49 AM - edited

missing resources for pclint patch file

The PCLint rules are defined in a seperate profile.

Show
bert kandert added a comment - 14/Jul/12 12:49 AM - edited missing resources for pclint patch file The PCLint rules are defined in a seperate profile.
Hide
Permalink
bert kandert added a comment - 14/Jul/12 12:59 AM - edited

unfortunately the PCLint XML output is not complete and I fix it with a small correction.

//************script Snippet*********************
start "lint" /min /belownormal /wait %LINT_ROOT%\LINT-NT.EXE -i%LINT_ROOT% my-definitions.lnt -pch(StdAfx.h) +os(pclint-tmp.xml) "%PROJ_LNT%"
copy %RESULT_PATH%\fix-pclint.xml+pclint-tmp.xml pclint-report.xml
del stdafx.lph
del pclint-tmp.xml
//************end of Snippet*********************

//************* fix-pclint.xml **********************
<?xml version="1.0" ?>
<results>
//************end of Snippet*********************

//************my-definitions.lnt Snippet*********************

// Overwrite output formatting options from policy;
// The following formatting options make sure that
// the output is in a form suitable for sonar(XML)

-v // Turn off verbosity
-width(0,0) // Don't break long lines
+xml(?xml version="1.0" ?) // add version information
+xml(results) // Turn on XML escapes
-"format=<issue file =\q%f\q line = \q%l\q number = \q%n\q desc = \q%m\q/>"
-"format_specific= "
-hFs1 // The height of a message should be 1 i.e. don't output the line in error

-e900 // 'Successful completion message' confuses ALOA
//************end of Snippet*********************

Show
bert kandert added a comment - 14/Jul/12 12:59 AM - edited unfortunately the PCLint XML output is not complete and I fix it with a small correction. //************ script Snippet ********************* start "lint" /min /belownormal /wait %LINT_ROOT%\LINT-NT.EXE -i%LINT_ROOT% my-definitions.lnt -pch(StdAfx.h) +os(pclint-tmp.xml) "%PROJ_LNT%" copy %RESULT_PATH%\fix-pclint.xml+pclint-tmp.xml pclint-report.xml del stdafx.lph del pclint-tmp.xml //************ end of Snippet ********************* //************* fix-pclint.xml ********************** <?xml version="1.0" ?> <results> //************ end of Snippet ********************* //************ my-definitions.lnt Snippet ********************* // Overwrite output formatting options from policy; // The following formatting options make sure that // the output is in a form suitable for sonar(XML) -v // Turn off verbosity -width(0,0) // Don't break long lines +xml(?xml version="1.0" ?) // add version information +xml(results) // Turn on XML escapes -"format=<issue file =\q%f\q line = \q%l\q number = \q%n\q desc = \q%m\q/>" -"format_specific= " -hFs1 // The height of a message should be 1 i.e. don't output the line in error -e900 // 'Successful completion message' confuses ALOA //************ end of Snippet *********************
Hide
Permalink
bert kandert added a comment - 19/Aug/12 11:50 AM

Update of severity for the PCLint messages and added CppCheck messages (see SONARPLUGINS-2103)

Show
bert kandert added a comment - 19/Aug/12 11:50 AM Update of severity for the PCLint messages and added CppCheck messages (see SONARPLUGINS-2103 )
Hide
Permalink
Fernando Isamo Pellim Numashiri added a comment - 05/Sep/12 2:30 PM

Have been testing this patch for a while. Working great so far! Thanks a ton!

Show
Fernando Isamo Pellim Numashiri added a comment - 05/Sep/12 2:30 PM Have been testing this patch for a while. Working great so far! Thanks a ton!
Hide
Permalink
bert kandert added a comment - 21/Sep/12 2:45 AM

Was tested with PCLint 9.0i and the new rules are available in separate profile "C++ with PCLint"

see revision 6045

Show
bert kandert added a comment - 21/Sep/12 2:45 AM Was tested with PCLint 9.0i and the new rules are available in separate profile "C++ with PCLint" see revision 6045
Hide
Permalink
bert kandert added a comment - 06/Nov/12 5:22 PM

improved error handling of org.sonar.plugins.cxx.pclint.CxxPCLintSensor.processReport - catch NullPointerException and log error.

Show
bert kandert added a comment - 06/Nov/12 5:22 PM improved error handling of org.sonar.plugins.cxx.pclint.CxxPCLintSensor.processReport - catch NullPointerException and log error.

People

  • Assignee:
    bert kandert
    Reporter:
    bert kandert
Vote (2)
Watch (4)

Dates

  • Created:
    23/Jun/12 1:50 AM
    Updated:
    18/Feb/13 2:20 AM
    Resolved:
    21/Sep/12 2:45 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.