Axel Beckert pushed to branch master at lintian / lintian
Commits:
-
1df38cf7
by William Desportes at 2024-05-06T00:25:44+00:00
1 changed file:
Changes:
... | ... | @@ -152,7 +152,7 @@ will show you further options. |
152 | 152 | |
153 | 153 | ### Calibrating tests to fix test failures
|
154 | 154 | |
155 | -If tests fail, the teststuite will use an interactive 'calibration'
|
|
155 | +If tests fail, the testsuite will use an interactive 'calibration'
|
|
156 | 156 | process to help you write or amend a 'hints' file. Simply follow
|
157 | 157 | the instructions on the screen. In many cases, it is best to "accept
|
158 | 158 | all" and examine the changes in git. In complex cases, you can use
|
... | ... | @@ -173,6 +173,25 @@ configure perltidy in a special way. Please run it from the |
173 | 173 | repository's base directory. Otherwise it will not find the custom
|
174 | 174 | configuration, and the test suite will not pass.
|
175 | 175 | |
176 | +### Run perltidy
|
|
177 | + |
|
178 | +The program perltidy is provided by the package [perltidy](https://packages.debian.org/perltidy).
|
|
179 | +The program prove is provided by the package [perl](https://packages.debian.org/perl).
|
|
180 | + |
|
181 | +#### On all files
|
|
182 | + |
|
183 | +```sh
|
|
184 | +prove -l t/scripts/01-critic/
|
|
185 | +```
|
|
186 | + |
|
187 | +### On recently changed files
|
|
188 | + |
|
189 | +On the 10 last commits
|
|
190 | + |
|
191 | +```sh
|
|
192 | +git diff --name-only HEAD~10 HEAD | grep -F ".pm" | xargs perltidy -b
|
|
193 | +```
|
|
194 | + |
|
176 | 195 | ### Submit a merge request
|
177 | 196 | |
178 | 197 | Once all the above is done, please push your changes to your Lintian
|