Ticket #12211 (closed enhancement: fixed)
RFE: "lint" action for Portfile verification
| Reported by: | afb@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts base enhancements |
| Component: | base | Version: | 1.5 |
| Keywords: | Cc: | ||
| Port: |
Description
port needs a target to verify that Portfiles are following set criteria, such as required variables or character encoding. It also helps to check that whitespace use and declaration order is uniform.
USAGE: $ sudo port lint MacPorts zlib ---> Verifying Portfile for MacPorts ---> 0 errors and 0 warnings found. ---> Verifying Portfile for zlib Warning: Line 4 should be a newline (after PortSystem) Warning: Line 16 should be a newline (after long_description) Warning: Line 33 has trailing whitespace before newline ---> 0 errors and 3 warnings found.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

