46e9108419 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Add 'consistent' option for 'indent-sequences'  
							
							... 
							
							
							
							Using `indent-sequences: consistent` allows block sequences to be
indented or not to be, as long as it remains the same within the file. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								2f9e3cc71b 
								
							
								 
							
						 
						
							
							
								
								Conf: relaxed: Set indentation to warning level  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b13a03815a 
								
							
								 
							
						 
						
							
							
								
								Conf: default: Use `spaces: consistent` for indentation  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9a7eec34b1 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Fix `spaces: consitent` with broken flows  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5b62548ece 
								
							
								 
							
						 
						
							
							
								
								Tests: indentation: Use 'spaces: consistent' by default  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								8fca8a7a33 
								
							
								 
							
						 
						
							
							
								
								Config: Allow 'enable' keyword for rules  
							
							... 
							
							
							
							In the same manner as 'disable', 'enable' allows setting a rule on
without worrying about its options. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								69ef9a7272 
								
							
								 
							
						 
						
							
							
								
								Conf: relaxed: Set max line-length back to 80  
							
							... 
							
							
							
							Because 80 has been the default for years. But keep it as a warning, not
an error. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								d8d1d92545 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.1.0  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								7688567faa 
								
							
								 
							
						 
						
							
							
								
								cli: Add the `-d` option to provide inline conf  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4e188f8801 
								
							
								 
							
						 
						
							
							
								
								Conf: Add a new pre-defined conf 'relaxed'  
							
							... 
							
							
							
							It is more tolerant than 'default'. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5693b1dddf 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Add 'consistent' option for 'spaces'  
							
							... 
							
							
							
							Using `spaces: consistent` allows any number of spaces, as long as it
remains the same within the file. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								fa420499c7 
								
							
								 
							
						 
						
							
							
								
								Config: Allow types in multiple choices  
							
							... 
							
							
							
							For instance, allow rules with:
    CONF = {'choice': (int, 'hardcoded-string'),
            'string-or-bool': (str, bool)} 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								adefe38a0d 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.0.4  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								7e11082353 
								
							
								 
							
						 
						
							
							
								
								Distribution: Restore spec examples in package_data  
							
							... 
							
							
							
							Put `tests/yaml-1.2-spec-examples/*` back in `setup.py`'s `package_data`
because they need to be installed when running `python setup.py build`,
so Debian packaging script `dh_auto_test -O--buildsystem=pybuild`
doesn't fail.
See also commit e6dc67f 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								29c1c60143 
								
							
								 
							
						 
						
							
							
								
								Tests: Use absolute path to spec examples  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b879e9a98f 
								
							
								 
							
						 
						
							
							
								
								Distribution: Add LICENSE and README to manifest  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5956b20545 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.0.3  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								10ad302e2f 
								
							
								 
							
						 
						
							
							
								
								Tests: Explicit encoding for spec examples  
							
							... 
							
							
							
							YAML specification examples contain unusual characters, let's explicit
`encoding='utf-8'` to prevent bugs. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								73d9322813 
								
							
								 
							
						 
						
							
							
								
								linter: Test run on str, unicode, bytes and stream  
							
							... 
							
							
							
							Previously it was not tested, and broke on Python 2 `unicode` inputs. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								ca0ebe4583 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.0.2  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e6dc67fd0a 
								
							
								 
							
						 
						
							
							
								
								Distribution: Add MANIFEST.in  
							
							... 
							
							
							
							`yamllint/conf/*.yml` remains in `setup.py`'s `package_data` because it
needs to be installed when running `pip install .`.
`docs/*` and `tests/yaml-1.2-spec-examples/*` just need to be packaged,
they can go in the manifest. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								611a560082 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.0.1  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								83384fa4cf 
								
							
								 
							
						 
						
							
							
								
								Doc: Fix man page redundant description  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								3ab3784a75 
								
							
								 
							
						 
						
							
							
								
								cli: Remove shebang  
							
							... 
							
							
							
							A shebang is present at the beginning of file, it dates from the time
