Commit Graph

34 Commits

Author SHA1 Message Date
Mark Olesen
139a8fc6ff STYLE: use SPDX-style for scripts 2023-05-10 18:23:13 +02:00
Andrew Heather
ae2ab06312 REL: Release preparations 2019-12-23 09:49:23 +00:00
OpenFOAM bot
e9219558d7 GIT: Header file updates 2019-10-31 14:48:44 +00:00
OpenFOAM bot
154029ddd0 BOT: Cleaned up header files 2019-02-06 12:28:23 +00:00
Mark Olesen
02edc5b206 STYLE: tabs and line length in files, very dubious NULL in ensight reader.
- disable automatically upgrading copyrights in files since changes to
  not automatically imply a change in copyright. Eg, fixing a typo in
  comments, or changing a variable from 'loopI' to 'loopi' etc.
2017-06-26 13:43:05 +02:00
Andrew Heather
bd0e982d99 MRG: Initial commit after latest Foundation merge 2016-09-30 11:16:28 +01:00
Henry Weller
abb4d67134 pre-commit-hook: Added checks for multi-level template parameters and 'NULL'
Patch contributed by Bruno Santos
Resolves bug-report http://bugs.openfoam.org/view.php?id=2267

   1. Spaced ending of multi-level template parameters are not allowed, such as:

       List<List<scalar> >

     which instead should be:

       List<List<scalar>>

   2. The use of the 'NULL' macro should be replaced by 'nullptr'
2016-09-25 18:43:50 +01:00
Henry Weller
55f7d50be1 FreeBSD sed: ensure that a "-e" option immediately follows "-i" 2015-11-14 17:03:03 +00:00
andy
fdad025bdf ENH: pre-commit-hook - not checking *.gz files 2013-06-04 14:55:00 +01:00
andy
9326bdb112 ENH: Updated pre-commit hook 2013-02-22 10:56:27 +00:00
mattijs
5f6611356e ENH: pre-commit-hook: abort upon bad date. 2012-04-05 16:50:37 +01:00
mattijs
09eac90233 ENH: pre-commit-hook: update copyright date checking 2012-02-03 14:38:02 +00:00
mattijs
906acdcdef Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
Conflicts:
	src/postProcessing/functionObjects/field/nearWallFields/nearWallFields.C
2011-09-13 10:14:15 +01:00
mattijs
9f7fcc686c BUG: pre-commit-hook: was expecting YYYY-YYYY instead of just YYYY 2011-08-17 14:53:46 +01:00
Henry
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
mattijs
ff37232f55 ENH: commit-hook: added copyright check 2011-07-29 18:11:53 +01:00
andy
f0554905a1 ENH: Removed OpenCFD-specific behaviour out of hooks 2011-04-06 15:14:25 +01:00
Mark Olesen
64b43070c9 GIT: skip tab check on Makefiles (not just wmake/Makefiles) 2011-02-16 09:57:03 +01:00
Mark Olesen
ae0bf2b2fe BUG: single instead of double quotes in git hooks message 2011-01-13 11:23:03 +01:00
Mark Olesen
d8fb38fbc1 BUG: single instead of double quotes in git hooks message 2010-12-14 17:52:27 +01:00
Mark Olesen
f4c1042f80 BUG: had double quotes instead of single quotes in git hooks 2010-11-17 17:07:59 +01:00
Mark Olesen
a5a62467b5 ENH: skip tab-checking in git hooks for potential wmake/ makefiles 2010-11-17 11:39:37 +01:00
Mark Olesen
b06c778193 ENH: add bin/tools/pre-receive-hook
- allows us to follow the changes
2010-11-10 16:25:40 +01:00
Mark Olesen
ba19b63907 STYLE: generalize functions in pre-commit-hook
- improves code re-usage for pre-receive hook
2010-11-10 11:50:00 +01:00
Mark Olesen
420ac3b5d0 ENH: skip checks in pre-commit hook when no files have changed
- this usage can correspond to a 'git commit --amend'
2010-08-10 08:39:13 +02:00
Mark Olesen
1866a2b0fd ENH: improve speed/flexibility of pre-commit-hook
- only search indexed files (BUGFIX)
- search for long-lines is faster when regex is anchored
- use git grep logic instead of sed logic where possible

- add support for running the hook manually as well.
  For example,
      bin/tools/pre-commit-hook  applications/test src/OpenFOAM/db

- add some feedback to pre-commit hook:
  The hook can be really slow, at least let people know that something
  is happening
2010-08-05 10:30:32 +02:00
Mark Olesen
f2793ffd51 ENH: allow #directive lines to exceed the 80-col line length limit 2010-07-27 17:01:41 +02:00
andy
7c1ca51598 Revert "ENH: Added DOS-style line ending check to git hook"
This reverts commit 102f797016.
2010-07-23 12:06:51 +01:00
andy
102f797016 ENH: Added DOS-style line ending check to git hook 2010-07-23 10:08:47 +01:00
Mark Olesen
e099012556 STYLE: use regex to avoid extra loop in pre-commit-hook 2010-07-23 09:31:18 +02:00
Mark Olesen
2a1ccb730e ENH: drop special treatment for C++ comments line length in pre-commit-hook
ENH: report line number for illegal words and for copyrights
2010-07-22 10:29:27 +02:00
Mark Olesen
3b7afb3ffb STYLE: add some comments to pre-commit-hook, unclutter some syntax 2010-07-21 13:50:20 +02:00
Mark Olesen
a76dd34d47 Adjust bin/tools/pre-commit-hook to avoid triggering pre-receive hook 2010-07-21 13:34:46 +02:00
Mark Olesen
b2d6ae091b ENH: made Andy's pre-receive hook into a pre-commit hook
- allows fixes before trying to push
2010-07-21 12:58:43 +02:00