EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: file format enforcing?
From: Torsten Bögershausen via Core-talk <core-talk at aps.anl.gov>
To: "Zimoch Dirk (PSI)" <dirk.zimoch at psi.ch>, "'core-talk at aps.anl.gov'" <core-talk at aps.anl.gov>
Date: Mon, 19 Apr 2021 09:01:23 +0200


On 4/17/21 7:46 PM, Zimoch Dirk (PSI) via Core-talk wrote:
Hi folks,

My compiler is throwing new warnings at me:
freeList.h:44:2: warning: no newline at end of file
(committed 2021-03-08)

Is there a way to enforce some file format conventions before accepting source files in git?
I would prefer to enforce:
1. No files without newline at the end.
2. No source code files with tabs in them.
As a source of inspiration:
<https://github.com/EuropeanSpallationSource/m-epics-ethercatmc/blob/master/checkws.sh>
3. Consistent indents (4?)
4. No whitespace at end of line.  (Ok, that's a minor thing actually)
checkws as above.

Then add it to your ci scripts:
<https://github.com/EuropeanSpallationSource/m-epics-ethercatmc/blob/master/.github/workflows/ci-scripts-build.yml>


Dirk


References:
file format enforcing? Zimoch Dirk (PSI) via Core-talk

Navigate by Date:
Prev: Re: file format enforcing? Hugo Slepicka via Core-talk
Next: Jenkins build is back to normal : epics-example-rtems #549 APS Jenkins via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: file format enforcing? Ben Franksen via Core-talk
Next: Build failed in Jenkins: 3.15-example-win64 #240 APS Jenkins via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 19 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·