Skip to content
Snippets Groups Projects
  1. Nov 16, 2017
  2. Nov 15, 2017
  3. Nov 14, 2017
  4. Nov 11, 2017
  5. Nov 10, 2017
    • (raulenrique)'s avatar
      Initial empty repository · 62394542
      (raulenrique) authored
      62394542
    • Mark Mentovai's avatar
      Merge pull request #293 from iam/cpplint_quiet · 58e2a524
      Mark Mentovai authored
      cpplint: add --quiet flag to suppress all output when there's no errors
      58e2a524
    • Igor Murashkin's avatar
      cpplint: add --quiet flag to suppress all output when there's no errors · e8ffd7ce
      Igor Murashkin authored
      Example:
      
         cpplint.py --quiet <file-names>
      
      Will now return with an exit code of 0 and return empty output if there
      were no errors. This makes it particularly useful to be driven by a build system
      such as makefiles or gradle.
      
      In particular, these messages are now suppressed:
      
        Ignoring <filename>, excluded by CPPLINT.cfg, ...
        Done processing <filename>
        Total errors found: 0
      
      If there were any errors, the above messages are printed nevertheless.
      
      There is no behavior change if --quiet is not passed in.
      e8ffd7ce
    • Mark Mentovai's avatar
      Merge pull request #292 from iam/root_cpplint_cfg · 86676238
      Mark Mentovai authored
      CPPLINT.cfg root=setting is now relative to CFG file.
      86676238
    • Igor Murashkin's avatar
      CPPLINT.cfg root=setting is now relative to CFG file. · 8a87a46c
      Igor Murashkin authored
      Also further improve the documentation and testing around --root.
      
      Previously the root=setting in the CFG file was treated identically
      to passing --root=setting on the command line, which seems undesirable
      since it depends on were cpplint.cfg was invoked from (for relative
      paths).
      
      Judging on settings such as 'exclude_files' it seems within the spirit
      to make the settings 'current working directory' contextual to the
      same directory that CPPLINT.cfg is in.
      
      This also makes execution consistent (picking up the "correct" settings)
      regardless of the CWD when executing cpplint.py.
      
      Example:
      
        echo 'root=..' >> /a/b/c/CPPLINT.cfg
        cd /
        cpplint.py /a/b/c/source_file.h
        # expects header guard of C_SOURCE_FILE_H_
      
      However the old behavior would use '/../' = '/'
      and incorrectly think the root was 'A_B_C_SOURCE_FILE_H_'.
      8a87a46c
  6. Nov 08, 2017
  7. Nov 06, 2017
    • Igor Murashkin's avatar
      cpplint: Fix --root for non-subdirectories · a38fcbb5
      Igor Murashkin authored
      Using cpplint.py --root with directories at a more outer level
      than the repository would not work.
      
      For example given
      
        /a/b/c/.git/filename.cpp
      
      Trying to use --root=/a/b would get ignored, and it would
      ask for a headerguard of FILENAME_H_ instead of C_FILENAME_H_
      as expected.
      
      Now --root will always use the "full name" and then strip off --root
      prefix, giving us the desired effect.
      a38fcbb5
  8. Oct 19, 2017
  9. Oct 17, 2017
  10. Sep 30, 2017
  11. Sep 07, 2017
  12. Sep 05, 2017
  13. Aug 25, 2017
  14. Aug 24, 2017
  15. Aug 23, 2017
  16. Aug 22, 2017
  17. Aug 17, 2017
  18. Aug 15, 2017
  19. Aug 07, 2017
  20. Jul 28, 2017
Loading