mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-06 14:22:31 -07:00
Adding proper documentation, leader and trailer comments, etc.
This commit is contained in:
parent
1c87d8cdb5
commit
a94e221e8d
1 changed files with 59 additions and 2 deletions
|
|
@ -1,12 +1,28 @@
|
|||
#!/bin/sh
|
||||
# tool/check-fixme -- look for FIXME task labels
|
||||
# tool/check-fixme -- look for FIXME task labels in the MPS source tree
|
||||
# Richard Brooksby, Ravenbrook Limited, 2023-01-15
|
||||
#
|
||||
# Draft script to find FIXMEs in code so that we can:
|
||||
# Copyright (c) 2023 Ravenbrook Limited. See end of file for license.
|
||||
#
|
||||
# Developers can mark code in the MPS source tree with label like
|
||||
# "FIXME" and "TODO" in order to leave notes for later work. These
|
||||
# labels are recognized by tools like Xcode.
|
||||
#
|
||||
# This script finds FIXMEs in code so that we can:
|
||||
# 1. fix 'em
|
||||
# 2. cause them to fail CI
|
||||
# 3. prevent them leaking into master and versions
|
||||
# 4. thereby making them useful for communication with self or other devs
|
||||
#
|
||||
# TODO: A much older convention in the MPS (predates the adoption of
|
||||
# "FIXME") is to mark such things with "@@@@". We should find and fix
|
||||
# those too, eventually.
|
||||
|
||||
# Exclude some things that:
|
||||
# - we have no control over
|
||||
# - come from elsewhere
|
||||
# - build results that are copies of other things
|
||||
# - things that legit talk about FIXMEs (like this script)
|
||||
find . \
|
||||
-path './tool/check-fixme' -prune -o \
|
||||
-path './.git' -prune -o \
|
||||
|
|
@ -22,3 +38,44 @@ xargs -0 sh -c '! grep -F -I -n -H -e FIXME "$@"'
|
|||
# The inverted grep above ensures xargs exits with zero iff no FIXMEs
|
||||
# are found. Note this is very different from ``grep -v`` which would
|
||||
# find *lines* that didn't match FIXME.
|
||||
|
||||
# A. REFERENCES
|
||||
#
|
||||
# [None]
|
||||
#
|
||||
#
|
||||
# B. DOCUMENT HISTORY
|
||||
#
|
||||
# 2023-01-15 RB Created.
|
||||
#
|
||||
#
|
||||
# C. COPYRIGHT AND LICENSE
|
||||
#
|
||||
# Copyright (C) 2023 Ravenbrook Limited <https://www.ravenbrook.com/>.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the
|
||||
# distribution.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
# $Id$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue