Keith Smiley
925fb26d83
Add LowerACLThanBodyRule
...
This new rule validates that if a type/function/variable definition has
an ACL specifier, it is more restrictive than the containing body's
level. This is intended to lint a peculiarity of SE-0025 where it is
stated:
> The compiler should not warn when a broader level of access control is
used within a type with more restrictive access, such as internal within
a private type. This allows the designer of the type to select the
access they would use were they to make the type more widely accessible.
I think this is an anti-goal because when a type is made more open, it
should be a concious decision at that time to make it public. This is of
course an opt-in rule as well. This also has the added benefit of
linting this compiler bug: https://bugs.swift.org/browse/SR-2925
2018-04-04 10:16:12 -07:00
..
2018-03-17 19:51:24 +01:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2017-04-23 13:43:41 +02:00
2017-11-16 11:03:08 +09:00
2017-09-28 14:11:15 -03:00
2017-10-04 14:34:00 -07:00
2017-07-12 10:11:27 -07:00
2017-07-02 15:50:16 +02:00
2018-03-27 20:31:39 -04:00
2018-03-17 18:51:30 -07:00
2018-03-17 18:51:30 -07:00
2018-01-16 01:00:56 +09:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2017-07-02 15:50:16 +02:00
2017-07-02 15:50:16 +02:00
2017-11-08 07:02:34 +01:00
2017-12-04 23:18:16 -08:00
2018-03-21 07:42:46 +01:00
2018-02-03 22:23:48 -08:00
2017-10-04 14:34:00 -07:00
2017-08-01 23:20:37 +02:00
2018-01-03 23:00:54 -08:00
2018-01-22 01:20:57 +01:00
2018-01-22 07:29:04 +01:00
2018-03-26 00:26:14 +02:00
2018-03-26 00:26:14 +02:00
2017-07-02 15:50:16 +02:00
2017-10-04 14:34:00 -07:00
2018-03-26 21:53:00 -07:00
2017-10-04 14:34:00 -07:00
2018-03-26 22:46:46 -07:00
2018-03-17 11:47:04 -07:00
2018-01-22 11:22:49 -08:00
2017-08-26 07:58:31 +04:00
2018-03-26 22:46:46 -07:00
2017-07-02 15:50:16 +02:00
2018-02-25 19:18:38 -08:00
2017-07-02 15:50:16 +02:00
2017-09-11 02:35:37 -03:00
2017-07-02 15:50:16 +02:00
2017-09-30 00:29:23 -03:00
2017-10-04 14:34:00 -07:00
2017-11-08 07:02:34 +01:00
2017-07-02 15:50:16 +02:00
2017-07-02 15:50:16 +02:00
2018-02-11 17:34:15 -08:00
2017-12-20 11:23:05 -08:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2018-03-17 19:51:24 +01:00
2018-03-17 19:51:24 +01:00
2017-04-23 13:43:41 +02:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2017-07-12 10:11:27 -07:00
2017-10-04 14:34:00 -07:00
2018-03-26 22:46:46 -07:00
2017-10-04 14:34:00 -07:00
2017-10-04 13:49:40 -07:00
2017-07-02 15:50:16 +02:00
2017-07-02 15:50:16 +02:00
2017-04-23 13:43:41 +02:00
2018-04-01 23:26:12 -07:00
2017-07-02 15:50:16 +02:00
2018-01-25 20:00:31 -08:00
2017-11-10 14:37:53 -08:00
2017-10-02 02:09:53 -03:00
2018-04-04 10:16:12 -07:00
2017-07-25 09:32:50 -07:00
2017-09-30 01:28:45 +02:00
2017-09-30 01:28:45 +02:00
2017-09-30 01:01:56 +02:00
2017-10-21 10:58:10 +02:00
2017-10-21 10:58:10 +02:00
2017-08-27 22:03:22 -07:00
2017-10-04 14:34:00 -07:00
2017-11-30 11:05:45 -08:00
2017-10-02 02:09:53 -03:00
2017-10-07 20:28:11 -03:00
2017-10-05 14:33:32 -03:00
2017-04-23 13:43:41 +02:00
2017-11-10 14:37:53 -08:00
2017-04-23 13:43:41 +02:00
2017-07-02 15:50:16 +02:00
2017-11-10 14:37:53 -08:00
2017-07-02 15:50:16 +02:00
2017-10-04 14:34:00 -07:00
2017-07-02 15:50:16 +02:00
2017-10-08 21:03:55 -03:00
2017-08-26 10:05:56 -03:00
2018-01-05 10:41:05 +01:00
2017-11-17 18:13:48 +01:00
2017-07-02 15:50:16 +02:00
2017-08-01 18:26:57 +02:00
2017-07-02 15:50:16 +02:00
2017-07-02 15:50:16 +02:00
2017-07-02 15:50:16 +02:00
2017-10-16 06:48:56 +02:00
2017-10-16 06:48:56 +02:00
2017-10-16 08:54:37 +02:00
2017-10-16 08:54:37 +02:00
2017-10-17 16:06:05 +02:00
2017-10-17 16:06:05 +02:00
2017-07-12 23:56:21 +02:00
2017-07-21 21:08:52 +02:00
2018-03-26 22:46:46 -07:00
2017-07-02 15:50:16 +02:00
2018-03-27 20:41:24 -04:00
2018-01-03 21:42:55 -08:00
2017-07-12 10:11:27 -07:00
2017-07-12 10:11:27 -07:00
2017-08-16 18:29:43 +02:00
2017-11-07 08:41:40 +01:00
2017-10-23 15:27:30 -07:00
2017-07-12 10:11:27 -07:00
2017-08-01 18:03:33 +02:00
2017-08-21 00:24:09 +02:00
2017-09-12 09:26:42 -07:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2018-02-25 22:28:58 -05:00
2017-10-05 14:33:32 -03:00
2017-10-04 14:34:00 -07:00
2017-11-10 14:37:53 -08:00
2017-10-04 14:34:00 -07:00
2017-11-10 14:37:53 -08:00
2017-10-04 14:34:00 -07:00
2018-03-17 19:51:24 +01:00
2018-01-25 20:28:33 -08:00
2017-10-02 00:21:27 -03:00
2018-01-24 14:07:56 -08:00
2018-03-17 13:20:43 -07:00
2018-03-26 22:46:46 -07:00
2017-08-21 11:47:32 +02:00
2017-10-04 14:34:00 -07:00
2017-07-18 11:58:49 -07:00
2017-07-10 22:57:13 -07:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2017-10-04 14:34:00 -07:00
2017-07-02 15:50:16 +02:00
2017-08-02 12:08:22 -07:00
2018-03-29 13:47:05 -04:00