Downloads:

3,054

Downloads of v 0.68.1:

121

Last Update:

25 Apr 2019

Package Maintainer(s):

Software Author(s):

  • Uncrustify Team

Tags:

uncrustify source code beautifier beautify indent align C C++ C# ObjectiveC D Java Pawn VALA

Uncrustify Code Beautifier

This is not the latest version of Uncrustify Code Beautifier available.

0.68.1 | Updated: 25 Apr 2019

Downloads:

3,054

Downloads of v 0.68.1:

121

Software Author(s):

  • Uncrustify Team

Uncrustify Code Beautifier 0.68.1

This is not the latest version of Uncrustify Code Beautifier available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Uncrustify Code Beautifier, run the following command from the command line or from PowerShell:

>

To upgrade Uncrustify Code Beautifier, run the following command from the command line or from PowerShell:

>

To uninstall Uncrustify Code Beautifier, 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://community.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://community.chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade uncrustify -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 uncrustify -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 uncrustify installed
  win_chocolatey:
    name: uncrustify
    state: present
    version: 0.68.1
    source: STEP 3 URL

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


chocolatey_package 'uncrustify' do
  action    :install
  version  '0.68.1'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: uncrustify,
    Version: 0.68.1,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller uncrustify
{
   Name     = 'uncrustify'
   Ensure   = 'Present'
   Version  = '0.68.1'
   Source   = 'STEP 3 URL'
}

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


package { 'uncrustify':
  provider => 'chocolatey',
  ensure   => '0.68.1',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install uncrustify version="0.68.1" 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.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 08 May 2019.

Description

Introduction

The goals of this project are simple: Create a highly configurable, easily modifiable source code beautifier.

Features

  • Indent code, aligning on parens, assignments, etc
  • Align on '=' and variable definitions
  • Align structure initializers
  • Align #define stuff
  • Align backslash-newline stuff
  • Reformat comments (a little bit)
  • Fix inter-character spacing
  • Add or remove parens on return statements
  • Add or remove braces on single-statement if/do/while/for statements
  • Supports embedded SQL 'EXEC SQL' stuff
  • Highly configurable - 655 configurable options as of version 0.68
  • See some example output.

tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = $toolsDir
    
  url           = 'https://sourceforge.net/projects/uncrustify/files/uncrustify/uncrustify-0.68.1/uncrustify-0.68.1-win32.zip/download'
  checksum      = 'C7EA58B9059E8AE0691AB80D80DAE413EEF02E04895609E4BA08F901B8FDD801'
  checksumType  = 'sha256'
  
  url64bit      = 'https://sourceforge.net/projects/uncrustify/files/uncrustify/uncrustify-0.68.1/uncrustify-0.68.1-win64.zip/download'
  checksum64    = '3C027D5E33C24A7EE5956084C2F1A26F419412C38DAF30A55A428CABBE84ED30'
  checksumType64= 'sha256'
}

Install-ChocolateyZipPackage @packageArgs

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
Uncrustify Code Beautifier 0.71.0 410 Tuesday, May 12, 2020 Approved
Uncrustify Code Beautifier 0.70.1 332 Wednesday, December 11, 2019 Approved
Uncrustify Code Beautifier 0.69.0 1433 Thursday, May 23, 2019 Approved
Uncrustify Code Beautifier 0.68.1.20190512 97 Sunday, May 12, 2019 Approved
Uncrustify Code Beautifier 0.68.1 121 Thursday, April 25, 2019 Approved
Uncrustify 0.64-alpha1 333 Friday, December 2, 2016 Exempted
Uncrustify 0.64-alpha0 212 Friday, December 2, 2016 Exempted

This package has no dependencies.

Discussion for the Uncrustify Code Beautifier Package

Ground Rules:

  • This discussion is only about Uncrustify Code Beautifier and the Uncrustify Code Beautifier 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 Uncrustify Code Beautifier, 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