1 GIT-PBCHK(1ONBLD)                                            GIT-PBCHK(1ONBLD)
   2 
   3 
   4 
   5 
   6 
   7 
   8 NAME
   9        git-pbchk - nits and pre-putback checks for git
  10 
  11 
  12 SYNOPSIS
  13        git-pbchk [-c check] [-p branch] [file...]
  14 
  15 
  16        git-nits [-c check] [-p branch] [file...]
  17 
  18 
  19 OPTIONS
  20        -c check:
  21 
  22               Run the specific check, as named below.  In this mode,
  23               individual files can be provided to check.
  24 
  25        -p branch:
  26 
  27               Compare the current workspace to the parent branch for the
  28               purposes of generating file and comment lists.
  29 
  30               If this option is not specified an attempt is made to determine
  31               this automatically, if the git branch configuration contains
  32               this information.
  33 
  34               If no branch is specified and none can be determined
  35               automatically origin/master is used.
  36 
  37 DESCRIPTION
  38        Check your workspace for common nits and putback-ending mistakes, a
  39        simple set of checks are run over various parts of your workspace and
  40        errors encountered are reported, all of which should, generally, be
  41        fixed.
  42 
  43        Comment format [comchk]
  44               Check that putback comments follow the prescribed format (only
  45               run for pbchk)
  46 
  47        Copyrights [copyright]
  48               Check that each source file contains a copyright notice for the
  49               current year. You don't need to fix this if you, the potential
  50               new copyright holder, chooses not to
  51 
  52        C style [cstyle]
  53               Check that C source files conform to the Illumos C style rules
  54 
  55        Header check [hdrchk]
  56               Check that C header files conform to the Illumos header style
  57               rules (in addition to the general C rules)
  58 
  59        Java style [jstyle]
  60               Check that Java source files conform to the Illumos Java style
  61               rules (which differ from the traditionally recommended Java
  62               style)
  63 
  64        SCCS Keywords [keywords]
  65               Check that no source files contain unexpanded SCCS keywords. It
  66               is possible that this check may false positive on certain
  67               inputs. It is generally obvious when this is the case.
  68 
  69               This check does not check for expanded SCCS keywords, though the
  70               common 'ident'-style lines should be removed regardless of
  71               whether they are expanded.
  72 
  73        Man page check [manlint]
  74               Check for problems with man pages.
  75 
  76        Mapfile check [mapfilechk]
  77               Check that linker mapfiles contain a comment directing anyone
  78               editing to read the directions in usr/lib/README.mapfiles.
  79 
  80        Whitespace check [wscheck]
  81               Check for whitespace issues such as mixed tabs/spaces in source
  82               files.
  83 
  84 FILES
  85        Exception lists can be used to exclude certain files from checking,
  86        named after the specific check.  They can be found in
  87        $CODEMGR_WS/exception_lists/, or optionally under $CODEMGR_WS/.git/,
  88        where they must be suffixed .NOT.
  89 
  90 
  91 
  92 
  93 
  94 
  95 
  96 
  97                                September 4, 2018             GIT-PBCHK(1ONBLD)