department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

[BE Tools] RuboCop – Fix RuboCop violations so the to-do file is empty #26887

Closed jeff2d2 closed 2 years ago

jeff2d2 commented 3 years ago

As of 11/1: 30 issues fixed.

Problem Statement

RuboCop provides many safety checks and best practices for use in vets-api. We're currently ignoring ~3000 RuboCop violations. Some of these are legitimate and should be ignored, but the bulk of them should not be and should be properly addressed.

How might we eliminate the illegitimately ignored RuboCop violations, to ensure that the proper safety checks and best practices are in place?

Hypothesis or Bet

We believe completing this initiative will significantly contribute to solving Objective 3.

If we eliminate the illegitimately ignored RuboCop violations, then we expect:

We will know we're done when... ("Definition of Done")

We’ll know we’re successful when:

Known Blockers/Dependencies

Projected Launch Date

Q4 2021

Launch Checklist

Guidance (delete before posting)

This checklist is intended to be used to help answer, "is my VSP initiative ready for launch?". All of the items in this checklist should be completed, with artifacts linked---or have a brief explanation of why they've been skipped---before launching a given VSP initiative. All links or explanations can be provided in Required Artifacts sections. The items that can be skipped are marked as such.

Keep in mind the distinction between Product and Initiative --- each Product needs specific supporting documentation, but Initiatives to improve existing Products should reuse existing documentation for that Product. VSP Product Terminology for details.

Is this service / tool / feature...

... tested?

... documented?

... measurable

Required Artifacts

Documentation

Testing

Measurement

TODOs

jeff2d2 commented 3 years ago

Stories to complete:

  1. Discovery on which cops have the fewest offenses and are auto-correctable. Create list/sheet of all that need attention. Decide if some should turn into their own stories.
  2. Figure out at the beginning of each sprint which ones we'd like to tackle in that sprint.