tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

file-whitespace.rst (830B)


      1 Trailing whitespaces
      2 ====================
      3 
      4 This linter verifies if a file has:
      5 
      6 * unnecessary trailing whitespaces,
      7 * Windows carriage return,
      8 * empty lines at the end of file,
      9 * if file ends with a newline or not
     10 
     11 
     12 Run Locally
     13 -----------
     14 
     15 This mozlint linter can be run using mach:
     16 
     17 .. parsed-literal::
     18 
     19    $ mach lint --linter file-whitespace <file paths>
     20 
     21 
     22 Configuration
     23 -------------
     24 
     25 This linter is enabled on most of the code base.
     26 
     27 This job is configured as `tier 2 <https://wiki.mozilla.org/Sheriffing/Job_Visibility_Policy#Overview_of_the_Job_Visibility_Tiers>`_.
     28 
     29 Autofix
     30 -------
     31 
     32 This linter provides a ``--fix`` option. The python script is doing the change itself.
     33 
     34 Sources
     35 -------
     36 
     37 * :searchfox:`Configuration (YAML) <tools/lint/file-whitespace.yml>`
     38 * :searchfox:`Source <tools/lint/file-whitespace/__init__.py>`