Commit Graph

125 Commits

Author SHA1 Message Date
JP Simard 2bcea4b04d Add ability for SwiftLint to lint files with full type-checked AST awareness (#2379)
* Add LintableFilesVisitor

* Move LintCommand logic into LintOrAnalyzeCommand

to prepare for the upcoming analyze command

* Add AnalyzeCommand (not fully implemented yet in SwiftLintFramework)

* Add analyzerRules configuration member

* Add AnalyzerRule protocol

* Pass compiler arguments to validate/correct

* Add requiresFileOnDisk member to RuleDescription

This will be used by AnalyzerRules because they need a file on disk
to pass in the compiler arguments to SourceKit.

* Exclusively run AnalyzerRules when the Linter has compiler arguments

* Enable testing AnalyzerRules in TestHelpers

* Add ExplicitSelfRule

* Update documentation

* Fix `analyze --autocorrect`

* Improve performance of CompilerArgumentsExtractor

* Fix lint command actually running analyze

* Move File operations in TestHelpers into a private extension

* Add analyzer column to rules command and markdown documentation

* Use a Set literal

* Make AnalyzerRule inherit from OptInRule

* Mention analyzer_rules in readme

* Mention that analyzer rules are slow
2018-09-02 00:13:27 -07:00
JP Simard e33caca50f Update 'help' output in README (#2377) 2018-09-01 12:50:13 -07:00
Yusuke Ohashi a941b2f242 added SonarQube reporter. 2018-08-16 15:02:47 +09:00
Keith Smiley 8354eeec22 Update readme 2018-07-26 10:21:14 -07:00
Bruno Guidolim ce0b5a2f52 Typo fix 2018-04-20 19:12:40 +02:00
Bruno Guidolim dc6ab4f734 Fastlane example updated 2018-04-20 09:28:47 +02:00
Sohail Khanifar da40f91071 Fix readme's Warning emoji
Old warning emoji was making the 'This plugin' text funky.
2018-04-01 23:08:04 -07:00
Frederick Pietschmann 48c9aeb08a Adjust all keyword architecture + docs 2018-03-21 07:42:46 +01:00
Frederick Pietschmann e02fccc72e Add documentation for all keyword 2018-03-21 07:42:46 +01:00
Frank Manns 7013c5c0f9 Fix README link to fastlane action 2018-03-13 21:17:02 -04:00
Michael Nguyen 267dd58092 Add clarification around custom rules with whitelist 2017-12-27 12:57:33 +11:00
Marcelo Fabri ee02e0f8e5 Remove support for building with Swift 3.1 2017-10-04 13:48:17 -07:00
Yonas Kolb 961ab30c1c Add Mint installation instructions 2017-10-01 19:00:57 +02:00
Marcelo Fabri a71e79271b Merge pull request #1799 from ornithocoder/talk_link
Fix link to 'Watch Your Language' talk
2017-08-25 01:52:00 +02:00
Ornithologist Coder 7149156470 Fix link to 'Watch Your Language' talk
Closes #1798
2017-08-25 01:43:26 +02:00
JP Simard dc0555a93c Link to opt-in guidelines from issue template 2017-08-21 11:46:08 -07:00
JP Simard 43ade3fe83 Add heading for 'Opt-In Rules' to README
so we can link to this
2017-08-21 11:43:15 -07:00
Marcelo Fabri 1a50451eac Adding more options to fastlane action in README 2017-08-14 20:28:47 +02:00
Felix Krause 92b0291f19 Add instructions on how to use SwiftLint with fastlane 2017-08-12 15:42:16 -07:00
EyreFree 6578c92e61 Update README_CN.md 2017-08-11 09:20:00 +08:00
Marcelo Fabri 33ca7d71f7 Customize YAML loading for configurations
This enables:

1. Using environment variables inside a configuration (fixes #1512)
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes #1424)
2017-08-01 15:25:27 +02:00
Dmytro Zozulia b990448a42 Fixed Readme custom rule regexp 2017-07-31 17:23:38 +02:00
JP Simard 7acacf6bdb update dependencies, mostly for SourceKitten 0.18 2017-07-12 10:11:27 -07:00
JP Simard 629b053785 add swift version support table to readme
addresses #1663
2017-07-11 11:21:54 -07:00
Marcelo Fabri 06bb668fb0 Add Rules.md 2017-07-03 00:33:29 +02:00
Marcelo Fabri d73ee8d3d9 Remove Swift 2 support
Also removes `missing_docs` and `valid_docs` rules.

Fixes #1453.
2017-04-23 13:43:41 +02:00
Nigel Flack cc179c5892 Adds 'excluded' to README 2017-04-23 10:02:50 +01:00
orsanawwad 67ea6c9517 Fixed typo. 2017-03-19 22:31:06 +02:00
JP Simard a2ec02cb78 replace uses of 'variable_name' with 'identifier_name' in markdown files 2017-02-09 16:14:49 -08:00
Bjarke Hesthaven Søndergaard 54ba6e6340 Update README for Cocoapods script
The path should be surrounded by `""` to fix issues with spaces in `PODS_ROOT` path.
2017-01-27 11:54:03 +01:00
JP Simard 346f1f8d4c update "Rules" readme section
this hadn't been touched since SwiftLint was first prototyped and was pretty
outdated.
2017-01-23 16:55:05 -08:00
JP Simard 8b339a511f elaborate on swift versions readme section 2017-01-23 15:53:37 -08:00
JP Simard adbe86ca16 add documentation on working with multiple swift versions in README 2017-01-23 15:38:14 -08:00
JP Simard a83310b075 link to my SwiftLint presentation from the README 2017-01-10 17:36:56 -08:00
Marcelo Fabri e5563ef209 Update installation options on README (#1086)
Update installation options on README
2016-12-30 02:03:01 -02:00
Jamie Edge 8a37b26edb Update CHANGELOG and add missing HTML option to README. 2016-12-21 13:33:31 +00:00
JP Simard 9ed4bf0200 remove bash language specifier in some code blocks
these code blocks don't use any bash-isms and render strangely when it is specified
2016-12-20 00:43:08 -08:00
JP Simard 916aa2991c decouple README link from GitHub 2016-12-20 00:41:28 -08:00
Michael Helmbrecht e9b990a43f Add warning about plugin not working with Xcode 8 2016-12-19 20:02:50 -08:00
Michael Helmbrecht 4c98416308 Various grammar tweaks in README 2016-12-19 20:02:30 -08:00
Michał Kałużny d97632e52d Add human readable reporter that’s also funny because emoji. 2016-12-07 23:13:59 -08:00
JP Simard 0c211d5a33 update README to reflect Xcode 8 requirement 2016-12-01 22:01:04 -08:00
JP Simard cf99d8cee6 update README to reflect the ability to specify multiple rules in commands 2016-11-25 12:58:46 -08:00
JP Simard ded33bf026 miscellaneous README updates
- formatting
- Xcode version update
2016-11-25 09:57:26 -08:00
Norio Nomura ec953e28d5 Merge pull request #858 from yeswolf/master
Add information about SwiftLint plugin for AppCode into README.md
2016-10-29 22:51:04 +09:00
Stanislav Dombrovsky c847541d96 Adds information about SwiftLint plugin for AppCode into README.md 2016-10-25 21:22:30 +03:00
J. Cheyo Jimenez 1f062c4777 added reasons why a new rule should be opt in
this is a modification of https://github.com/realm/SwiftLint/issues/850
all credit goes to @marcelofabri
2016-10-24 12:50:32 -07:00
Norio Nomura 2013e09c0b Fix #794 and #795 2016-09-01 20:22:57 +09:00
Norio Nomura d00220e6e1 Change included to include
Fix #794
2016-09-01 09:45:09 +09:00
Matthew Ellis 07313c09a5 Add JUnit reporter 2016-07-22 20:50:58 +01:00