Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

git lint can't find yamllint #156

Open
wintermonster opened this issue Apr 23, 2020 · 0 comments
Open

git lint can't find yamllint #156

wintermonster opened this issue Apr 23, 2020 · 0 comments

Comments

@wintermonster
Copy link

I get the following error when i try to run git lint

C:\Users\nzahuja\Anaconda3\lib\site-packages\gitlint\__init__.py:107: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml_config = yaml.load(content)
Linting file: ←[1m.gitlab-ci.yml←[0m←[1m←[33mSKIPPED←[0m: yamllint is not installed. Run pip install yamllint.

but when I run yamllint, it works

(base) D:\Nikhil\GitLab\visualisations>yamllint .gitlab-ci.yml
.gitlab-ci.yml
  1:79      warning  missing starting space in comment  (comments)
  1:79      error    wrong new line character: expected \n  (new-lines)
  3:79      warning  missing starting space in comment  (comments)
  5:1       warning  missing document start "---"  (document-start)
  12:15     warning  too few spaces before comment  (comments)
  14:79     warning  missing starting space in comment  (comments)
  16:79     warning  missing starting space in comment  (comments)
  22:81     error    line too long (107 > 80 characters)  (line-length)
  23:81     error    line too long (106 > 80 characters)  (line-length)
  24:81     error    line too long (105 > 80 characters)  (line-length)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant