* Remove self.check in python3.rb as tests were not actuallly being run
* Enable Lint/ImplicitStringConcatenation cop
* Enable Layout/CommentIndentation cop
* Remove unnecessary configuration of Layout/IndentationStyle to EnforcedStyle: spaces, as this is already the default
* Enable Layout/LeadingCommentSpace cop
* Enable Layout/SpaceInsideBlockBraces cop
* Enable Layout/SpaceInsideParens cop
* Enable Layout/TrailingEmptyLines cop
* Enable Lint/LiteralAsCondition cop
* Document the current issue stopping us from enabling Style/OptionalBooleanParameter
* Stop downloading our rubocop config when installing ruby_rubocop
* Rename IgnoredPatterns to AllowedPatterns.
* Exclude docopt.rb (not our code) from Rubocop
* Disable Style/RedundantReturn
* Disable Style/MutableConstant
* Disable Style/NumericLiterals
* Set Layout/IndentationStyle to spaces
* Temporarily disable various cops.
* Add Rubocop CI via Octocop
* Lint tree with rubocop -A -c .rubocop.yml
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Changelog:
- Moved string colorization to lib/color.rb
- Moved constants to lib/const.rb
- Moved sudo checking before docopt checking.
- Changed docopt require to be relative
- Fixed stray tabs