You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yamllint/tests
Adrien Vergé 228c47ab77 fix(indentation): Fix seq indent detection with consistent spaces
In the case when the conf is as follows:

    indentation:
      spaces: consistent
      indent-sequences: true

and there is no indented block before the first block sequence, and this
block sequence is not indented, then the spaces number is computed as
zero (while it obviously shouldn't be).

This causes such a document to fail on 4th line, instead of 2nd:

    a:
    - b
    c:
      - d

This commit fixes that, and adds corresponding tests.

Fixes: #39
8 years ago
..
rules fix(indentation): Fix seq indent detection with consistent spaces 8 years ago
yaml-1.2-spec-examples Tests: Remove ghost character from YAML spec example 9 years ago
__init__.py Tests: Run with LC_ALL=C for uniform tests 9 years ago
common.py Tests: Reorganize common and global tests 9 years ago
test_cli.py Add strict mode argument to CLI 9 years ago
test_config.py fix(rules): Use `true`/`false`, not `yes`/`no` 8 years ago
test_linter.py linter: Fix UnicodeError when parsing comments 9 years ago
test_parser.py parser: Add tests for `Comment.is_inline()` 9 years ago
test_spec_examples.py fix(rules): Use `true`/`false`, not `yes`/`no` 8 years ago
test_syntax_errors.py Rules: indentation: Handle sets 9 years ago
test_yamllint_directives.py Allow disabling yamllint checks using comments 9 years ago