CmdUDAs: Do not identify tags and dependencies as orphan UDAs
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <shared.h>
|
#include <shared.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
#include <Task.h>
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
CmdUDAs::CmdUDAs ()
|
CmdUDAs::CmdUDAs ()
|
||||||
@@ -134,7 +135,9 @@ int CmdUDAs::execute (std::string& output)
|
|||||||
for (auto& i : filtered)
|
for (auto& i : filtered)
|
||||||
{
|
{
|
||||||
for (auto& att : i.data)
|
for (auto& att : i.data)
|
||||||
if (att.first.substr (0, 11) != "annotation_" &&
|
if (! Task::isAnnotationAttr (att.first) &&
|
||||||
|
! Task::isTagAttr (att.first) &&
|
||||||
|
! Task::isDepAttr (att.first) &&
|
||||||
Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ())
|
Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ())
|
||||||
orphans[att.first]++;
|
orphans[att.first]++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user