'use strict';
import { ESLintUtils } from '@typescript-eslint/utils';
import { ruleTypes, url } from '@flint/infra/constants/rules-meta';

const ruleName='no-todo';const constants={'meta':{'type':ruleTypes['problem'],'docs':{'description':'Disallow\x20comments\x20starting\x20with\x20\x27todo\x20fd\x27\x20in\x20the\x20codebase'},'messages':{'noTodo':'no-todo\x0a###\x20**Must\x20not**\x20add\x20//\x20todo\x20fd\x20comments.\x0a\x0aInstead,\x20log\x20tasks\x20directly\x20on\x20the\x20project\x20board.\x0a\x0a####\x20Wrong\x0a\x0a//\x20todo\x20fd\x20[fix\x20later]\x0a\x0a####\x20Correct\x0a\x0a//\x20Create\x20a\x20ticket\x20in\x20the\x20project\x20board\x20instead\x20of\x20in-line\x20comments.\x0a\x0a####\x20Why\x0a\x0aAdding\x20//\x20todo\x20fd\x20comments\x20can\x20lead\x20to\x20overlooked\x20tasks\x20and\x20diminishes\x20visibility\x20in\x20project\x20tracking\x20systems.\x20By\x20logging\x20tasks\x20directly\x20on\x20the\x20board,\x20we\x20ensure\x20better\x20prioritization,\x20accountability,\x20and\x20timely\x20completion.'},'schema':[]},'messageIds':{'noTodo':'noTodo'}},createRule=ESLintUtils['RuleCreator'](_0x4601a7=>''+url+_0x4601a7),noTodo=createRule({'name':ruleName,'meta':constants['meta'],'create'(_0x4cf958){return {'Program'(){const _0x46a298=_0x4cf958['sourceCode']['getAllComments']();_0x46a298['forEach'](_0x1d2feb=>{const _0x3dc4b=_0x1d2feb['value']['trim']();/^todo\s+fd\b/i['test'](_0x3dc4b)&&_0x4cf958['report']({'loc':_0x1d2feb['loc'],'messageId':constants['messageIds']['noTodo']});});}};},'defaultOptions':[]});

export { noTodo as default, ruleName };
