github / github/codeql

[feat] comments that enable/disable LSP formatting

Ouverte
#21,730 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
CodeQL
Étoiles
10.1k
Forks
2.1k
Merge moyen
2 j 15 h
PR mergées (30 j)
141

Description

I don't see LSP (`codeql execute language-server`) having any documentation other than its help page, so I'm just assuming that this isn't a feature.

I like formatting my queries with the LSP formatter, but sometimes it formats stuff in a way that makes it clearly less readable to me. I want the equivalent of clang's

```codeql
// clang-format off

// clang-format on
```

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start at the `codeql execute language-server` entry point and its help page, then compare the requested behavior with clang-format's documented disabling markers. Clarify the marker syntax, scope, and expected interaction with LSP formatting; done means formatting is disabled only for the requested regions and the behavior is documented and tested.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
developer-experience, tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Calme
Clarté
À clarifier
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.