tensorflow / tensorflow/java

Getting errors on copyright comment when trying to build PR

Aperta
#330 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Java
Stelle
928
Fork
227
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

IDescribe the problem

I am getting errors on the copyright comment block when trying to build a PR.
The only differences I see are "Copyright 2020" vs "Copyright 2020-2021" and some additional spaces.
I made no change to the copyright block when I changed the code.

This is happening on many source files.

Provide the exact sequence of commands / steps that you executed before running into the problem

Create PR.

Any other info / logs
Error: Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.11.1:check (spotless-check) on project tensorflow-framework: The following files had format violations:
3584
Error: src/main/java/org/tensorflow/framework/initializers/He.java
3585
Error: @@ -1,17 +1,18 @@
3586
Error: -/?Copyright?2020?The?TensorFlow?Authors.?All?Rights?Reserved.
3587
Error: +/
?Copyright?2020-2021?The?TensorFlow?Authors.?All?Rights?Reserved.
3588
Error:
3589
Error: -Licensed?under?the?Apache?License,?Version?2.0?(the?"License");
3590
Error: -you?may?not?use?this?file?except?in?compliance?with?the?License.
3591
Error: -You?may?obtain?a?copy?of?the?License?at
3592
Error: +?Licensed?under?the?Apache?License,?Version?2.0?(the?"License");
3593
Error: +?you?may?not?use?this?file?except?in?compliance?with?the?License.
3594
Error: +?You?may?obtain?a?copy?of?the?License?at
3595
Error:
3596
Error: -????http://www.apache.org/licenses/LICENSE-2.0
3597
Error: +?????http://www.apache.org/licenses/LICENSE-2.0
3598
Error:
3599
Error: -Unless?required?by?applicable?law?or?agreed?to?in?writing,?software
3600
Error: -distributed?under?the?License?is?distributed?on?an?"AS?IS"?BASIS,
3601
Error: -WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND,?either?express?or?implied.
3602
Error: -See?the?License?for?the?specific?language?governing?permissions?and
3603
Error: -limitations?under?the?License.
3604
Error: -=======================================================================/
3605
Error: +?Unless?required?by?applicable?law?or?agreed?to?in?writing,?software
3606
Error: +?distributed?under?the?License?is?distributed?on?an?"AS?IS"?BASIS,
3607
Error: +?WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND,?either?express?or?implied.
3608
Error: +?See?the?License?for?the?specific?language?governing?permissions?and
3609
Error: +?limitations?under?the?License.
3610
Error: +?=======================================================================
3611
Error: +?
/
3612
Error: package?org.tensorflow.framework.initializers;

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Inizia dall’errore di formattazione di src/main/java/org/tensorflow/framework/initializers/He.java e verifica in che modo il commento di copyright differisce dall’output previsto da Spotless. Esegui il goal Maven spotless-check sui file interessati, quindi conferma che i file sorgente superino la build del PR senza violazioni di copyright o di spaziatura.

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

Valutazione

Stack tecnologico
java
Ambito
build-system
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.