when `yamllint/cli.py` was `bin/yamllint`, i.e. an executable launcher.
Since this is not the case anymore (see `entry_points` section in
`setup.py`), let's remove it. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								2f75e92a66 
								
							
								 
							
						 
						
							
							
								
								Doc: Add a configuration example in README  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								64caa95b6a 
								
							
								 
							
						 
						
							
							
								
								yamllint version 1.0.0  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								fff09fa2df 
								
							
								 
							
						 
						
							
							
								
								Distribution: Ship example files from spec in sdist  
							
							... 
							
							
							
							Closes : #1  
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								316bee8c98 
								
							
								 
							
						 
						
							
							
								
								yamllint version 0.7.2  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								6c8af97a40 
								
							
								 
							
						 
						
							
							
								
								Tests: unblacklist remaining spec examples  
							
							... 
							
							
							
							Since !!tags are now supported. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								647d84ff94 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Handle tags  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								8eb0d0ad74 
								
							
								 
							
						 
						
							
							
								
								Tests: unblacklist spec example 7.16  
							
							... 
							
							
							
							As is it supported -- it just lacks some indentation. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4bc3d5a01c 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Handle anchors  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								48c7d65c54 
								
							
								 
							
						 
						
							
							
								
								parser: Provide nextnext for token rules  
							
							... 
							
							
							
							Because the indentation rule sometimes needs to look two tokens forward
(in case of anchors for instance). 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								62fa4cbe39 
								
							
								 
							
						 
						
							
							
								
								Tests: indentation: Test the indent stack  
							
							... 
							
							
							
							The "indentation stack" is iteratively built by the `check()` function
of the indentation rule. It is important, since everything in the rule
relies on it.
This patch adds tests to make sure the stack is correctly built for some
known structures. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								8d38d349ac 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Rewrite stack generation  
							
							... 
							
							
							
							"Indentation stack" generation was not done properly, hence did not work
in all cases. This commit does a cleaner rewriting. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								3f264806b9 
								
							
								 
							
						 
						
							
							
								
								yamllint version 0.7.1  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9a82b99d4b 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Fix multi-line flows  
							
							... 
							
							
							
							To detect this as correct indentations:
    top:
      rules: [
        {
          foo: 1
        },
        {
          foo: 2
          bar: [
            a, b, c
          ],
        },
      ] 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								ba140ad42c 
								
							
								 
							
						 
						
							
							
								
								Tests: Remove ghost character from YAML spec example  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								0e04ee29e6 
								
							
								 
							
						 
						
							
							
								
								Doc: Update description  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								ba9d86d645 
								
							
								 
							
						 
						
							
							
								
								yamllint version 0.7.0  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								3f4f13e848 
								
							
								 
							
						 
						
							
							
								
								Doc: Update screenshot to include 'key-duplicates'  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								f6bab05e8a 
								
							
								 
							
						 
						
							
							
								
								Rules: Add the 'key-duplicates' rule  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								c16eec4681 
								
							
								 
							
						 
						
							
							
								
								Style: Fix indentation not multiple of four  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								68618be4cc 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Handle sets  
							
							... 
							
							
							
							Sets are like mappings, that do not contain values. Example:
    set:
      ? key one
      ? key two
      ? [non, scalar, key] 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								431a379c81 
								
							
								 
							
						 
						
							
							
								
								Tests: Add tests from YAML 1.2 specification  
							
							... 
							
							
							
							Write all examples from http://www.yaml.org/spec/1.2/spec.html  in
independent files in tests/yaml-1.2-spec-examples; and test them with
yamllint. 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								6b5948c06b 
								
							
								 
							
						 
						
							
							
								
								Tests: Reorganize common and global tests  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								dd163ed551 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Fix flow sequences with multi-line scalars  
							
							... 
							
							
							
							Typically sequences like this:
    ["multi
      line 1", "multi
                line 2"] 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								14c99da2bb 
								
							
								 
							
						 
						
							
							
								
								Tests: Add test cases for empty flows  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								cae100071a 
								
							
								 
							
						 
						
							
							
								
								Rules: indentation: Add support for cleared sequence entries  
							
							... 
							
							
							
							The following construction is valid YAML, and its indentation should be
correctly handled:
    - this is
    -
      a
    -
      sequence:
        with cleared entries 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								7cb7b4f669 
								
							
								 
							
						 
						
							
							
								
								Rules: commas: Add 'min-spaces-after'  
							
							... 
							
							
							
							Since such constructions are allowed and valid YAML:
    - [one,two, three,four]
this commit adds a `min-spaces-after` option that defaults to 1. 
							
						 
						
							10 years ago