Anders Hasselqvist
1efb78ef25
Fix unnecessary oss-check diff reports
...
Other minor improvements based on review feedback.
2018-06-14 00:48:14 +09:00
Anders Hasselqvist
58202772d3
Support placeholder for forbidden_pattern
...
- Move regex creation for *_pattern to FileHeaderConfiguration
- Switch to using test fixures for the tests
2018-06-13 19:55:27 +09:00
Anders Hasselqvist
15af1a778f
Add file name matching to file_header rule
...
Add support of inserting a SWIFTLINT_CURRENT_FILENAME placeholder in the required_pattern.
The placeholder will be replaced by the lastPathComponent of the file's path.
2018-06-13 19:55:27 +09:00
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
d21262d1bc
Ignore SwiftLint commands in file_header rule
...
Fixes #1810
2017-09-30 00:29:23 -03:00
Marcelo Fabri
d79f642c43
Make file_header rule ignore doc comments.
...
Fixes #1719
2017-08-01 13:51:31 +02:00
Marcelo Fabri
45460f06ed
Improve file_header rule description
...
Fixes #1492
2017-07-24 00:47:55 +02: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
JP Simard
2704b3e1de
report file_header violations on line 1 for all reporters
2017-05-18 15:11:50 -07:00
JP Simard
8c9cba0c0f
fallback to line 1 when no line is provided & reporting with xcode
...
this is a generalization of the fix from #1521
2017-05-17 14:56:46 -07:00
Richard Hodge
32c58aaf5a
Update file_header rule to trigger on line 1 for files that are missing a header. ( #1521 )
...
Fixes #1520
2017-05-17 16:19:31 +02: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
JP Simard
a291bb594a
update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines
2017-01-09 17:53:07 -08:00
Marcelo Fabri
9e4d464e45
Add violation markers in rules
2016-12-18 01:07:51 -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
1c59d8fb6e
Updating rule description
2016-12-08 18:29:57 -02:00
Marcelo Fabri
4b67f683df
Improve location report
2016-12-08 18:29:57 -02:00
Marcelo Fabri
9f1294abfc
Make it green ✅
2016-12-08 18:29:57 -02:00
Marcelo Fabri
ac0b0824c9
Swift 3 migration
2016-12-08 18:29:57 -02:00
Marcelo Fabri
b4a3c17b41
Initial work to support configuration in file header rule
2016-12-08 18:29:57 -02:00
Marcelo Fabri
4abe67c7d7
Add FileHeaderRule
...
Fixes #844
2016-12-08 18:29:57 -02:00