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