I'm getting a "not a terminal" error and it's not clear how to proceed #1252
Answered
by
asdkant-bf
asdkant-bf
asked this question in
Q&A
-
QuestionI'm trying out qlty in the context of a pipeline (Azure pipelines), but when I run
Am I not supposed to run this outside of an interactive terminal? the documentation is not really clearon that point. How to reproduce (optional)the YAML code for my pipeline: steps:
- bash: |
curl https://qlty.sh | bash
displayName: instal qlty
- bash: |
source /home/vsts/.config/.bashrc
# it breaks here
qlty init
displayName: qlty init
- bash: |
source /home/vsts/.config/.bashrc
qlty metrics --all --max-depth=2 --sort complexity --limit 10
displayName: qlty metrics Expected behavior (optional)No response CLI Version0.458.0 (d0c76b8) Information about Qlty configuration and environment (optional)
|
Beta Was this translation helpful? Give feedback.
Answered by
asdkant-bf
Dec 2, 2024
Replies: 1 comment 1 reply
-
With a bit more digging in the docs I found the Still, the error message could be enhanced with a suggestion, or it could be mentioned somewhere in the docs. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
brynary
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a bit more digging in the docs I found the
--yes
flag, passing that solves the issue.Still, the error message could be enhanced with a suggestion, or it could be mentioned somewhere in the docs.