Skip to content

Commit 38329f9

Browse files
committed
chore(quality): clean up stale XML doc comments
- Strip empty `<param name="X"></param>` tags whose corresponding parameter doesn't exist (or where the tag adds no doc value). Removes ~24 InvalidXmlDocComment findings. - Fix malformed XML: escape literal `<T>` as `&lt;T&gt;` in three doc comments (HttpHelper, IamApi, UinformService); promote two `// <summary>` typos in IamApi to `///`; demote orphan `///` block on Program.cs SetAwsCredentials (top-level local function doesn't accept doc comments) to plain comment. - Rename three orphan `<param>` tags to match real parameters (UserHelper.HasPermission, RAPSSecurityService.IsAllowedTo, VMACSExport.ExportToInstances). Partial-coverage cases (methods with descriptive `<param>` tags for some but not all parameters) intentionally left alone — their existing documentation has real value, and selectively adding empty tags or deleting good ones would be a net loss.
1 parent 1cb09c6 commit 38329f9

22 files changed

Lines changed: 8 additions & 298 deletions

web/Areas/CMS/Data/CMS.cs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,6 @@ public CMS(VIPERContext viperContext, RAPSContext rapsContext, IHtmlSanitizerSer
7373
/// <summary>
7474
/// Get content blocks and filter based on permissions
7575
/// </summary>
76-
/// <param name="contentBlockID"></param>
77-
/// <param name="friendlyName"></param>
78-
/// <param name="system"></param>
79-
/// <param name="viperSectionPath"></param>
80-
/// <param name="page"></param>
81-
/// <param name="blockOrder"></param>
82-
/// <param name="allowPublicAccess"></param>
83-
/// <param name="status"></param>
8476
/// <returns>List of blocks</returns>
8577
public IEnumerable<ContentBlock>? GetContentBlocksAllowed(int? contentBlockID, string? friendlyName, string? system, string? viperSectionPath, string? page, int? blockOrder, bool? allowPublicAccess, int? status)
8678
{
@@ -128,14 +120,6 @@ public CMS(VIPERContext viperContext, RAPSContext rapsContext, IHtmlSanitizerSer
128120
/// <summary>
129121
/// Get content blocks without filtering on permissions
130122
/// </summary>
131-
/// <param name="contentBlockID"></param>
132-
/// <param name="friendlyName"></param>
133-
/// <param name="system"></param>
134-
/// <param name="viperSectionPath"></param>
135-
/// <param name="page"></param>
136-
/// <param name="blockOrder"></param>
137-
/// <param name="allowPublicAccess"></param>
138-
/// <param name="status"></param>
139123
/// <returns>List of blocks</returns>
140124
public IEnumerable<ContentBlock>? GetContentBlocks(int? contentBlockID = null, string? friendlyName = null, string? system = null,
141125
string? viperSectionPath = null, string? page = null, int? blockOrder = null,
@@ -188,12 +172,6 @@ private void SanitizeContentBlocks(IEnumerable<ContentBlock> blocks)
188172
/// <summary>
189173
/// Returns the first file that matches the parameters past (or null)
190174
/// </summary>
191-
/// <param name="fileGUID"></param>
192-
/// <param name="oldURL"></param>
193-
/// <param name="friendlyName"></param>
194-
/// <param name="folder"></param>
195-
/// <param name="name"></param>
196-
/// <param name="getDeleted"></param>
197175
/// <returns>File object</returns>
198176
public CMSFile? GetFile(string? fileGUID, string? oldURL, string? friendlyName, string? folder, string? name)
199177
{
@@ -288,12 +266,6 @@ private void SanitizeContentBlocks(IEnumerable<ContentBlock> blocks)
288266
/// <summary>
289267
/// Search for matching files
290268
/// </summary>
291-
/// <param name="folder"></param>
292-
/// <param name="isPublic"></param>
293-
/// <param name="search"></param>
294-
/// <param name="status"></param>
295-
/// <param name="encrypted"></param>
296-
/// <returns></returns>
297269
public IEnumerable<CMSFile> GetAllFiles(string? folder, bool? isPublic, string? search, string? status, bool? encrypted)
298270
{
299271

@@ -337,9 +309,6 @@ public IEnumerable<CMSFile> GetAllFiles(string? folder, bool? isPublic, string?
337309
/// <summary>
338310
/// Get Friendly URL for a friendly name. Currently, always points to ColdFusion Viper
339311
/// </summary>
340-
/// <param name="friendlyName"></param>
341-
/// <param name="allowPublicAccess"></param>
342-
/// <returns></returns>
343312
public static string GetFriendlyURL(string friendlyName, bool allowPublicAccess = false)
344313
{
345314
string rootURL = String.Empty;
@@ -359,9 +328,6 @@ public static string GetFriendlyURL(string friendlyName, bool allowPublicAccess
359328
/// <summary>
360329
/// Get url for a fileGUID
361330
/// </summary>
362-
/// <param name="fileGUID"></param>
363-
/// <param name="allowPublicAccess"></param>
364-
/// <returns></returns>
365331
public static string GetURL(string fileGUID, bool allowPublicAccess = false)
366332
{
367333
return (allowPublicAccess ? @"/public" : "") + @"/cms/files/?id=" + fileGUID;
@@ -372,7 +338,6 @@ public static string GetURL(string fileGUID, bool allowPublicAccess = false)
372338
/// <summary>
373339
/// Get the root folder for files
374340
/// </summary>
375-
/// <returns></returns>
376341
public static string GetRootFileFolder()
377342
{
378343
if (HttpHelper.Environment?.EnvironmentName == "Development")
@@ -388,7 +353,6 @@ public static string GetRootFileFolder()
388353
/// <summary>
389354
/// Replace the root folder in a file object, e.g. if the app is on secure-test but the file was added on a dev machine, or vice versa.
390355
/// </summary>
391-
/// <param name="file"></param>
392356
public static void ReplaceRootFolder(CMSFile file)
393357
{
394358
string filePath = file.FilePath;
@@ -407,8 +371,6 @@ public static void ReplaceRootFolder(CMSFile file)
407371
/// <summary>
408372
/// Remove root folder in the file path and change path separator to /
409373
/// </summary>
410-
/// <param name="filePath"></param>
411-
/// <returns></returns>
412374
public string FilePathToWebPath(string filePath)
413375
{
414376
return filePath.Replace(GetRootFileFolder(), "").Replace(@"\", @"/");
@@ -648,8 +610,6 @@ public byte[] DecryptFile(byte[] encryptedData, string keystring)
648610
/// <summary>
649611
/// Required for Unix decoding FROM https://rextester.com/TGN19503
650612
/// </summary>
651-
/// <param name="encryptedString"></param>
652-
/// <param name="Key"></param>
653613
/// <returns>decoded string</returns>
654614
public string DecryptAES(string encryptedString, string Key)
655615
{

web/Areas/CTS/Controllers/AssessmentController.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ public AssessmentController(VIPERContext _context, RAPSContext rapsContext, CtsS
3232
/// <summary>
3333
/// Generic assessment get with params - note that this returns StudentAssessments of derived types
3434
/// </summary>
35-
/// <param name="type"></param>
36-
/// <param name="studentUserId"></param>
37-
/// <param name="enteredById"></param>
38-
/// <param name="serviceId"></param>
39-
/// <param name="epaId"></param>
40-
/// <param name="dateFrom"></param>
41-
/// <param name="dateTo"></param>
42-
/// <returns></returns>
4335
[HttpGet]
4436
[Permission(Allow = "SVMSecure.CTS.Manage,SVMSecure.CTS.StudentAssessments,SVMSecure.CTS.AssessClinical,SVMSecure.CTS.MyAssessments")]
4537
[ApiPagination(DefaultPerPage = 100, MaxPerPage = 100)]
@@ -193,8 +185,6 @@ public async Task<ActionResult<List<Assessor>>> GetAssessors(int? type, int? ser
193185
/// <summary>
194186
/// Get single student epa assessment
195187
/// </summary>
196-
/// <param name="encounterId"></param>
197-
/// <returns></returns>
198188
[HttpGet("{encounterId}")]
199189
[Permission(Allow = "SVMSecure.CTS.Manage,SVMSecure.CTS.StudentAssessments,SVMSecure.CTS.AssessClinical,SVMSecure.CTS.MyAssessments")]
200190
public async Task<ActionResult<StudentAssessment>> GetStudentAssessment(int encounterId)
@@ -224,8 +214,6 @@ public async Task<ActionResult<StudentAssessment>> GetStudentAssessment(int enco
224214
/// Given an Eval360 instance id, get the list of student evalautees for this evaluator and whether or not they have an EPA during
225215
/// this rotation.
226216
/// </summary>
227-
/// <param name="instanceId"></param>
228-
/// <returns></returns>
229217
[HttpGet("epacompletion")]
230218
[Permission(Allow = "SVMSecure")]
231219
public async Task<ActionResult<List<EvaluateeWithEpaCompletion>>> EvalauteeStudentsWithEpas(int instanceId)
@@ -286,8 +274,6 @@ public async Task<ActionResult<List<EvaluateeWithEpaCompletion>>> EvalauteeStude
286274
/// <summary>
287275
/// Create a new epa assessment
288276
/// </summary>
289-
/// <param name="epaData"></param>
290-
/// <returns></returns>
291277
[HttpPost("epa")]
292278
[Permission(Allow = "SVMSecure.CTS.AssessClinical,SVMSecure.CTS.Manage")]
293279
public async Task<ActionResult<CreateUpdateStudentEpa>> CreateStudentEpa(CreateUpdateStudentEpa epaData)
@@ -331,9 +317,6 @@ public async Task<ActionResult<CreateUpdateStudentEpa>> CreateStudentEpa(CreateU
331317
/// <summary>
332318
/// Update an EPA
333319
/// </summary>
334-
/// <param name="encounterId"></param>
335-
/// <param name="epaData"></param>
336-
/// <returns></returns>
337320
[HttpPut("epa/{encounterId}")]
338321
[Permission(Allow = "SVMSecure.CTS.AssessClinical,SVMSecure.CTS.Manage")]
339322
public async Task<ActionResult<CreateUpdateStudentEpa>> UpdateStudentEpa(int encounterId, CreateUpdateStudentEpa epaData)

web/Areas/CTS/Controllers/ClinicalScheduleController.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ public ClinicalScheduleController(IClinicalScheduleService scheduleService, ISch
2727
/// <summary>
2828
/// Get student schedule. Access should be restricted to admins, ViewStdSchedules, and students viewing their own schedule.
2929
/// </summary>
30-
/// <param name="classYear"></param>
31-
/// <param name="mothraId"></param>
32-
/// <param name="rotationId"></param>
33-
/// <param name="serviceId"></param>
34-
/// <param name="weekId"></param>
35-
/// <param name="startDate"></param>
36-
/// <param name="endDate"></param>
37-
/// <returns></returns>
3830
[HttpGet("student")]
3931
public async Task<ActionResult<List<ClinicalScheduledStudent>>> GetStudentSchedule(int? classYear, string? mothraId, int? rotationId, int? serviceId,
4032
int? weekId, DateTime? startDate, DateTime? endDate)
@@ -50,13 +42,6 @@ public async Task<ActionResult<List<ClinicalScheduledStudent>>> GetStudentSchedu
5042
/// <summary>
5143
/// Get instructor schedule. Access should be restricted to admins, ViewClnSchedules, and instructors viewing their own schedule.
5244
/// </summary>
53-
/// <param name="classYear"></param>
54-
/// <param name="mothraId"></param>
55-
/// <param name="serviceId"></param>
56-
/// <param name="weekId"></param>
57-
/// <param name="startDate"></param>
58-
/// <param name="endDate"></param>
59-
/// <returns></returns>
6045
[HttpGet("instructor")]
6146
public async Task<ActionResult<List<InstructorSchedule>>> GetInstructorSchedule(int? classYear, string? mothraId, int? rotationId, int? serviceId,
6247
int? weekId, DateTime? startDate, DateTime? endDate, bool active = true)

web/Areas/CTS/Services/AuditService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public AuditService(VIPERContext context)
2626
/// <summary>
2727
/// Audit the creation, update, or delete of a student EPA assessment
2828
/// </summary>
29-
/// <param name="encounter"></param>
30-
/// <param name="studentEpa"></param>
31-
/// <param name="actionType"></param>
32-
/// <param name="modifier"></param>
33-
/// <returns></returns>
3429
public async Task AuditStudentEpa(Encounter encounter, AuditActionType actionType, int modifier)
3530
{
3631
var details = JsonSerializer.Serialize(new

web/Areas/CTS/Services/CrestCourseService.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ public CrestCourseService(VIPERContext context)
1818
/// <summary>
1919
/// Get Courses for year, or by course number or subject code
2020
/// </summary>
21-
/// <param name="academicYear"></param>
22-
/// <param name="courseNum"></param>
23-
/// <param name="subjectCode"></param>
24-
/// <returns></returns>
2521
public async Task<List<Course>> GetCourses(string? termCode, string? courseNum, string? subjectCode)
2622
{
2723
var cso = await GetCourseSessionOffering(academicYear: termCode, courseNum: courseNum, subjectCode: subjectCode);
@@ -31,8 +27,6 @@ public async Task<List<Course>> GetCourses(string? termCode, string? courseNum,
3127
/// <summary>
3228
/// Get a single course + sessions and offerings
3329
/// </summary>
34-
/// <param name="courseId"></param>
35-
/// <returns></returns>
3630
public async Task<Course?> GetCourse(int courseId)
3731
{
3832
var cso = await GetCourseSessionOffering(courseId: courseId);
@@ -42,8 +36,6 @@ public async Task<List<Course>> GetCourses(string? termCode, string? courseNum,
4236
/// <summary>
4337
/// Get a single session and offerings
4438
/// </summary>
45-
/// <param name="sessionId"></param>
46-
/// <returns></returns>
4739
public async Task<Session?> GetSession(int sessionId)
4840
{
4941
var cso = await GetCourseSessionOffering(sessionId: sessionId);
@@ -53,8 +45,6 @@ public async Task<List<Course>> GetCourses(string? termCode, string? courseNum,
5345
/// <summary>
5446
/// Gets sessions for a course and their offerings
5547
/// </summary>
56-
/// <param name="courseId"></param>
57-
/// <returns></returns>
5848
public async Task<List<Session>> GetSessions(int courseId)
5949
{
6050
var course = await GetCourse(courseId);
@@ -68,8 +58,6 @@ public async Task<List<Session>> GetSessions(int courseId)
6858
/// <summary>
6959
/// Turn a list of CourseSessionOfferings into a list of Course objects
7060
/// </summary>
71-
/// <param name="csos"></param>
72-
/// <returns></returns>
7361
static private List<Course> CourseSessionOfferingsToCourses(List<CourseSessionOffering> csos)
7462
{
7563
List<Course> courses = new();
@@ -87,8 +75,6 @@ static private List<Course> CourseSessionOfferingsToCourses(List<CourseSessionOf
8775
/// <summary>
8876
/// Turn a list of CourseSessionOfferings, all from the same course, into a list of sessions for that course
8977
/// </summary>
90-
/// <param name="csos"></param>
91-
/// <returns></returns>
9278
static private List<Session> CourseSessionOfferingsToSessions(List<CourseSessionOffering> csos)
9379
{
9480
List<Session> sessions = new();
@@ -106,8 +92,6 @@ static private List<Session> CourseSessionOfferingsToSessions(List<CourseSession
10692
/// <summary>
10793
/// Turn a list of CourseSessionOfferings, all from the same session, into a list of offerings for that session
10894
/// </summary>
109-
/// <param name="csos"></param>
110-
/// <returns></returns>
11195
static private List<Offering> CourseSessionOfferingsToOfferings(List<CourseSessionOffering> csos)
11296
{
11397
List<Offering> offerings = new();
@@ -121,16 +105,6 @@ static private List<Offering> CourseSessionOfferingsToOfferings(List<CourseSessi
121105
/// <summary>
122106
/// Get a list CourseSessionOffering objects from the database
123107
/// </summary>
124-
/// <param name="academicYear"></param>
125-
/// <param name="courseNum"></param>
126-
/// <param name="subjectCode"></param>
127-
/// <param name="crn"></param>
128-
/// <param name="sessionType"></param>
129-
/// <param name="room"></param>
130-
/// <param name="from"></param>
131-
/// <param name="to"></param>
132-
/// <param name="studentGroup"></param>
133-
/// <returns></returns>
134108
private async Task<List<CourseSessionOffering>> GetCourseSessionOffering(
135109
int? courseId = null, string? academicYear = null, string? courseNum = null, string? subjectCode = null,
136110
string? crn = null, int? sessionId = null, string? sessionType = null,

web/Areas/CTS/Services/CtsSecurityService.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ public CtsSecurityService(RAPSContext rapsContext, VIPERContext viperContext, IU
2828
/// Assessors can view assessments they've entered
2929
/// Managers can view all assessments
3030
/// </summary>
31-
/// <param name="studentId"></param>
32-
/// <param name="enteredBy"></param>
33-
/// <returns></returns>
3431
public bool CheckStudentAssessmentViewAccess(int? studentId = null, int? enteredBy = null, int? serviceId = null)
3532
{
3633
var currentUser = userHelper.GetCurrentUser();

web/Areas/Directory/Controllers/DirectoryController.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public async Task<ActionResult<IEnumerable<NavMenuItem>>> Nav()
5454
/// Directory list
5555
/// </summary>
5656
/// <param name="search">search string</param>
57-
/// <returns></returns>
5857
[SupportedOSPlatform("windows")]
5958
[Route("/[area]/search/{search}")]
6059
public async Task<ActionResult<IEnumerable<IndividualSearchResult>>> Get(string search)
@@ -99,7 +98,6 @@ public async Task<ActionResult<IEnumerable<IndividualSearchResult>>> Get(string
9998
/// Directory list
10099
/// </summary>
101100
/// <param name="search">search string</param>
102-
/// <returns></returns>
103101
[SupportedOSPlatform("windows")]
104102
[Route("/[area]/search/{search}/ucd")]
105103
public async Task<ActionResult<IEnumerable<IndividualSearchResult>>> GetUCD(string search)
@@ -145,7 +143,6 @@ public async Task<ActionResult<IEnumerable<IndividualSearchResult>>> GetUCD(stri
145143
/// Directory results
146144
/// </summary>
147145
/// <param name="uid">User ID</param>
148-
/// <returns></returns>
149146
[Route("/[area]/userInfo/{mothraID}")]
150147
public async Task<IActionResult> DirectoryResult(string mothraID)
151148
{

web/Areas/RAPS/Controllers/MembersController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public async Task<ActionResult<MemberSearchResult>> Get(string memberId)
9393
/// Get all permissions assigned to a user (either allowed or denied) based on either role membership or direct
9494
/// permission assignment.
9595
/// </summary>
96-
/// <param name="memberId"></param>
9796
/// <returns>A list of permission results, including a source param to determine how the permission was assigned</returns>
9897
[Permission(Allow = "RAPS.Admin,RAPS.RSOP")]
9998
[HttpGet("{memberId}/RSOP")]

0 commit comments

Comments
 (0)