Tobias Predel
55c02f5420
Remove unused includes ( #3795 )
...
* Remove unused include in Variant.h
* Remove unused include in util.h
* Remove unused include directives in util.cpp
* Remove unused include directives in TF2.h
* Remove unused include directives in TF2.cpp
* Remove unused include directive in TDB2.h
* Remove unused include directives in TDB2.cpp
* Remove unused include directives in Task.h
* Remove unused include directive in rules.cpp
* Remove unused include directives in rules.cpp
* Remove unused include directives in nag.cpp
* Remove unused include directive in main.h
* Remove unused include directive in legacy.cpph
* Remove unused include directive in Hooks.cpp
* Remove unused include directive in Filter.h
* Remove unused include directive in Filter.cpp
* Remove unused include directive in feedback.cpp
* Remove unused include directive in Eval.cpp
* Remove unused include directives in dependency.cpp
* Remove unused include directivess in Context.cpp
2025-03-01 10:42:40 -05:00
Felix Schurk
93356b39c3
add initial bulk run from pre-commit over all files
2024-07-29 22:34:51 +02:00
Felix Schurk
954d3f5058
add blank line between cmake.h header include to prevent sorting
...
* add required comment in the line below cmake.h include header
2024-07-29 22:33:17 +02:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Rosen Penev
e84930be8d
clang-tidy: use auto
...
Found with modernize-use-auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 01:39:23 -04:00
Rosen Penev
d0c4350c2f
clang-tidy: add missing reserve calls
...
Found with performance-inefficient-vector-operation
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-04-23 00:22:43 -04:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Paul Beckingham
3e0a428185
Revert "[clang-tidy] Use .empty instead of comparing size"
...
This reverts commit a331cceded
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
b2d46a1eba
Revert "[clang-tidy] Use auto where the type is known"
...
This reverts commit 6ce2a129dd
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
e3e158bf6a
Revert "[clang-tidy] Replace push_back with emplace_back"
...
This reverts commit 897759e4dc
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
5502729131
Revert "[clang-tidy] Switch C headers to C++ ones"
...
This reverts commit 0344856d65
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
7d8fff418e
Revert "[clang-tidy] Reserve memory for vector loop"
...
This reverts commit 7f86b29aa9
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
c43a513158
Revert "[clang-tidy] Replace C style casts with C++ ones"
...
This reverts commit 13e1bf7204
.
2020-12-05 16:18:37 -05:00
Paul Beckingham
623d5ceb59
Revert "[clang-tidy] using dynamic_cast for derived classes"
...
This reverts commit a02754159c
.
2020-12-05 16:18:37 -05:00
Rosen Penev
a02754159c
[clang-tidy] using dynamic_cast for derived classes
...
Found with cppcoreguidelines-pro-type-cstyle-cast
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
13e1bf7204
[clang-tidy] Replace C style casts with C++ ones
...
Found with google-readability-casting
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
7f86b29aa9
[clang-tidy] Reserve memory for vector loop
...
Found with performance-inefficient-vector-operation
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
0344856d65
[clang-tidy] Switch C headers to C++ ones
...
Found using modernize-return-braced-init-list
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
897759e4dc
[clang-tidy] Replace push_back with emplace_back
...
Found with modernize-use-emplace
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
6ce2a129dd
[clang-tidy] Use auto where the type is known
...
Found with modernize-use-auto
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded
[clang-tidy] Use .empty instead of comparing size
...
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-05 15:03:43 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Simon Ruderich
e817dfc800
Always use https:// link for opensource.org
...
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17
Portability: Updated to make main re-entrant()
...
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
2422a6bbda
l10n: Eliminated STRING_HOOKS_*
2018-01-15 12:51:56 -05:00
Paul Beckingham
0de169bb10
Copyright 2018
2017-12-31 19:22:07 -05:00
Paul Beckingham
44dc19e21b
TW-1667: hooks: upon failure indicate which hook failed
...
- Thanks to Daniel Shahaf.
2017-01-16 13:14:08 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
c300cff00f
TW-1873: Specify different path to extensions/hooks directory
...
- Thanks to Eli.
2016-12-19 09:03:27 -05:00
Paul Beckingham
0027c9face
util: Migrated nontrivial from text
2016-12-11 17:34:50 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00
Paul Beckingham
473eaec923
Context: Eliminated hooks timer
2016-11-13 13:37:54 -05:00
Paul Beckingham
81fce54fd9
Hooks: Migrated to libshared Timer
2016-11-13 13:07:09 -05:00
Paul Beckingham
4f072d47cd
Timer: Migrated to libshared
2016-10-17 21:52:39 -04:00
Paul Beckingham
820cc4b2e5
DOM: Demoted from class to functions
...
- The DOM object contains no members, and only two (effectively) const methods.
Demoting DOM to function calls reduces coupling with Context.
2016-02-03 21:54:37 -05:00
Paul Beckingham
cdd1c4681d
Hooks: C++11
2016-02-03 21:06:49 -05:00
Paul Beckingham
60667dbcaa
TW-1705: Directories in .task/hooks should not be reported as invalid hooks
...
- Thanks to Tomas Babej.
2016-01-11 22:30:35 -05:00
Paul Beckingham
08d5db0b49
Hooks: Removed obsolete methods
2016-01-09 22:38:18 -05:00
Paul Beckingham
641d232dea
Copyright: Updated to 2016
2015-12-31 15:06:43 -05:00
Paul Beckingham
5c8b7148b4
Task: Moved include to top of list, per flint++ recommendation
2015-11-01 19:59:10 -05:00
Paul Beckingham
31fb7726c0
Hooks: Converted from CLI to CLI2
2015-06-14 22:29:23 -04:00
Wilhelm Schuermann
2ad3713e8c
JSON: Fix memory leak in parser
...
- Fix JSON root object leaking out by using delete.
This is by no means a comprehensive fix since exceptions are involved
in a lot of places, but it does fix the memory leak in all cases
checked in Taskwarrior's test suite.
- Going with a shared_ptr or unique_ptr here might be a better
solution, but would involve more code changes.
2015-06-03 23:12:34 +02:00
Paul Beckingham
e74c6963a9
C++11: Cleaned up program framework with range-based for
2015-05-11 17:50:53 -04:00
Paul Beckingham
0a54d46589
Hooks: With rc.debug.hooks=2, shows hook arguments
2015-04-05 12:19:55 -04:00
Wilhelm Schuermann
5487414003
Hooks: Add "version:" to hooks v2 arguments
...
- Saves a call to "task --version", potentially saving precious hook
execution time. Useful for writing backwards compatible hooks in
case of buggy Taskwarrior behavior.
2015-04-02 09:18:34 +02:00
Wilhelm Schuermann
04d0c52a43
Hooks: Implement "Hooks v2" API
...
- All hook scripts now receive key:value pair command line arguments.
- Add only the basics: api, args, command, rc, data. Possibly more to
come.
2015-04-01 11:44:37 +02:00
Wilhelm Schuermann
7a64c19641
Resolve most compiler warnings
2015-03-29 22:05:38 +02:00
Paul Beckingham
5e8426f0cc
Config
...
- The 'next' report was not sㄡrted by urgency, which is wrong (thanks
to Adam Coddington).
2015-03-05 18:26:43 -05:00
Wilhelm Schuermann
138360b7bc
Hooks
...
- Fixed on-modify hook regression which stopped hooks from modifying
tasks. On a related note, more hooks tests are definitely needed.
2015-03-05 07:21:30 -05:00