|
| 1 | + |
| 2 | +# False positives |
| 3 | +premium-misra-cpp-2008-5-17-1 |
| 4 | +premium-misra-cpp-2008-5-0-6 |
| 5 | +premium-misra-cpp-2008-7-2-1 |
| 6 | +premium-misra-cpp-2008-3-3-2 |
| 7 | + |
| 8 | +# open source warnings are handled by the selfcheck.yml |
| 9 | +noExplicitConstructor |
| 10 | +postfixOperator |
| 11 | +shadowFunction |
| 12 | +useStlAlgorithm |
| 13 | + |
| 14 | +# we need to declare reserved identifier _CRTDBG_MAP_ALLOC |
| 15 | +premium-cert-dcl51-cpp |
| 16 | + |
| 17 | +# TODO: Is there unsafe allocations, in case of exceptions) in cppcheck |
| 18 | +premium-cert-err58-cpp |
| 19 | + |
| 20 | +# we have global objects |
| 21 | +premium-cert-err58-cpp |
| 22 | + |
| 23 | +# TODO: Exception objects must be nothrow copy constructible. |
| 24 | +premium-cert-err60-cpp |
| 25 | + |
| 26 | +# TODO should we throw Token? |
| 27 | +premium-cert-err61-cpp |
| 28 | + |
| 29 | +# TODO: Detect errors when converting a string to a number. The library function 'atoi()' shall not be used. |
| 30 | +premium-cert-err62-cpp |
| 31 | + |
| 32 | +# TODO: Can we reduce some const_cast? |
| 33 | +premium-cert-exp55-cpp |
| 34 | + |
| 35 | +# sometimes a void function does not have side effects |
| 36 | +premium-misra-cpp-2008-0-1-8 |
| 37 | + |
| 38 | +# unused arguments, misra rules are too strict |
| 39 | +premium-misra-cpp-2008-0-1-11 |
| 40 | +premium-misra-cpp-2008-0-1-12 |
| 41 | + |
| 42 | +# we sometimes don't care about return value from functions |
| 43 | +premium-misra-cpp-2008-0-1-7 |
| 44 | + |
| 45 | +# TODO: can we prevent commented out code? |
| 46 | +premium-misra-cpp-2008-2-7-2 |
| 47 | +premium-misra-cpp-2008-2-7-3 |
| 48 | + |
| 49 | +# NA |
| 50 | +premium-misra-cpp-2008-2-10-1 |
| 51 | + |
| 52 | +# objects of a class often has the lowercase name of the class. |
| 53 | +premium-misra-cpp-2008-2-10-4 |
| 54 | + |
| 55 | +# flag |= .. |
| 56 | +premium-misra-cpp-2008-4-5-1 |
| 57 | + |
| 58 | +# Token/Variable flags are enum constants and we use those in bitwise operations by intention. |
| 59 | +premium-misra-cpp-2008-4-5-2 |
| 60 | + |
| 61 | +# intentional addition of char to string: const std::string end(':' + cfg + ':' + Path::simplifyPath(sourcefile)); |
| 62 | +premium-misra-cpp-2008-4-5-3 |
| 63 | + |
| 64 | +# too strict operator precedence warnings |
| 65 | +premium-misra-cpp-2008-5-0-2 |
| 66 | + |
| 67 | +# we are less strict about signedness. what bug is there here: unsigned int col = 0 |
| 68 | +premium-misra-cpp-2008-5-0-4 |
| 69 | + |
| 70 | +# intentional integral-to-float conversion |
| 71 | +premium-misra-cpp-2008-5-0-5 |
| 72 | + |
| 73 | +# intentional addition of char literal: c = 'a' + (temp - 10); |
| 74 | +premium-misra-cpp-2008-5-0-11 |
| 75 | + |
| 76 | +# conversion of char-to-int is intentional sometimes |
| 77 | +premium-misra-cpp-2008-5-0-12 |
| 78 | + |
| 79 | +# pointer-to-bool conversion is common |
| 80 | +premium-misra-cpp-2008-5-0-14 |
| 81 | + |
| 82 | +# pointer arithmetic is not uncommon in cppcheck code |
| 83 | +premium-misra-cpp-2008-5-0-15 |
| 84 | + |
| 85 | +# it's only a problem if signed expression is negative |
| 86 | +premium-misra-cpp-2008-5-0-21 |
| 87 | + |
| 88 | +# Intentional safe operands of &&: return !stdValue.empty() && str == getCPP(); |
| 89 | +premium-misra-cpp-2008-5-2-1 |
| 90 | + |
| 91 | +# const_cast performs intentional const casting |
| 92 | +premium-misra-cpp-2008-5-2-5 |
| 93 | + |
| 94 | +# safe code: const char *next = static_cast<const char*>(std::memchr(pattern, ' ', pattern_len)); |
| 95 | +premium-misra-cpp-2008-5-2-8 |
| 96 | + |
| 97 | +# we intentionally cast pointer to integer when creating id for dumpfile |
| 98 | +premium-misra-cpp-2008-5-2-9 |
| 99 | + |
| 100 | +# we intentionally mix increment with other operators in expressions |
| 101 | +premium-misra-cpp-2008-5-2-10 |
| 102 | + |
| 103 | +# intentional array-to-pointer decay |
| 104 | +premium-misra-cpp-2008-5-2-12 |
| 105 | + |
| 106 | +# we write !pointer by intention |
| 107 | +premium-misra-cpp-2008-5-3-1 |
| 108 | + |
| 109 | +# for (;;) |
| 110 | +premium-misra-cpp-2008-6-2-3 |
| 111 | + |
| 112 | +# it's not a bug to not put default at the end of a switch body |
| 113 | +premium-misra-cpp-2008-6-4-6 |
| 114 | + |
| 115 | +# looping linked list => not well formed for loop |
| 116 | +premium-misra-cpp-2008-6-5-1 |
| 117 | +premium-misra-cpp-2008-6-5-2 |
| 118 | +premium-misra-cpp-2008-6-5-3 |
| 119 | +premium-misra-cpp-2008-6-5-4 |
| 120 | +premium-misra-cpp-2008-6-5-5 |
| 121 | +premium-misra-cpp-2008-6-5-6 |
| 122 | + |
| 123 | +# we like early returns |
| 124 | +premium-misra-cpp-2008-6-6-3 |
| 125 | +premium-misra-cpp-2008-6-6-4 |
| 126 | +premium-misra-cpp-2008-6-6-5 |
| 127 | + |
| 128 | +# we have local functions by intention |
| 129 | +premium-misra-cpp-2008-7-3-1 |
| 130 | + |
| 131 | +# intentional: return reference from method to non-const reference parameter |
| 132 | +premium-misra-cpp-2008-7-5-3 |
| 133 | + |
| 134 | +# intentional declaration of multiple variables |
| 135 | +premium-misra-cpp-2008-8-0-1 |
| 136 | + |
| 137 | +# we intentionally don't use & before function names |
| 138 | +premium-misra-cpp-2008-8-4-4 |
| 139 | + |
| 140 | +# cppcheck does not care about this enumerator rule |
| 141 | +premium-misra-cpp-2008-8-5-3 |
| 142 | + |
| 143 | +# TODO Fix these |
| 144 | +premium-misra-cpp-2008-9-3-1 |
| 145 | + |
| 146 | +# we use unions by intention sometimes |
| 147 | +premium-misra-cpp-2008-9-5-1 |
| 148 | + |
| 149 | +# overridden methods is safe |
| 150 | +premium-misra-cpp-2008-10-3-1 |
| 151 | + |
| 152 | +# some classes have public members by intention |
| 153 | +premium-misra-cpp-2008-11-0-1 |
| 154 | + |
| 155 | +# rule should not apply to deleted copy assignment operator |
| 156 | +premium-misra-cpp-2008-12-8-2 |
| 157 | + |
| 158 | +# TODO: this can be fixed by refactoring the code. |
| 159 | +premium-misra-cpp-2008-14-6-2 |
| 160 | + |
| 161 | +# function specializations: TODO check if we should refactor |
| 162 | +premium-misra-cpp-2008-14-8-2 |
| 163 | + |
| 164 | +# we use preprocessor when it makes sense |
| 165 | +premium-misra-cpp-2008-16-0-1 |
| 166 | +premium-misra-cpp-2008-16-2-1 |
| 167 | +premium-misra-cpp-2008-16-2-2 |
| 168 | +premium-misra-cpp-2008-16-3-2 |
| 169 | + |
| 170 | +# TODO do we need to catch string conversion errors (using atoi)? |
| 171 | +premium-misra-cpp-2008-18-0-2 |
| 172 | + |
| 173 | +# what standard alternative is there for std::getenv |
| 174 | +premium-misra-cpp-2008-18-0-3 |
| 175 | + |
| 176 | +# <ctime> is used by intention |
| 177 | +premium-misra-cpp-2008-18-0-4 |
| 178 | + |
| 179 | +# code is safe. we use std::strcmp by intention |
| 180 | +premium-misra-cpp-2008-18-0-5 |
| 181 | + |
| 182 | +# we do avoid using new/delete |
| 183 | +premium-misra-cpp-2008-18-4-1 |
| 184 | + |
| 185 | +# <cstdio> is used by intention |
| 186 | +premium-misra-cpp-2008-27-0-1 |
0 commit comments