opt-nc / yamlfixer

Automates the fixing of problems reported by yamllint by parsing its output
https://dev.to/adriens/series/18168
GNU General Public License v3.0
55 stars 8 forks source link

🔍 Test if all works fine under MS Windows 🪟 #40

Open tamere-allo-peter opened 2 years ago

tamere-allo-peter commented 2 years ago
giggio commented 2 years ago

I just ran it on Windows and it failed. Log is:

❯ yamlfixer -c .\.yamllint.yml --summary --debug .\build.yml
DEBUG: yamlfixer v0.9.15
DEBUG: arguments=Namespace(backup=False, backupsuffix='.orig', debug=True, diffto='nul', ext='yaml,yml,yamllint', forcecolors=False, followsymlinks=False, listfixers=False, nosyntax=False, nochange=False, recurse=0, jsonsummary=False, plainsummary=False, summary=True, tabsize=2, config_file='.\\.yamllint.yml', config_data=None, filenames=['.\\build.yml'])
DEBUG: Fixing .\build.yml ...
DEBUG: Executing linter with "yamllint --format parsable --strict --config-file '.\\.yamllint.yml' -"
DEBUG: Linter's exit code is 1
DEBUG: was skipped
Files to fix: 1
0 files were already correct before
0 files were modified but problems remain
0 files were entirely fixed
1 files were skipped
0 files were not writable
0 files with unknown status
    SKIPPED .\build.yml
tamere-allo-peter commented 2 years ago

@giggio thanks a lot for your tests. Please could you attach the .yamllint.yml and build.yml files you tested with to this issue ?

giggio commented 2 years ago

I can't share the build.yml file, but this is the .yamllint.yml:

---
rules:
  line-length: disable
  quoted-strings:
    required: only-when-needed
    quote-type: double