Ralf Hain

My feedback

  1. 15 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  General  ·  Flag idea as inappropriate…  ·  Admin →

    In PC-lint Plus, suppression options inside a source module do not “leak” to subsequent modules so this is less of an issue for PC-lint Plus than it was for PC-lint but we do plan to add a warning for -save options that do not have corresponding -restore options in a future update to PC-lint Plus.

    Ralf Hain supported this idea  · 
  2. 4 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  General  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Ralf Hain commented  · 

    Update for the 'Drill down':
    https://wiki.jenkins-ci.org/display/JENKINS/PcLint+options
    Leading zeros make it easier to trace back from number to rule.

    An error occurred while saving the comment
    Ralf Hain commented  · 

    This could be accomplished by sed, eg:
    sed -i -e 's|Note 960|Error 960|' output.lnt
    Of cause, this depends on the -format option, so your suggestion would still make some sense.
    Of cause, sed is not available under windows per default -> cygwin ...

    Here a more complex of sed-application:

    # 'back to the sixties'
    # ie 'Drill down' the collective message 960 MISRA X.Y to 30XY. (1960 MISRA X.Y.Z to 4XYZ)
    sed -i -e 's|Note 96[01]\(.*Rule \)\([0-9]*\)\.\([0-9]\)|Warning 30\2\3\1\2\.\3|' output.lnt
    sed -i -e 's|Note 196[03]\(.*Rule \)\([0-9]*\)-\([0-9]*\)-\([0-9]*\)|Warning 4\2\3\4\1\2-\3-\4|' output.lnt
    #
    # possible line no 1960 must not be substituded
    # -> not format-agnostic, different for XML and other formats.
    # Here for XML format:
    # 's|<code>96[01]<\(.*Rule \)\([0-9]*\)\.\([0-9]\)|<code>30\2\3<\1\2\.\3|'
    # 's|<code>196[03]<\(.*Rule \)\([0-9]*\)-\([0-9]*\)-\([0-9]*\)|<code>4\2\3\4<\1\2-\3-\4|'
    #
    # You also might want to replace "Note" by "Warning" in the sed-substitution;
    # this rises the importance of the MISRA-issues a bit.

Feedback and Knowledge Base