Skip to content

Commit

Permalink
The YAML markup language is called YAML, not YML
Browse files Browse the repository at this point in the history
As someone said [1] on the internet:

    Say ".yaml" not ".yml".
    This is not MS-DOS, and YML is a Yahoo XML dialect.

Similarly, we use '.json', not '.jsn'.
This commit renames the `yml` bear directory to `yaml`.

[1]: ceph/s3-tests@e17c56a
[2]: adrienverge/yamllint@41733fc
[3]: http://yaml.org/spec/1.2/spec.html
  • Loading branch information
adrienverge committed Feb 6, 2017
1 parent b352573 commit 4a101b7
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/ruby/RuboCopBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Testing Config
rubocop_config = os.path.join(os.path.dirname(__file__),
'test_files',
'rubocop_config.yml')
'rubocop_config.yaml')


# bad file becomes good and vice-versa
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/swift/TailorBearTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

tailorconfig = os.path.join(os.path.dirname(__file__),
'test_files',
'tailor.yml')
'tailor.yaml')

good_file = """class UpperCamelCase {
var x: Int
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from bears.yml.RAMLLintBear import RAMLLintBear
from bears.yaml.RAMLLintBear import RAMLLintBear
from coalib.testing.LocalBearTestHelper import verify_local_bear

good_file = """
Expand Down
14 changes: 7 additions & 7 deletions tests/yml/YAMLLintBearTest.py → tests/yaml/YAMLLintBearTest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from bears.yml.YAMLLintBear import YAMLLintBear
from bears.yaml.YAMLLintBear import YAMLLintBear
from coala_utils.ContextManagers import prepare_file
from coalib.testing.LocalBearTestHelper import verify_local_bear

Expand All @@ -18,7 +18,7 @@
...
"""

no_start_yml_file = """receipt: Oz-Ware Purchase Invoice
no_start_yaml_file = """receipt: Oz-Ware Purchase Invoice
date: 2012-08-06
customer:
first_name: Dorothy
Expand All @@ -30,7 +30,7 @@
price: 1.47
quantity: 4"""

with_start_yml_file = """---
with_start_yaml_file = """---
receipt: Oz-Ware Purchase Invoice
date: 2012-08-06
customer:
Expand Down Expand Up @@ -70,11 +70,11 @@
'yamllint_config': conf_file})

YAMLLintBear3Test = verify_local_bear(YAMLLintBear,
valid_files=(no_start_yml_file,),
invalid_files=(with_start_yml_file,))
valid_files=(no_start_yaml_file,),
invalid_files=(with_start_yaml_file,))

YAMLLintBear4Test = verify_local_bear(YAMLLintBear,
valid_files=(with_start_yml_file,),
invalid_files=(no_start_yml_file,),
valid_files=(with_start_yaml_file,),
invalid_files=(no_start_yaml_file,),
settings={
'document_start': True})
File renamed without changes.

0 comments on commit 4a101b7

Please sign in to comment.