Commit graph

27 commits

Author SHA1 Message Date
Tim Smith
303f530850 Update to Chefstyle 1.2.1
Update a few cop names
Remove redundant returns

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-08-12 13:12:26 -07:00
Ryan Davis
b1c2af209b Corresponding fixes for the move from test/unit/mock to test/fixtures.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 19:20:12 -08:00
Ryan Davis
bb49d58cd9 Switched chefstyle back to Layout/AlignArguments=with_first_argument.
Fixed the flags mostly with `chefstyle -a` but also refactored/cleaned
some stuff by hand.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 12:57:43 -08:00
Miah Johnson
87b9d569ca Allow rubocop to ignore our test-kitchen files
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:43:15 -07:00
Miah Johnson
5a0dd5a5d8 Exclude more bundled controls
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 18:10:06 -07:00
Miah Johnson
c0a4dfeea4 We need to ignore some example InSpec profiles, we don't want to apply
chefstyle to them.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-11 15:12:35 -07:00
Ryan Davis
52423e8a0c Switched dependency to chefstyle.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 15:07:34 -07:00
Clinton Wolfe
6960a714b9 Do not lint test kitchen support files
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-06-06 12:51:22 -04:00
Clinton Wolfe
dca2f069ba Disable Performance/RegexpMatch rule to avoid breaking soooo many tests
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-17 12:40:53 -04:00
Tim Smith
00ce6c02df Require Ruby 2.4 or later
Ruby 2.3 is no longer supported. Drop this release from InSpec and
instead support the 3 latest Ruby releases.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:19:40 -07:00
Clinton Wolfe
5acbae42ee Exempt inspec-init template file from rubocop, and enable DisplayCopNames by default
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-02-06 11:58:10 -05:00
Clinton Wolfe
da0ae7bac9 Plugins: Example CLI Plugin, a Resource Lister (#3421)
* Plugin example, CLI resource lister
* Move example plugin into a directory to look like a regular project
* Skeleton of testing for example plugin
* Example plugin unit tests work
* Functional tests added, using core helper
* Add a global method to determine InSpec install root
* Add linter support to the example
* Adjust inspec project rubocop to run linter on example plugins
* Linter autocorrections
* Update readme

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-27 16:57:18 -04:00
Clinton Wolfe
0ced18841f
CLI Plugin Manager SubCommand (#3414)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-09-25 10:29:18 -04:00
Jared Quick
40e024fa97
Move habitat to v2 plugin. (#3404)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-18 13:10:07 -04:00
Dominik Richter
275772050e
move /tutorial to /demo (#2700)
* move /tutorial to /demo

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* update netlify to build demo

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* fix gulp run path

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>

* ignore rubocop on www/demo

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2018-02-19 16:57:19 -08:00
Adam Leff
a18441f86e Rubocop: disable GuardClause and ClassLength (#2382)
Neither of these cops is helping us write good code, and GuardClause
specifically is actually contributing to us writing sometimes-unclear
code. Disabling both of these cops and removing all unnecessary disable
decorators in the codebase.

Signed-off-by: Adam Leff <adam@leff.co>
2017-12-07 20:22:55 +01:00
Adam Leff
4b9acb4800 Bump Rubocop to 0.49.1 (#2323)
* Bump Rubocop to 0.49.1

This change bumps Rubocop to 0.49.1. There have been a lot of changes
since 0.39.0 and this PR is hopefully a nice compromise of turning off
certain cops and updating our codebase to take advantage of new Ruby
2.3 methods and operators.

Signed-off-by: Adam Leff <adam@leff.co>

* Set end-of-line format to line-feed only, avoid Windows-related CRLF issues

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-21 08:49:41 +01:00
Adam Leff
dde4a116d6
Update Rubocop to TargetRubyVersion 2.3 (#2311)
Bumps the Rubocop engine to use 2.3 and addresses the big changes
between 2.0 and 2.3.

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-16 11:26:19 -05:00
Anirudh Gupta
75534fdaa5 added hpux user and package resource support 2016-04-21 14:01:56 +05:30
Christoph Hartmann
48545d9a34 ignore templates in rubocop 2016-02-14 21:28:11 +01:00
Christoph Hartmann
b7a88dbd7a fix linting and unit test 2016-02-05 16:57:51 +01:00
Dominik Richter
4092691a78 lint 2016-01-15 04:07:25 +01:00
Dominik Richter
45f7057f30 lint 2015-10-26 04:39:16 +01:00
Christoph Hartmann
144393c7cd activate lint in travis 2015-10-05 15:51:23 +02:00
Dominik Richter
6a33afc502 enforce trailing commas
similar to golang / js. This makes sure, that each line in a list will
definitely carry a comma at the end of it. Benefit: stop thinking about
when to put it and when not; just always put it at every line in a list.

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-09-22 02:15:42 +02:00
Christoph Hartmann
8c039dfc27 update ruleset 2015-09-05 16:03:57 +02:00
Christoph Hartmann
99d4280a22 add robucop config 2015-09-04 10:00:02 +02:00