JP Simard
b83e0991b9
Remove all file headers
...
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
Marcelo Fabri
0be8c855d2
Move functions to properties and Sets instead of Arrays
2017-10-04 14:34:00 -07:00
Marcelo Fabri
e86763739f
Move kind to RuleDescription
2017-07-02 15:50:16 +02:00
Marcelo Fabri
5012211d3d
Add RuleKind
2017-07-02 15:50:16 +02:00
Jeffrey
3812ef3612
change parameter.value to configuration.warning
2017-04-25 13:46:44 -07:00
JP Simard
29cdc86185
add some convenience members to SourceKit dictionaries
2017-01-22 11:00:57 -08:00
JP Simard
7522635ad8
update SwiftLintFramework/Rules to follow Swift 3 API Design Guidelines
2017-01-09 19:37:53 -08:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
Marcelo Fabri
9c43a21fed
Merge branch 'master' into attributes-rule
2016-12-11 23:46:18 -02:00
JP Simard
0faf567931
use bridge() rather than explict or implicit casts
...
this is a step in aligning the code to compile on both Darwin and
Linux
2016-12-11 13:47:44 -08:00
Marcelo Fabri
2ddf7757d7
Merge branch 'master' into attributes-rule
2016-12-09 14:50:48 -02:00
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
Marcelo Fabri
1d42d29714
Merge branch 'master' into attributes-rule
2016-12-04 18:36:06 -02:00
Marcelo Fabri
af15654ddc
Moving functionKinds and typeKinds to extension
2016-11-30 11:51:25 -02:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
Norio Nomura
39282654f4
Fix conditional_binding_cascade violations
2016-04-16 08:30:00 +09:00
JP Simard
144495306b
rename rule configurations to expand "Config" to "Configuration"
2016-02-12 10:53:36 -08:00
JP Simard
6befe7e5a4
expand many instances of "config" to "configuration"
2016-02-12 10:53:36 -08:00
JP Simard
3f4b993847
rename ConfigProviderRule to ConfigurationProviderRule
2016-02-12 10:53:36 -08:00
Scott Hoyt
989bac7ec8
Renamed SeverityLevelConfig to SeverityLevelsConfig.
2016-01-23 17:42:13 -08:00
Scott Hoyt
3230c6413e
Replaced things in rule configurations named configuration for config to save space.
2016-01-23 17:42:13 -08:00
Scott Hoyt
0691b79a08
Rename Rule Configurations.
2016-01-23 17:42:13 -08:00
Scott Hoyt
873edb724b
Provided convenience property params for RuleLevelsConfig.
2016-01-23 17:42:13 -08:00
Scott Hoyt
05a65afc72
Removed ViolationLeveLRule in favor of ConfigurationProviderRule.
2016-01-23 17:42:13 -08:00
JP Simard
ace0999154
update SourceKitten to 0.8.0
2016-01-22 19:19:15 -08:00
Norio Nomura
7c4b7f34ac
Reduce creation of Location
...
Performance improvement is small on real usage.
But, it reduces the duration of `make test`
from:
```
…
✓ testTypeBodyLengths (15.942 seconds)
…
Executed 70 tests, with 0 failures (0 unexpected) in 22.355 (22.393) seconds
```
to:
```
…
✓ testTypeBodyLengths (8.197 seconds)
…
Executed 70 tests, with 0 failures (0 unexpected) in 14.455 (14.500) seconds
```
2016-01-23 11:59:56 +09:00
Marcelo Fabri
d68161da96
Renaming functions to make clear that whitespace only lines are ignored too
2016-01-21 22:29:38 -08:00
Marcelo Fabri
3416217927
TypeBodyLengthRule should not count comment and whitespace lines
2016-01-21 22:29:38 -08:00
Marcelo Fabri
75a4f2f2dc
Changing reason message
2016-01-14 21:24:24 -08:00
Marcelo Fabri
12eb3fece7
Updating reason message
2016-01-14 20:47:17 -08:00
Marcelo Fabri
579872cd30
Handling multiline comments and correcting line count on violation reason
2016-01-14 20:26:20 -08:00
Marcelo Fabri
ea33640296
Caching
2016-01-14 20:25:51 -08:00
Marcelo Fabri
72f401497d
Refactoring
2016-01-14 20:25:51 -08:00
Marcelo Fabri
07c076689b
Address performance issues
2016-01-14 20:24:47 -08:00
Marcelo Fabri
04b2510926
FunctionBodyLengthRule should not count comment lines
2016-01-14 20:24:47 -08:00
Scott Hoyt
62a0d83f9b
Migrated FunctionBodyLengthRule to ViolationLevelRule.
2016-01-13 19:45:27 -08:00
Sebastian Grail
2d27db5e1f
Fix typo in FunctionBodyLengthRule and TypeBodyLengthRule
2016-01-04 15:38:54 +11:00
JP Simard
8d529f1804
Fix multibyte handling in many rules
2015-12-24 20:59:15 -05:00
JP Simard
173c0058ca
Merge pull request #217 from crimsonwoods/fix_issue_213_wrong_line_number_is_detected
...
Fix an issue: wrong line number and/or index is reported
2015-11-17 19:44:57 -08:00
crimsonwoods
4806e31f23
Rename lineAndCharacterForByteOffset to lineAndCharacterForCharacterOffset.
...
According to a change 247f02eff4 ,
method name should be changed.
2015-11-18 12:05:08 +09:00
JP Simard
76b30ee19b
make all rule descriptions follow a consistent format
2015-11-17 10:18:29 -08:00
JP Simard
8e12dbd81d
move ASTRule function implementations into a protocol extension
2015-11-04 15:39:29 -08:00
JP Simard
0335f155ab
Perform major refactor of rule description, identifiers and examples
...
Fixes #183 .
2015-11-04 12:24:33 -08:00
JP Simard
5cb80cfd22
All rules now print their identifiers in reports. Fixes #180 .
2015-11-04 10:30:36 -08:00
Gilles Grousset
7feb26ebe2
Refactored Rule reference in StyleViolation
...
Now uses a String with the rule identifier
2015-11-03 13:31:29 +01:00
Gilles Grousset
7328b41da8
Added rule reference to StyleViolation
...
- Added rule reference to StyleViolation
- Added rule_id field on JSONReporter and CSVReporter
2015-11-01 02:00:04 +01:00
Keith Smiley
fa97ce073a
Update rule descriptions to not include specifics
...
Now that configuration of rules has been added, having these hard coded
lengths is no longer valid.
2015-09-30 13:22:37 -07:00
JP Simard
25017c4ea4
[Configuration] allow configuring parameterized rules from the configuration file
2015-09-21 11:08:29 -07:00