summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Get lib/ free of spelling violations.Pete Higgins2020-05-181-1/+1
| | | | Signed-off-by: Pete Higgins <pete@peterhiggins.org>
* Remove copyright dateslcg/remove-copyright-datesLamont Granquist2020-04-131-1/+1
| | | | | | | | Legally incredibly dubious, particularly since we don't follow it strictly as policy, and we have git history instead, which does it right. This is just a waste of time and a cargo cult. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Fix typoVivek Singh2020-04-061-1/+1
| | | | Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
* Style/StringLiteralsInInterpolationLamont Granquist2019-07-051-1/+1
| | | | | | since we use double quotes, be consistent everywhere. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/ClassCheckLamont Granquist2019-07-051-1/+1
| | | | | | convert kind_of? to is_a? Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Style/EmptyMethodLamont Granquist2019-07-021-2/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-5/+5
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix Layout/LeadingCommentSpaceLamont Granquist2018-07-021-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Simplify the deprecations system a bit, and introduce ways to silence ↵Noah Kantrowitz2018-06-141-8/+7
| | | | | | deprecation warnings. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Feed the Rubocop.Noah Kantrowitz2018-04-261-1/+1
| | | | | | Some day I will remember which is which on string styles. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Allow specifying `ignore_failure :quiet` to disable the error spew.Noah Kantrowitz2018-04-261-1/+1
| | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Structure deprecations with additional metadatatm/deprecation_with_urlThom May2016-11-161-1/+11
| | | | | | | | This adds URLs to each class of deprecation, and correctly prints and formats them for maximum user efficiency. We also provide the URL to the data collector for Visibility to ingest. Signed-off-by: Thom May <thom@chef.io>
* Hook up the recipe_file_loaded event which was defined but not actually called.Noah Kantrowitz2016-09-021-2/+2
| | | | | | | This also extends two of the recipe events to get the recipe name in addition to the path because that's usually useful for display. These arguments are both added at the end so the auto-magic argument trimmer will keep backwards compat. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Log platform in pretty error outputcd/log-platformJordan Running2016-03-181-1/+1
|
* manual fixing for raise unlessLamont Granquist2016-03-141-2/+2
|
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-2/+2
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* autofixing whitespace copsLamont Granquist2016-02-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-5/+5
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Implement code review comments and fix failing testsThom May2015-11-091-0/+7
|
* I think this was a bad search-and-replace, causes an infinite loop.Noah Kantrowitz2015-09-251-1/+1
|
* Find the spot the user called and use that as the deprecation locationJohn Keiser2015-09-251-1/+1
|
* Pass deprecations through formatter instead of logsJohn Keiser2015-09-011-0/+3
|
* add note on why commented line is commentedLamont Granquist2014-07-311-0/+2
|
* Prevent indentation from being set to negative numbersLamont Granquist2014-07-311-0/+5
| | | | | | | | If we don't defensively program here, the result is terrible. All that gets raised is "negative argument" from deep within the formatter and from then on the formatter is broken. It will continue to raise errors from events called from inside the Chef::Client exception handler and you're gonna have a bad time.
* Move output stream to its own class fileJohn Keiser2014-05-011-144/+2
|
* Print prefix to distinguish separate streams of outputJohn Keiser2014-04-301-6/+26
|
* Synchronize so that simultaneous prints do notJohn Keiser2014-04-301-22/+27
| | | | cross each other and mess up lines
* Refactor for simplicity, make the resource a streamJohn Keiser2014-04-301-20/+24
| | | | | so that it is guaranteed to stick together or at least not get anything else appended to it
* Add ability to stream (and indent) command outputJohn Keiser2014-04-301-37/+65
|
* Add indentation to pretty-print LWRPs with inline resourcesJohn Keiser2014-04-291-1/+57
|
* Change default output to formatters when in consoledanielsdeleo2012-11-201-1/+4
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+247
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!