bug: First N characters of suggestion are trimmed when indented
To reproduce the error:
- Create a new .py file and paste this in
import base64
import datetime
import inspect
import json
import os
import time
import uuid
from . import __version__
from .parser import DockerfileParser
from .shellcheck import ShellCheck
class Analyzer:
def __init__(self, dockerfile: str = None, raw_text: str = None, dockerignore: str = ".dockerignore",
verbose: bool = False, explain_rule: str = None, gitlab_codequality: bool = False,
gitlab_sast: bool = False, write_df: bool = False, show_df: bool = False,
silent: bool = False, **kwargs):
- Create a new line, it should be indented automatically
- In my case the response is:
erbose=False,
# gitlab_codequality=False
I’ve added debugging to the extension and this is actually the output from the model API so I conclude that its either:
- actual output from the model
- a bug in the model, but then it should occur with more users
The above behavior was confirmed by @a_akgun on his instance, suggesting it's option 2.
Also a recording: https://www.loom.com/share/33c66b9381a74914978c1d363a2be674