Commit 70da309
committed
chore: cleanup generated files to be readable
Break this out to use full import paths (eliminating the
possibility of collision of names- checks.attrs and reporters.attrs for
example).
Additionally write this in a way a human can read it, rather than
single giant lines. For example, it now writes this:
```
REPORTERS = (
('CsvReporter', pkgcheck.reporters.CsvReporter),
('FancyReporter', pkgcheck.reporters.FancyReporter),
('FlycheckReporter', pkgcheck.reporters.FlycheckReporter),
('FormatReporter', pkgcheck.reporters.FormatReporter),
('JsonReporter', pkgcheck.reporters.JsonReporter),
('JsonStream', pkgcheck.reporters.JsonStream),
('StrReporter', pkgcheck.reporters.StrReporter),
('XmlReporter', pkgcheck.reporters.XmlReporter),
)
```
rather than this:
```
REPORTERS = (('CsvReporter', reporters.CsvReporter), ('FancyReporter', reporters.FancyReporter), ('FlycheckReporter', reporters.FlycheckReporter), ('FormatReporter', reporters.FormatReporter), ('JsonReporter', reporters.JsonReporter), ('JsonStream', reporters.JsonStream), ('StrReporter', reporters.StrReporter), ('XmlReporter', reporters.XmlReporter))
```
Finally, use fchmod since it's the correct 'secure' approach,
and since it's my muscle memory now.
Signed-off-by: Brian Harring <ferringb@gmail.com>1 parent 1ea8d01 commit 70da309
2 files changed
Lines changed: 22 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
69 | 63 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 64 | + | |
| 65 | + | |
73 | 66 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
87 | 73 | | |
88 | 74 | | |
89 | 75 | | |
| |||
105 | 91 | | |
106 | 92 | | |
107 | 93 | | |
108 | | - | |
| 94 | + | |
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments