[HN Gopher] HawkEye: A Simple license header checker and formatt...
       ___________________________________________________________________
        
       HawkEye: A Simple license header checker and formatter in Rust
        
       Author : tison
       Score  : 28 points
       Date   : 2025-01-28 13:04 UTC (9 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | JTyQZSnP3cQGa8B wrote:
       | Is there a point to this if license headers are (supposedly)
       | useless?
        
         | steveklabnik wrote:
         | I think for licenses like the MPL, which are scoped to a single
         | file, including the header makes sense, and isn't particularly
         | onerous: https://www.mozilla.org/en-US/MPL/headers/
         | 
         | I don't put headers in projects that use other licenses.
        
           | codetrotter wrote:
           | I used to put the ISC license in the header of every file
           | when I first started sharing code online under open source
           | licenses. But eventually I realized that a single LICENSE
           | file is best, instead of having the header in all of the
           | files.
        
         | stonogo wrote:
         | If Google wants to use your software, they will whine until you
         | add them. I guess automating it would be nice in that case.
        
       | ognarb wrote:
       | Use the Reuse specification and tooling instead:
       | https://reuse.software/
       | 
       | There is no need to reinvent a solved problem by rewritting it in
       | rust with a different format, particularly considering that reuse
       | was developed by the FSFE in collaboration with some lawyers.
        
         | giancarlostoro wrote:
         | This isn't the only tooling out there though, typical SCA
         | tooling in most enterprise companies will scan dependency
         | licensing and vulnerabilities.
        
       | steveklabnik wrote:
       | Oh neat! I use https://github.com/apache/skywalking-eyes
       | extensively for this, but am not particularly in love with it.
        
       | pianoben wrote:
       | Neat! I've always wanted a tool like this, but never wanted to
       | build one.
       | 
       | The most "good enough" solution for validating license headers
       | I've ever used is just to grep for the copyright line:
       | https://github.com/microsoft/thrifty/blob/master/script/ensu...
       | 
       | This sounds _much_ better.
        
       ___________________________________________________________________
       (page generated 2025-01-28 23:01 UTC)