Skip to content

Commit

Permalink
Handle .yml files the same as .yaml
Browse files Browse the repository at this point in the history
Mostly this is so we can lint gqlgen.yml, but also other yaml config
files where the tooling decides how the file is named.

Auditors: benkraft

Test plan:
In webapp, ran with success:
   git ls-files '*.yml' | xargs ka-lint
  • Loading branch information
csilvers committed Apr 20, 2020
1 parent 6e9c161 commit acdd14a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def find_files_to_lint(files_and_directories,
'.jsx': 'javascript',
'.less': 'less',
'.yaml': 'yaml',
'.yml': 'yaml',
'.kt': 'kotlin',
'.go': 'go',
'.graphql': 'sdl', # graphql "schema definition language"
Expand Down

0 comments on commit acdd14a

Please sign in to comment.