mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Add audit report for unstable branch
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
83d8023767
commit
eabcb1a475
3 files changed
+50
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# Audit Report (Unstable Branch)
|
||||
|
||||
## File Size
|
||||
- **Grandfathered Oversized Files:** 44
|
||||
- **Total Excess Lines:** 54,278 (sum of lines exceeding the 1000-line limit for each file)
|
||||
|
||||
## innerHTML Usage
|
||||
- **Total Assignments:** 125
|
||||
|
||||
## Lint Status
|
||||
- **Failures:** None
|
||||
- `lint:assets` skipped (build required)
|
||||
- `lint:sw-compat` skipped (git history unavailable)
|
||||
|
||||
## Comparison
|
||||
No previous report found in the repository for comparison.
|
||||
@@ -0,0 +1,17 @@
|
||||
const fs = require('fs');
|
||||
const content = fs.readFileSync('file_size.log', 'utf8');
|
||||
const lines = content.split('\n');
|
||||
let totalExcess = 0;
|
||||
let count = 0;
|
||||
lines.forEach(line => {
|
||||
const match = line.match(/\((\d+) lines\)/);
|
||||
if (match) {
|
||||
const lines = parseInt(match[1], 10);
|
||||
if (lines > 1000) {
|
||||
totalExcess += (lines - 1000);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
});
|
||||
console.log('Count:', count);
|
||||
console.log('Total Excess:', totalExcess);
|
||||
@@ -0,0 +1,17 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
const content = readFileSync('file_size.log', 'utf8');
|
||||
const lines = content.split('\n');
|
||||
let totalExcess = 0;
|
||||
let count = 0;
|
||||
lines.forEach(line => {
|
||||
const match = line.match(/\((\d+) lines\)/);
|
||||
if (match) {
|
||||
const lines = parseInt(match[1], 10);
|
||||
if (lines > 1000) {
|
||||
totalExcess += (lines - 1000);
|
||||
count++;
|
||||
}
|
||||
}
|
||||
});
|
||||
console.log('Count:', count);
|
||||
console.log('Total Excess:', totalExcess);
|
||||
Reference in new issue
Block a user