Files
Paradise/tools/ci
warriorstar-orion edcaaf4241 Port check_grep.sh from an increasingly complicated shell script to Python. (#19875)
* Port check_grep.sh from an increasingly complicated shell script to Python.

* Exclude dmdoc-formatted multi-line comments from whitespace check

* Add comment exception for both WS rules

* Fixed mixed tab/space regex.

* hate hate hate hate

* Add doctests to preserve my sanity

* Remove checks involving newlines.

* Add back newline-involved tests. Cry.

* Several large-scale changes.

- Remove all the map-related changes for now, in order to get the
  code formatting changes in sooner and prevent more issues from leaking
  in while the PR issues are burned down.

- Flip the method for processing files. Instead of trying to sort errors
  by type, running over each file for each error, I'm simply breaking
  from the original output format and returning a lint-like set of
  errors. In this design, each file is opened, the checks are run, and
  the file handle is reused for each check.

- Standardize failures so that the filename, line number, and message
  can all be retrieved and formatted nicely for stdout.

- Compile regexes. The consensus seeeeeeeems to be that there's a
  negligible difference in performance when compiling regexes but
  there's a possibility that running them a lot of times may be faster,
  and I could actually time it, but ugggggggh.
2023-07-07 17:31:05 +01:00
..
2021-05-24 08:25:18 -06:00
2021-09-13 22:01:40 +01:00
2021-05-03 18:12:42 +01:00
2021-07-26 17:21:24 +01:00
2021-10-13 22:43:12 +01:00

Info

All scripts utilised by CI should be placed into this folder for the sake of maintainability, and knowing where stuff is

NOTE

Do not move the dm.sh script without VERY good reason, as the server backend relies on it for updating, and moving this file WILL break server updating, but make the server appear to still be updated. TLDR: Dont move it or break its existing functionality, without advancing changes to the server host.