Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds experimental stdin support #1355

Merged
merged 1 commit into from Feb 16, 2021
Merged

Adds experimental stdin support #1355

merged 1 commit into from Feb 16, 2021

Commits on Feb 15, 2021

  1. Adds experimental stdin support

    Allow ansible-lint to perform linting from stdin when filename
    argument '/dev/stdin' or '-' are given.
    
    Keep in mind:
    - no argument still means auto-detect as I found no reliable way
      to identify that the tool was used with shell pipes
    - filename reported is 'stdin', same as flake8 does
    - received content is assumed to be a playbook, you cannot lint
      a task file this way. Others are welcomed to propose improvements
      for detecting the file type based on its content, because we do
      not have any `filename` available.
    ssbarnea committed Feb 15, 2021
    Configuration menu
    Copy the full SHA
    5d8c5b8 View commit details
    Browse the repository at this point in the history