Halachah · Shulchan Aruch

Shulchan Arukh, Yoreh De'ah 347/שולחן ערוך·יורה דעה שמ״ז

אשלא לעורר על מתו שלשים יום לפני הרגל. ובו ג' סעיפים:
מי שמת לו מת לפני שלשים יום הסמוכים לרגל לא יספדנו משיכנסו שלשים יום הסמוכים לרגל ואפי' יש לו הספד בלא זה כגון שמת לו מת בתוך שלשים שמותר לספדו ואפילו מת ערב הרגל אסור להספיד עמו על המת שמת לו לפני שלשים יום קודם המועד:
1One who suffered a bereavement prior to thirty days before1 a Festival, should not make a lamentation for him2 from [the time] that the thirty days before1 the Festival begin.3. in accord with Samuel), and if a lament is held during this period, his grief and bitterness would be roused during the Festival. This applies even if the lamentation is performed gratis (cf. opinion of Rab ibid.). Tur a.l. Prior to Rosh Hashana and Yom Kippur it would be permissible — P.Tesh. [This applies] even if he has to make a lamentation4 [in any case] without this, e.g., [if] he suffered [another] bereavement within the thirty days [of the Festival], for whom it is permissible to make a lamentation, even if he died on the eve of the Festival,5 [nevertheless], it is forbidden to make a lamentation along with him6 for the bereavement that he suffered before thirty days prior to the festive season.7 The entire ruling as stated here is also found in O.Ḥ. § 547, 3.
במי שבאה לו שמועה בתוך שלשים יום קודם הרגל נראה לי שמותר לספדו אף על פי שהיא רחוקה:
2One who received tidings [of death] within thirty days before the Festival, it seems to me that it is permissible to make a lamentation8 par. 1). for him,9 although it is [already now] distant [tidings].10 on Y.M.K. ibid. and is also found in O.Ḥ. ibid. par. 4.
גמה שאנו נוהגין בתשלום השנה לקונן ולהזכיר נשמות נראה לי שאינו בכלל זה ומותר לעשותו סמוך לרגל:
3Our accepted practice upon completion of the [first] year to bewail and to memorialize the souls [of the dead],11 seems to me, is not included in this principle,12 par. 1. The reason was that this memorial marked the conclusion of the mourning period at which time it was customary to change from dark to light garments. and it is permissible to do so close to the Festival.13 For the source of this ruling cf. B.Yos. to O.Ḥ. ibid. par. 5. One is permitted to recite the Yizkor Memorial prayers during the first year after death and must not wait until a complete year has passed — Sukkath Shalom. It is customary for those whose parents are living to leave the Synagogue during the Yizkor Service so as not to disturb those who recite these prayers — Minhage Yeshurun.