Last modified: 2014-03-20 18:54:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60277 - Kill tabs in operations/puppet's manifests/admins.pp
Kill tabs in operations/puppet's manifests/admins.pp
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Low trivial (vote)
: ---
Assigned To: Tony Thomas
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-21 05:45 UTC by MZMcBride
Modified: 2014-03-20 18:54 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2014-01-21 05:45:55 UTC
https://git.wikimedia.org/blob/operations%2Fpuppet/2114110b6b55ec4efb38bd8b19baadf6675bf9e0/manifests%2Fadmins.pp

This file has inconsistent indentation. It should either use tabs or spaces, not some crazy mixture of the two.
Comment 1 Daniel Zahn 2014-03-03 20:06:23 UTC
it should use 4 spaces. we changed our style since when this was created.
Comment 2 Marius Hoch 2014-03-03 20:15:06 UTC
This should be as simple as running :%s/\t/    /g in vim... getting it through CR w/o conflicts might be more of a problem.
Comment 3 Daniel Zahn 2014-03-03 20:59:14 UTC
exactly. https://wikitech.wikimedia.org/wiki/Puppet_coding#Spacing.2C_Indentation.2C_.26_Whitespace


" Wikimedia style uses 4 spaces for indentation
autocmd BufRead */wmf/puppet/* set sw=4 ts=4 et

open the file, :retab, :wq, done

-> https://wikitech.wikimedia.org/wiki/Puppet_coding#tab_character_found_on_line_..
Comment 4 Gerrit Notification Bot 2014-03-16 10:01:08 UTC
Change 118961 had a related patch set uploaded by 01tonythomas:
Kill tabs in operations/puppets manifests/admins.pp

https://gerrit.wikimedia.org/r/118961
Comment 5 Gerrit Notification Bot 2014-03-16 10:08:17 UTC
Change 118961 abandoned by 01tonythomas:
Kill tabs in operations/puppets manifests/admins.pp

Reason:
Duplicate of https://gerrit.wikimedia.org/r/#/c/118794/

https://gerrit.wikimedia.org/r/118961
Comment 6 Gerrit Notification Bot 2014-03-16 10:10:44 UTC
Change 118794 had a related patch set uploaded by 01tonythomas:
lint admins.pp-pt01-replace tabs and nothing else

https://gerrit.wikimedia.org/r/118794
Comment 7 Daniel Zahn 2014-03-20 18:52:19 UTC
https://gerrit.wikimedia.org/r/#/c/118794/ has been merged
Comment 8 Daniel Zahn 2014-03-20 18:54:28 UTC
puppet-lint admins.pp | grep -i "tab char" | wc -l
0

:)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links