Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#41400 - [vim-runtime] Hard-Coded Enforcement of Coding Style in Python File Types Plugin
Attached to Project:
Arch Linux
Opened by G. M. (NoSuck) - Wednesday, 30 July 2014, 18:27 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 31 July 2014, 12:19 GMT
Opened by G. M. (NoSuck) - Wednesday, 30 July 2014, 18:27 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 31 July 2014, 12:19 GMT
|
DetailsDescription:
Different people have different coding styles. A file type plugin should not enforce a particular style of coding. A Google employee, for example, would be forced to hack around Arch's vim installation, as company standards mandate two-space indentation. Furthermore, PEP 8 only addresses code intended for the Python standard library and specifically warns against overreaching enforcement: "Many projects have their own coding style guidelines. In the event of any conflicts, such project-specific guides take precedence for that project." (http://legacy.python.org/dev/peps/pep-0008/) |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 31 July 2014, 12:19 GMT
Reason for closing: Upstream
Additional comments about closing: file not provided by Arch, but by upstream.
Thursday, 31 July 2014, 12:19 GMT
Reason for closing: Upstream
Additional comments about closing: file not provided by Arch, but by upstream.
> A Google employee, for example, would be forced to hack around Arch's vim installation, as company standards mandate two-space indentation.
This is a really weird claim. The stock configuration would never facilitate writing code which passes Google's extensive pylint rules (nor would one ever be using Arch on a Google-issued machine, or writing Google code on a non-Google-issued machine).
The Google example is not a weird claim, and it in no way suggests rewriting ftplugin/python.vim to conform to Google's standards. Rather, it illustrates benefits of enforcing no standards. Also, I do not understand your claim that one would never write Google code on a non-Google-issued machine. For a counterexample, author a patch on an Arch machine for the following file:
https://code.google.com/p/mozc/source/browse/trunk/src/android/split_abi.py