Ability to skip formatting for specific sections of code

Aperta
#75 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
tooling

Direzione di ricerca

La issue non indica file, test o un punto di ingresso. Inizia individuando l’implementazione del formatter e i relativi test esistenti nel language server. Il lavoro è completo quando sono supportati // fmt: skip, // fmt: off e // fmt: on con il comportamento descritto per righe, file e blocchi di codice.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

formatting

Automatic code formatters are amazing, but sometimes you find edge cases where they get in the way. In these situations, it's nice to have a get-out-of-jail-free-I-know-what-I'm-doing-leave-me-alone option.

Other code formatters such as Black and Prettier have this option.

My suggestion would be to follow Black and have the following options:

  • // fmt: skip - don't format just this line
  • // fmt: off - turn formatting off from here onwards (can be used to skip an entire file)
  • // fmt: on - turn formatting back on again after a // fmt: off for a code block.
Lingua principale
Java
Stelle
32
Fork
9
Merge medio
15h 40m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextflow-io/language-server

Tutte le issue di nextflow-io/language-server

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.