This patch changes the regex to also match directives
which start with whitespace.
Closes-Bug: #1487302
Change-Id: I4c3168228164d865cc31dfd24160c41267aeb016
Chardet doesn't always seem to correctly detect files encoding
correctly in all circumstances, to make it so that a user can
specify the exact encoding of there files allow a new config
option and a new CLI option that allows for manually overriding
the encoding that chardet will try to determine.
If enabled chardet detection will no longer run.
Fixes bug 1384463
Change-Id: Ie8baf3f79083e1495c7420a9d0569390cad2115e
When a check is for a rst file vs a plaintext
file and is not interoperable this change allows
that check to declare that it only knows how to
scan certain files.
It also fixes the max line checker to use a similar
routine to differentiate between rst files and non
rst files and uses a different routine based on this
decision.
Change-Id: I1e3e5f9f1631ed5babe2df17c987e8e872938a38