Impostazioni dell’editor per i collaboratori
Configurare l’ambiente di sviluppo come fanno i dipendenti Vaadin rende più semplice revisionare e accettare i contributi di codice.
Regole generali di formattazione
-
Spazi invece di tabulazioni
-
Codifica UTF-8
-
Terminatori di riga in stile Unix
\n
Avviso di copyright
Tutti i file di codice sorgente devono includere un avviso di copyright all’inizio del file.
-
Apra il (Windows) oppure (Mac)
-
Nella pagina , modifichi il template per aggiungere il testo di copyright:
Source code
txt
Copyright 2000-${currentDate:date('yyyy')} Vaadin Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under
the License.txt
txt
txt
A0EF8ED7-DED5-454E-A5D0-DA4F9669F650