Downloads:

651

Downloads of v 7.09.42245.2576:

28

Last Update:

05 Oct 2020

Package Maintainer(s):

Software Author(s):

  • PVS-Studio

Tags:

PVS-Studio static-code-analysis C++ C# Java SAST MISRA CWE CERT

PVS-Studio

7.09.42245.2576 | Updated: 05 Oct 2020

Downloads:

651

Downloads of v 7.09.42245.2576:

28

Maintainer(s):

Software Author(s):

  • PVS-Studio

PVS-Studio 7.09.42245.2576

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Depends on .NET Framework 4.72

To install PVS-Studio, run the following command from the command line or from PowerShell:

>

To upgrade PVS-Studio, run the following command from the command line or from PowerShell:

>

To uninstall PVS-Studio, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade pvs-studio -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade pvs-studio -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure pvs-studio installed
  win_chocolatey:
    name: pvs-studio
    state: present
    version: 7.09.42245.2576
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'pvs-studio' do
  action    :install
  version  '7.09.42245.2576'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: pvs-studio,
    Version: 7.09.42245.2576,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller pvs-studio
{
   Name     = 'pvs-studio'
   Ensure   = 'Present'
   Version  = '7.09.42245.2576'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'pvs-studio':
  provider => 'chocolatey',
  ensure   => '7.09.42245.2576',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install pvs-studio version="7.09.42245.2576" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 05 Oct 2020.

Description

PVS-Studio is a tool for detecting bugs and security weaknesses in the source code of programs, written in C, C++, C# and Java. It works under 64-bit systems in Windows, Linux and macOS environments, and can analyze source code intended for 32-bit, 64-bit and embedded ARM platforms.

Check this page to get more info.
This software requires an activation key. You can get trial here.

Default installation contains a core command-line analyzer engine (C, C++, C#). The 'Core' component is a mandatory one, it contains a core command-line analyzer engine, which is required for all of the IDE extension plug-ins to operate. You can also install the following additional components: Standalone, MSVS2010, MSVS2012, MSVS2013, MSVS2015, MSVS2017, MSVS2019, IDEA, JavaCore, Rider.
Brief description of components:

  • components with 'MSVS' prefix in their name are corresponding to Microsoft Visual Studio plug-in extensions;
  • the Standalone component installs compiler monitoring system, which allows to analyze any kind of C, C++ project as long as such project uses one of the supported compilers;
  • the 'IDEA' component corresponds to the PVS-Studio plugin for the IntelliJ IDEA development environment;
  • the 'JavaCore' component corresponds to the analyzer core for Java;
  • the 'Rider' component corresponds to the PVS-Studio plugin for the Rider development environment.

tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'
$packageName = 'PVS-Studio'
$toolsDir   = Split-Path -parent $MyInvocation.MyCommand.Definition
$Args = ' /components="Core'
$BaseArgs = "/verysilent /suppressmsgboxes /norestart /nocloseapplications /skipNetFrameworkInstallation  /LOG=`"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).Install.log`""
$pp = Get-PackageParameters

if ($pp.Standalone) { $Args += ",Standalone" }
if ($pp.JavaCore)   { $Args += ",JavaCore"   }
if ($pp.IDEA)       { $Args += ",IDEA"       }
if ($pp.RIDER)      { $Args += ",Rider"      }
if ($pp.MSVS2010)   { $Args += ",MSVS\2010"  }
if ($pp.MSVS2012)   { $Args += ",MSVS\2012"  }
if ($pp.MSVS2013)   { $Args += ",MSVS\2013"  }
if ($pp.MSVS2015)   { $Args += ",MSVS\2015"  }
if ($pp.MSVS2017)   { $Args += ",MSVS\2017"  }
if ($pp.MSVS2019)   { $Args += ",MSVS\2019"  }

$packageArgs = @{
 packageName   = $packageName
 file64        = "$toolsDir\PVS-Studio_setup.exe"
 fileType      = 'EXE'
 softwareName  = 'PVS-Studio_setup*'
 silentArgs   = $BaseArgs + $Args + '"'
 validExitCodes= @(0, 3010, 1641)
}
Install-ChocolateyInstallPackage @packageArgs 
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';
$packageArgs = @{
 packageName   = $env:ChocolateyPackageName
 softwareName  = 'PVS-Studio*'  
 fileType      = 'EXE' 
 validExitCodes= @(0, 3010, 1605, 1614, 1641) 
 silentArgs   = '/verysilent /suppressmsgboxes /nocloseapplications /norestart'  
}
$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']
if ($key.Count -eq 1) {
 $key | % { 
   $packageArgs['file'] = "$($_.UninstallString)" 
       if ($packageArgs['fileType'] -eq 'MSI') {   
     $packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
     $packageArgs['file'] = ''
   } else {   
  }
   Uninstall-ChocolateyPackage @packageArgs
 }
} elseif ($key.Count -eq 0) {
 Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
 Write-Warning "$($key.Count) matches found!"
 Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
 Write-Warning "Please alert package maintainer the following keys were matched:"
 $key | % {Write-Warning "- $($_.DisplayName)"}
}
tools\LICENSE.txt
From: http://files.viva64.com/License.rtf

LICENSE

OOO "PROGRAM VERIFICATION SYSTEMS" SOFTWARE LICENSE AGREEMENT
The present License agreement is a legal agreement between you, end user (either an individual or a company, hereinafter referred to as Licensee) licensing the PVS-Studio software (hereinafter referred to as PVS-Studio), and OOO "Program Verification Systems" - the developer and the exclusive owner of this software for the accompanying PVS-Studio identified below. 
The PVS-Studio may include various applications, utilities and components and may be provided to you on multiple media or in multiple copies. Nonetheless, the PVS-Studio is designed and provided to you as a single product. You are not required to use all component parts of the PVS-Studio, but you may not unbundle the component parts of the PVS-Studio for use on different computers or by different users. You may not unbundle or repackage the PVS-Studio for distribution, transfer or resale.
In case a user purchases the program OOO "Program Verification Systems" may place information about the user's company on his site in "Customers" section. But if the user doesn't want this information to be available on the site because of some reasons, he or she should tell this to OOO "Program Verification Systems" on the program via e-mail.
Licensee may not modify, reverse engineer, decompile, disassemble, distribute, sub-license, sell, rent, lease, give or in any way transfer the Software, by any means or in any medium, including telecommunications. Licensee will use its best efforts and take all reasonable steps to protect the Software from unauthorized use, copying or dissemination, and will retain all proprietary notices intact.
Notwithstanding contrary, Licensees Affiliates may access and use the PVS-Studio. "Licensees Affiliates" shall mean an individual or entity that (a) directly or indirectly controls, or is controlled by, or is under common control with a Licensee; and/or (b) owns or controls fifty percent (50.0%) or more of the outstanding voting securities of a Licensee.
You have the right to use PVS-Studio for free by adding special comments to the source code of your project. To find out which comments should be added and the way to automate this process, read the article: "How to use PVS-Studio for Free".
Note that this mode is not intended to evaluate this software. Please use a demo version or request a temporary license key to try out the analyzer.
You should insert these comments when you have already decided to use the analyzer on a regular basis. You can remove these comments later, but it is possible to remove them only once.
It is not allowed to add and remove the comments in the source code repeatedly. It is also not allowed to append comments multiple times and subsequently roll back the content of comments in source files to initial state using version control system. Such actions are intended to evade the terms that the source code should contain comments and are a violation of the analyzer usage agreement.
What does the license include besides the right of use?
• right of use product during 1 year;
• a team of no more than 9 developers may use the product, the analyzer being installed only on one computer of each user;
• if customer has an Enterprise License then the product may be used by the number of developers (including developers of Licensees Affiliates) specified by the License name;
• get new versions (including major-versions) during 1 year;
• get support by e-mail during 1 year;
Renewing PVS-Studio license
The price of renewing the license is 80% of the base price at the moment of renewal. The license is renewed also for one year.
Duration of license
The Agreement is effective until terminated. Licensee may terminate this Agreement at any time and destroy the license info. The validity term of the Agreement is determined by the terms and conditions and is clearly indicated in the License info. The Agreement comes into force when you receive the license info. OOO "Program Verification Systems" may terminate the Agreement immediately without notice if you fail to comply with any provision of the Agreement.
Automatic Update Program
The PVS-Studio software product performs automatic checks for the availability of updated version of itself by sending an update request to the remote server. An update request is fully anonymous. It is tied up to your personal account through a unique identifier and doesn’t contain any private data such as e-mail address, name, gender, age, home or work address, telephone number, etc.
Participation in the Automatic Update Program is voluntary. You can choose whether to take part in it when you install our product.
tools\PERMISSION.pdf
md5: C52F432D13EEC862519F39996D0FF047 | sha1: BD58126D15BD2C84835DC9F417038FCE2934E08B | sha256: 878F7F9B96A97DDFF8E30637EADBAA0D82C3A903A88F856A73BE7FB284959A90 | sha512: 660C8915A255E4391A7FC1A93E343C0383B93E55327324F6B9887BA1C6A0DD4BA6DF16BD6A168F96CE98B9F1099AF5DADDCD93C80F59928DED5CE9ED43503662
tools\PVS-Studio_Setup.exe
md5: 2EDC661EF5722110FA2373C506E3BEE2 | sha1: 1826A21C05A5731E2D7490DD367DB2632B8A7BF4 | sha256: F9773E4A45237EC6D5642682AB70EBA7063F9140E29A8660A872BDC0495F68B3 | sha512: 3F3CF66DCA7D38B190621C53C5FB400DF76DCF92E59C4C587AAD6FAC880FC3F93CCB0709F2884C7B48495E0EB6F0DACC93D1DD7F25F6D5D082F6D9196B1BC302
tools\VERIFICATION.txt
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Installer can be verified like this:
1. The installer have been downloaded from their official download link listed on:
   Only for 64-Bit: http://files.viva64.com/PVS-Studio_setup.exe
2. You can use one of the following methods to obtain the checksum SHA256
     - Use powershell function 'Get-Filehash'
     - Use chocolatey utility 'checksum.exe'

File 'LICENSE.txt' is obtained from http://files.viva64.com/License.rtf

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
PVS-Studio 7.09.41435.2517 25 Thursday, September 3, 2020 Approved
PVS-Studio 7.09.41189.2508 25 Thursday, August 27, 2020 Approved
PVS-Studio 7.08.39765.2421 61 Thursday, July 2, 2020 Approved
PVS-Studio 7.08.39499.2403 22 Tuesday, June 23, 2020 Approved
PVS-Studio 7.08.39365.2396 17 Thursday, June 18, 2020 Approved
PVS-Studio 7.07.38234.2308 204 Monday, April 27, 2020 Approved
PVS-Studio 7.07.37949.2290 46 Thursday, April 16, 2020 Approved
PVS-Studio 7.06.37100.2212 52 Thursday, February 27, 2020 Approved
PVS-Studio 7.05.35617.2075 149 Wednesday, December 11, 2019 Approved

Discussion for the PVS-Studio Package

Ground Rules:

  • This discussion is only about PVS-Studio and the PVS-Studio package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or PVS-Studio, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus