Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming regulations: _ or - in file names #27

Open
Streusel opened this issue Oct 26, 2014 · 1 comment
Open

Naming regulations: _ or - in file names #27

Streusel opened this issue Oct 26, 2014 · 1 comment

Comments

@Streusel
Copy link
Contributor

While performing a manual merge on some of my files I noticed c_winapi and cpp-winapi. Could we please enforce naming rules such that we only use underscores or dashes? Unless the language actually includes these I don't see why we use both.
That would be my only concern at the moment.

Here are the ones I can find
Using "-"

  • cpp-qt.php
  • cpp-winapi.php
  • ocaml-brief.php
  • php-brief.php

Using "_"

  • apt_sources.php
  • c_loadrunner.php
  • c_mac.php
  • c_winapi.php
  • org_conf.php
@cweiske cweiske changed the title Naming regulations Naming regulations: _ or - in file names Mar 15, 2017
@BenBE
Copy link
Contributor

BenBE commented May 7, 2017

Basically use dash (-) if a specialised version of another language (e.g. cpp-qt, php-brief), use underscore (_) when the name would otherwise contain disallowed characters (e.g. apt_sources, xorg_conf).

Thus the only non-conforming files from your list are the 3 language files for variants of C (c_loadrunner, c_mac, c_winapi) which should receive a dash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants