Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top

Вебинар: Go vet не поможет... Как сделать свой анализатор кода для Go? - 28.09

>
>
История версий PVS-Studio
menu mobile close menu
Проверка проектов
Дополнительная информация
toggle menu Оглавление

История версий PVS-Studio

07 Сен 2026

PVS-Studio 8.00 (19 августа 2026)

  • В новой major версии PVS-Studio 8 стали доступны новые анализаторы для языков JavaScript, TypeScript и Go. Для работы с ними из сред разработки можно воспользоваться новыми плагинами для WebStorm и GoLand. Также значительно переработан плагин для среды Visual Studio Code, в которой доступна работа PVS-Studio со всеми поддерживаемыми анализатором языками программирования.
  • Для настройки новых анализаторов и плагинов, а также обновлённого расширения для Visual Studio Code теперь используется новый тип файлов конфигурации в формате TOML. Подробнее о нём можно прочитать в документации.
  • Продолжаются работы по покрытию стандарта MISRA C++ 2023. 16 существующих диагностических правил группы MISRA адаптированы под стандарт MISRA C++ 2023. Подробнее о поддержке стандартов MISRA можно прочитать по ссылке.
  • В документации описан процесс интеграции анализатора в интеллектуальную платформу защищённой разработки SolidLab SDP.
  • В GitVerse Starter Workflow — коллекции шаблонов для CI/CD внутри платформы совместной разработки GitVerse — появились шаблоны для запуска анализа с помощью PVS-Studio.
  • Расширена поддержка триплетов для компилятора g++ (x86_64-pc-linux-gnu-c++) на Linux. Также поддержана работа с компиляторами kcc ARMV7 и TI C2000-CGT в режиме мониторинга/трассировки компиляции.
  • Плагин PVS-Studio стал доступен для Qt Creator версий 20.x. Прекращена поддержка плагина для версий Qt Creator 14.x. Мы стараемся обеспечивать обратную совместимость по поддержке последних версий плагинов для всех версий Qt Creator за два года с момента каждого релиза.
  • В Java анализаторе теперь корректно обрабатываются проекты со сложной структурой сборки, использующие наборы исходных данных (sourceSets).
  • Продолжается внедрение новой системы логирования для упрощения сбора информации о проблемах, возникающих при работе анализаторов PVS-Studio. Расширенное логирование было добавлено для анализатора С++ и C# MSBuild проектов. Подробнее о новой системе логирования можно прочитать в документации.
  • [Breaking change] Для Unreal Engine проектов флаг //V_USE_OLD_PARSER в файле .pvsconfig теперь игнорируется. С развитием нового парсера C++ анализатора мы рекомендуем использовать его по умолчанию для всех проверяемых проектов. Теперь новый парсер будет включен по умолчанию в проектах, использующих более старые версии Unreal Engine, даже если в исходных файлах движка присутствует флаг //V_USE_OLD_PARSER.
  • [Breaking change] В Java анализаторе добавлена сортировка содержимого файлов подавления. Это не меняет результат работы анализатора, но может привести к появлению больших различий при обновлении suppress-файлов, заложенных в системе контроля версий.
  • [Breaking change] В ряде случаев для диагностических правил V2558 и V547 изменены сообщения. Возможно повторное попадание в отчёт ранее подавленных сообщений этих правил.
  • [Breaking change] В связи с масштабными изменениями в расширении Visual Studio Code для поддержки новых анализаторов PVS-Studio мы поднимаем минимально поддерживаемую версию этой IDE для работы с расширением с 1.74 (ноябрь 2022) до 1.100 (апрель 2025).
  • V6136. Values of bit flags are duplicated.
  • V5801. OWASP. Code contains invisible characters that may alter its logic. Consider enabling the display of invisible characters in the code editor.
  • V5901. OWASP. Code contains invisible characters that may alter its logic. Consider enabling the display of invisible characters in the code editor.
  • V7001. Operands of a binary operator are equivalent.
  • V7002. The body of a function is fully equivalent to the body of another function.
  • V7003. A condition is equivalent to a condition in an 'else if' statement, making it unreachable.
  • V7004. The 'then' statement is equivalent to the 'else' statement.
  • V7005. A variable is assigned to itself.
  • V7006. An exception is created but never used. The 'throw' keyword may be missing.
  • V7007. The '|' and '&' operators bypass short-circuit evaluation. The right-hand operand will be evaluated even when the left operand is false.
  • V7008. Two or more 'case' branches perform the same actions.
  • V7009. A parameter is not used in a function, constructor, or method.
  • V7010. The return value of the function is required to be utilized.
  • V7011. Comparison with 'NaN' is incorrect. Use 'isNaN()' or 'Number.isNaN()' method instead.
  • V7012. The conditional expression always returns the same value.
  • V7013. Suspicious assignment in the condition. A comparison may have been intended.
  • V7014. An identical expression to the left and to the right of a compound assignment.
  • V7015. Suspicious formatting of assignment and unary operators.
  • V7016. Suspicious access to a collection element by a constant index inside a loop.
  • V7017. A loop counter is not used for collection indexing in the inner loop.
  • V7018. The expression 'A || (A && B)' is redundant and always evaluates to 'A'.
  • V7019. A variable is used as a counter for both inner and outer loops.
  • V7020. Suspicious code formatting. Curly brackets may be missing.
  • V7021. The postfix increment or decrement has no effect because the variable is overwritten.
  • V7022. It is possible that this 'else' branch should belong to the previous 'if' statement.
  • V7023. Suspicious use of a variable in similar code fragments. This may be a typo, and a different variable was intended.
  • V7024. Suspicious sub-expression in sequence of similar comparisons.
  • V7025. It is possible that an assigned variable should be checked in the following condition. Consider checking for a typo.
  • V7026. A stray semicolon after the condition of an if, for or while statement.
  • V7027. An object is passed as an argument to its own method.
  • V7028. A user-defined mathematical constant is used instead of a built-in constant. The resulting value may be inaccurate.
  • V7029. The line may have been commented out improperly, resulting in altered control flow.
  • V7030. Suspicious code formatting. The 'else' keyword may be missing.
  • V7031. A suspicious label was found inside a 'switch' statement. This may be a typo, and a different label was intended.
  • V7032. The loop counter is compared to its own initial value.
  • V7033. Suspicious similar comparisons. A typo may be present inside the expression.
  • V7034. The method in the child class does not override or implement the method of the ancestor class. A typo may be present in the name of the child class method.
  • V7035. Suspicious property implementation. Another field should probably be returned or assigned instead.
  • V7036. Suspicious precise comparison. Consider using a comparison with defined precision.
  • V7037. The nested loop counter is initialized with the outer loop counter.
  • V7038. The loop condition may be incorrect. The condition and update expression of the loop use different variables.
  • V7039. Unreachable code detected. Control flow never reaches this statement.
  • V7040. Infinite recursion detected.
  • V8001. Identical sub-expressions to the left and to the right of the 'foo' operator.
  • V8002. A variable is assigned to itself.
  • V8003. Consider inspecting the expression. Probably one of the operators should be used here: '-=', '+=' or '!='.
  • V8004. The use of 'if A {...} else if A {...}' pattern was detected. A potential logical error is present.
  • V8005. The 'then' statement is equivalent to the 'else' statement.
  • V8006. Unconditional 'break/continue/return/goto' within a loop.
  • V8007. Calling the 'recover' function inside the anonymous function that is not deferred will not recover execution from panic.
  • V8008. Suspicious access to a collection element by a constant index inside a loop.
  • V8009. Two or more 'case' branches perform the same actions.
  • V8010. Two or more 'case' branches have equivalent expressions.
  • V8011. An identical expression to the left and to the right of a compound assignment.
  • V8012. A function always returns the same value. Consider inspecting the program logic.
  • V8013. Incorrect format. A different number of format items is expected.
  • V8014. Two 'if' statements have identical conditions. The first 'if' statement contains function return, making the second 'if' redundant, or the code contains a logical error.
  • V8015. Suspicious use of the bitwise XOR operator '^'. The exponentiation operation may have been intended here.
  • V8016. The loop may be executed incorrectly or its condition will never be met. Inspect initial and final values in the 'for' loop.
  • V8017. The conditions of two adjacent 'if' statements are equivalent.
  • V8018. Comparison with 'math.NaN()' is meaningless. Use the 'math.IsNaN()' function instead.
  • V8019. Two or more equivalent expressions are specified inside the case expression list.
  • V8020. Recurring check. This condition was already verified on a previous line.
  • V8021. Using a unary operator several times is meaningless or reverses the result.
  • V8022. A parameter is not used in a function or method.
  • V8023. It is possible that a wrong variable of the 'error' type is checked for 'nil'.
  • V8024. Redundant type assertion. The type of a variable already embeds the type that is checked using type assertion.
  • V8025. The case in a type switch is unreachable. A previous case already covers this type.
  • V8026. The counter is not used inside the body of the nested loop.
  • V8027. Suspicious sub-expression in sequence of similar comparisons.
  • V8028. The outer loop counter is modified in the post statement of the inner loop. Perhaps the inner loop counter should be modified instead.
  • V8029. The outer loop counter is used in the condition of the inner loop. Perhaps the inner loop counter should be used instead.
  • V8030. The outer loop counter is used in the init statement of the inner loop. Perhaps a different variable should be used as a counter instead.
  • V8031. Using the call of the 'len' function as an index will result in an off-by-one error.
  • V8032. The return value of the function is required to be used.
  • V8033. Two similar code fragments were found. A second fragment may contain a typo.
  • V8034. Potentially incorrect order of arguments passed to a function.
  • V8035. Type assertion is always false. Check interfaces used in type assertion, as they contain methods with incompatible signatures.
  • V8036. A meaningless comparison with a variable of an unsigned type.
  • V8037. The same argument was passed to a function multiple times. A different argument may have been intended.
  • V8038. Parameter is always rewritten in the function body before being used.
  • V8039. Suspicious leading or trailing whitespace in the value used to identify an element.
  • V8040. The value of the variable is overwritten before it is used.

История версий предыдущих релизов

Историю версий для предыдущих релизов смотрите здесь.