Closed Bug 1770442 Opened 2 years ago Closed 2 years ago

Fix t/critic.t to not just look in scripts directory for violations

Categories

(bugzilla.mozilla.org :: Continous Integration, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file)

Currently t/critic.pl, when Test::Perl::Critic::Progressive::progressive_critic_ok() is called without arguments, it only looks for code in blib/ directory. If the blib/ directory does not exist, then it tries the lib/, bin/, script/, and scripts/ directory. So in the case of BMO, only the scripts/ directory is scanned which makes the number of actual violations quite low. If we add in the proper files that need to be checked from all code in BMO, then the violations are around 12k.

This bug is to 1) Fix the test to look at all files, and 2) figure out what can be fixed relatively easy and which violations will just go into a new perlcritichistory file to be fixed at a later date.

Attached file GitHub Pull Request
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: