google / addlicense

A program which ensures source code files have copyright license headers by scanning directory patterns recursively
Apache License 2.0
724 stars 170 forks source link

Add support for Rackup (.ru) config files #120

Open CalebAlbers opened 2 years ago

CalebAlbers commented 2 years ago

This adds support for the .ru extension, which is idiomatically used for config.ru files in the Rack ruby framework. This specifically requires adding an additional element to the head slice for #\ directives.

I added a test explicitly for validating the intact header is left in.

More information on the file format itself can be found here.