foodcritic 13.1.1 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/chef_dsl_metadata/chef_13.4.19.json +0 -212
  4. data/chef_dsl_metadata/chef_13.5.3.json +0 -212
  5. data/chef_dsl_metadata/chef_13.6.0.json +0 -212
  6. data/chef_dsl_metadata/chef_13.7.16.json +0 -212
  7. data/chef_dsl_metadata/{chef_13.3.42.json → chef_13.9.1.json} +189 -48
  8. data/chef_dsl_metadata/{chef_13.1.31.json → chef_14.1.12.json} +8735 -1444
  9. data/chef_dsl_metadata/{chef_13.0.113.json → chef_14.2.0.json} +8763 -1432
  10. data/features/continuous_integration_support.feature +0 -2
  11. data/features/step_definitions/cookbook_steps.rb +0 -26
  12. data/features/support/command_helpers.rb +0 -2
  13. data/lib/foodcritic/api.rb +6 -1
  14. data/lib/foodcritic/linter.rb +1 -1
  15. data/lib/foodcritic/rules/fc048.rb +1 -1
  16. data/lib/foodcritic/rules/fc069.rb +145 -115
  17. data/lib/foodcritic/rules/fc071.rb +1 -1
  18. data/lib/foodcritic/rules/fc078.rb +54 -48
  19. data/lib/foodcritic/rules/fc121.rb +6 -0
  20. data/lib/foodcritic/version.rb +1 -1
  21. data/spec/functional/fc009_spec.rb +6 -6
  22. data/spec/functional/fc040_spec.rb +156 -0
  23. data/spec/functional/fc041_spec.rb +121 -0
  24. data/spec/functional/fc048_spec.rb +67 -0
  25. data/spec/functional/fc121_spec.rb +43 -0
  26. data/spec/regression/expected/aix.txt +4 -0
  27. data/spec/regression/expected/apt.txt +1 -1
  28. data/spec/regression/expected/ark.txt +1 -0
  29. data/spec/regression/expected/boost.txt +1 -0
  30. data/spec/regression/expected/chef-client.txt +4 -4
  31. data/spec/regression/expected/chef-ingredient.txt +1 -0
  32. data/spec/regression/expected/chef_client_updater.txt +1 -0
  33. data/spec/regression/expected/chef_nginx.txt +2 -0
  34. data/spec/regression/expected/dmg.txt +3 -3
  35. data/spec/regression/expected/docker.txt +1 -0
  36. data/spec/regression/expected/erlang.txt +1 -0
  37. data/spec/regression/expected/gecode.txt +2 -0
  38. data/spec/regression/expected/mysql.txt +2 -0
  39. data/spec/regression/expected/passenger_apache2.txt +2 -0
  40. data/spec/regression/expected/php.txt +2 -0
  41. data/spec/regression/expected/tomcat.txt +16 -0
  42. data/spec/regression/expected/transmission.txt +2 -0
  43. data/spec/regression/expected/ufw.txt +1 -0
  44. data/spec/regression/expected/windows.txt +2 -1
  45. data/spec/regression/expected/xml.txt +2 -0
  46. data/spec/unit/linter_spec.rb +1 -1
  47. metadata +11 -11
  48. data/features/040_check_raw_git_usage.feature +0 -43
  49. data/features/041_check_raw_download.feature +0 -34
  50. data/features/048_check_for_shellout.feature +0 -44
  51. data/lib/foodcritic/rules/fc012.rb +0 -8
  52. data/spec/functional/fc012_spec.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b858aa4f622933d71f53374eb8fc6dc128bf64edf373dabe496d479f7e6810a4
4
- data.tar.gz: 157fb6af5a3bbbac77b837a045dcf5479375a0107a907387e58cec6cfd557896
3
+ metadata.gz: 6c8d8788e61de8e4a41fc35bf3ff5358301d95aaa16f2f477a15c468f3dd490e
4
+ data.tar.gz: da4590ab0a0c648ca9bb0fd3101b664e0b7e80f4d3fef8a78fbbd435ce5ac6b4
5
5
  SHA512:
6
- metadata.gz: aa6c67bbace23b89f175be01b8a4f2d070713ee4040749cc2747934f85ee64ce2323366ba8298676209bc9623a047eb47ca030c7d57acb3997d26affad8c7919
7
- data.tar.gz: 14c7e53a8247e861a2e6edbde44cf95b5b60bde02343cd15cfe4e721dd9c8eebe78170b1f0945a551200fe8764ea80c74bd3bb4c10dcf490cb1b10d33a6a3ffd
6
+ metadata.gz: c42491fec8d5ccb5fde42a412ae8144a7f9143ea1174c7ea2e13c05f0402149717e9511a08be3cd1d22a4a8da6729c82f71496dd14aa62b1aea3b2772dce51cc
7
+ data.tar.gz: 287c6017d11d84ea6aa76d07870038a42aa73fd74fe77f06972f84216ee9b048fdc054abe65370961af2b1ad4b7adf8e0f6f59238a3e52471c4552c784119109
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Foodcritic Changelog:
2
2
 
3
+ ## [14.0.0](https://github.com/Foodcritic/foodcritic/tree/v14.0.0) (2018-06-28)
4
+
5
+ - Removed Chef 13.0, 13.1, and 13.3 metadata.
6
+ - Added Chef 13.9, 14.1, and 14.2 metadata and made 14.2 the new default, which adds property checking for all new Chef 14 resources to Foodcritic.
7
+ - Renamed FC048 from "Prefer Mixlib::ShellOut" to "Prefer shell_out helper method to shelling out with Ruby" since Chef includes a helpful shell_out helper that is the preferred way to shell out in resources or libraries.
8
+ - Removed FC012, which looked for legacy README.rdoc files. These haven't existed since the very early days of Chef and our existing check for README.MD files will catch any cookbooks still missing the proper format.
9
+ - Added the opensource tag to FC071: Missing LICENSE file. This lets you easily skip this by excluding any rules tagged with opensource.
10
+ - Added a new rule FC121: Cookbook depends on cookbook made obsolete by Chef 14\. This rule detects cookbook which depend on build-essential, dmg, chef_handler, chef_hostname, mac_os_x, swap, or sysctl cookbooks. The resources from these cookbooks now ship in Chef 14 and depending on the cookbooks is no longer necessary. Note removing these dependencies does increase the minimum required chef-client for
11
+ - The non-existent resource UnresolvedSubscribes has been removed from the metadata files slimming Foodcritic's install size by 1500 lines.
12
+ - Updated the list of SPDX licenses in FC069 and FC078 to the current list.
13
+
3
14
  ## [13.1.1](https://github.com/Foodcritic/foodcritic/tree/v13.1.1) (2018-04-12)
4
15
 
5
16
  - Fixed an error in the detection of attributes.rb files when using root alias functionality
@@ -1216,9 +1216,6 @@
1216
1216
  "nothing",
1217
1217
  "rollback"
1218
1218
  ],
1219
- "unresolved_subscribes": [
1220
- "nothing"
1221
- ],
1222
1219
  "user": [
1223
1220
  "create",
1224
1221
  "lock",
@@ -17515,215 +17512,6 @@
17515
17512
  "wow64_architecture_override_required?",
17516
17513
  "wow64_directory"
17517
17514
  ],
17518
- "unresolved_subscribes": [
17519
- "!",
17520
- "!=",
17521
- "!~",
17522
- "<=>",
17523
- "==",
17524
- "===",
17525
- "=~",
17526
- "__id__",
17527
- "__send__",
17528
- "a_to_s",
17529
- "action",
17530
- "action=",
17531
- "after_created",
17532
- "allowed_actions",
17533
- "allowed_actions=",
17534
- "as_json",
17535
- "assert_valid_windows_architecture!",
17536
- "before_notifications",
17537
- "class",
17538
- "clean_array",
17539
- "clone",
17540
- "constantize",
17541
- "convert_to_class_name",
17542
- "convert_to_snake_case",
17543
- "cookbook_name",
17544
- "cookbook_name=",
17545
- "cookbook_version",
17546
- "current_value",
17547
- "current_value_does_not_exist!",
17548
- "custom_exception_message",
17549
- "customize_exception",
17550
- "data_bag",
17551
- "data_bag_item",
17552
- "dclone",
17553
- "declared_key",
17554
- "declared_type",
17555
- "declared_type=",
17556
- "default_guard_interpreter",
17557
- "define_singleton_method",
17558
- "defined_at",
17559
- "delayed_action",
17560
- "delayed_notifications",
17561
- "deny_rights",
17562
- "deprecated_attr",
17563
- "deprecated_attr_reader",
17564
- "deprecated_attr_writer",
17565
- "deprecated_ivar",
17566
- "disable_wow64_file_redirection",
17567
- "display",
17568
- "docker?",
17569
- "dup",
17570
- "elapsed_time",
17571
- "enclosing_provider",
17572
- "enclosing_provider=",
17573
- "encrypted?",
17574
- "enforce_path_sanity",
17575
- "enum_for",
17576
- "epic_fail",
17577
- "eql?",
17578
- "equal?",
17579
- "events",
17580
- "extend",
17581
- "ffi_yajl",
17582
- "filename_to_qualified_string",
17583
- "forced_32bit_override_required?",
17584
- "freeze",
17585
- "frozen?",
17586
- "gem",
17587
- "guard_interpreter",
17588
- "hash",
17589
- "identity",
17590
- "ignore_failure",
17591
- "ignore_failure=",
17592
- "immediate_notifications",
17593
- "inherits",
17594
- "inspect",
17595
- "instance_eval",
17596
- "instance_exec",
17597
- "instance_of?",
17598
- "instance_variable_defined?",
17599
- "instance_variable_get",
17600
- "instance_variable_set",
17601
- "instance_variables",
17602
- "is_a?",
17603
- "is_i386_process_on_x86_64_windows?",
17604
- "itself",
17605
- "kind_of?",
17606
- "lazy",
17607
- "load_from",
17608
- "lookup_provider_constant",
17609
- "method",
17610
- "method_missing",
17611
- "methods",
17612
- "name",
17613
- "name=",
17614
- "nil?",
17615
- "node",
17616
- "node_supports_windows_architecture?",
17617
- "node_windows_architecture",
17618
- "normalize_snake_case_name",
17619
- "not_if",
17620
- "notifies",
17621
- "notifies_before",
17622
- "notifies_delayed",
17623
- "notifies_immediately",
17624
- "object_id",
17625
- "only_if",
17626
- "params",
17627
- "params=",
17628
- "platform?",
17629
- "platform_family?",
17630
- "powershell_out",
17631
- "powershell_out!",
17632
- "pretty_inspect",
17633
- "pretty_print",
17634
- "pretty_print_cycle",
17635
- "pretty_print_inspect",
17636
- "pretty_print_instance_variables",
17637
- "private_methods",
17638
- "property_is_set?",
17639
- "protected_methods",
17640
- "provider",
17641
- "provider=",
17642
- "provider_for_action",
17643
- "psych_to_yaml",
17644
- "public_method",
17645
- "public_methods",
17646
- "public_send",
17647
- "reboot_pending?",
17648
- "recipe_name",
17649
- "recipe_name=",
17650
- "registry_data_exists?",
17651
- "registry_get_subkeys",
17652
- "registry_get_values",
17653
- "registry_has_subkeys?",
17654
- "registry_key_exists?",
17655
- "registry_value_exists?",
17656
- "remove_instance_variable",
17657
- "reset_property",
17658
- "resolve_notification_references",
17659
- "resource_initializing",
17660
- "resource_initializing=",
17661
- "resource_name",
17662
- "resources",
17663
- "respond_to?",
17664
- "restore_wow64_file_redirection",
17665
- "retries",
17666
- "retries=",
17667
- "retry_delay",
17668
- "retry_delay=",
17669
- "rights",
17670
- "run_action",
17671
- "run_context",
17672
- "run_context=",
17673
- "sanitized_path",
17674
- "search",
17675
- "send",
17676
- "sensitive",
17677
- "sensitive=",
17678
- "set_or_return",
17679
- "shell_out",
17680
- "shell_out!",
17681
- "shell_out_compact",
17682
- "shell_out_compact!",
17683
- "shell_out_compact_timeout",
17684
- "shell_out_compact_timeout!",
17685
- "shell_out_with_systems_locale",
17686
- "shell_out_with_systems_locale!",
17687
- "should_skip?",
17688
- "singleton_class",
17689
- "singleton_method",
17690
- "singleton_methods",
17691
- "snake_case_basename",
17692
- "source_line",
17693
- "source_line=",
17694
- "source_line_file",
17695
- "source_line_number",
17696
- "state_for_resource_reporter",
17697
- "subscribes",
17698
- "taint",
17699
- "tainted?",
17700
- "tap",
17701
- "to_enum",
17702
- "to_hash",
17703
- "to_json",
17704
- "to_s",
17705
- "to_text",
17706
- "to_yaml",
17707
- "to_yaml_properties",
17708
- "trust",
17709
- "untaint",
17710
- "untrust",
17711
- "untrusted?",
17712
- "updated",
17713
- "updated?",
17714
- "updated_by_last_action",
17715
- "updated_by_last_action?",
17716
- "valid_windows_architecture?",
17717
- "validate",
17718
- "validate_action",
17719
- "validate_resource_spec!",
17720
- "value_for_platform",
17721
- "value_for_platform_family",
17722
- "value_to_text",
17723
- "with_os_architecture",
17724
- "wow64_architecture_override_required?",
17725
- "wow64_directory"
17726
- ],
17727
17515
  "user": [
17728
17516
  "!",
17729
17517
  "!=",
@@ -1216,9 +1216,6 @@
1216
1216
  "nothing",
1217
1217
  "rollback"
1218
1218
  ],
1219
- "unresolved_subscribes": [
1220
- "nothing"
1221
- ],
1222
1219
  "user": [
1223
1220
  "create",
1224
1221
  "lock",
@@ -17516,215 +17513,6 @@
17516
17513
  "wow64_architecture_override_required?",
17517
17514
  "wow64_directory"
17518
17515
  ],
17519
- "unresolved_subscribes": [
17520
- "!",
17521
- "!=",
17522
- "!~",
17523
- "<=>",
17524
- "==",
17525
- "===",
17526
- "=~",
17527
- "__id__",
17528
- "__send__",
17529
- "a_to_s",
17530
- "action",
17531
- "action=",
17532
- "after_created",
17533
- "allowed_actions",
17534
- "allowed_actions=",
17535
- "as_json",
17536
- "assert_valid_windows_architecture!",
17537
- "before_notifications",
17538
- "class",
17539
- "clean_array",
17540
- "clone",
17541
- "constantize",
17542
- "convert_to_class_name",
17543
- "convert_to_snake_case",
17544
- "cookbook_name",
17545
- "cookbook_name=",
17546
- "cookbook_version",
17547
- "current_value",
17548
- "current_value_does_not_exist!",
17549
- "custom_exception_message",
17550
- "customize_exception",
17551
- "data_bag",
17552
- "data_bag_item",
17553
- "dclone",
17554
- "declared_key",
17555
- "declared_type",
17556
- "declared_type=",
17557
- "default_guard_interpreter",
17558
- "define_singleton_method",
17559
- "defined_at",
17560
- "delayed_action",
17561
- "delayed_notifications",
17562
- "deny_rights",
17563
- "deprecated_attr",
17564
- "deprecated_attr_reader",
17565
- "deprecated_attr_writer",
17566
- "deprecated_ivar",
17567
- "disable_wow64_file_redirection",
17568
- "display",
17569
- "docker?",
17570
- "dup",
17571
- "elapsed_time",
17572
- "enclosing_provider",
17573
- "enclosing_provider=",
17574
- "encrypted?",
17575
- "enforce_path_sanity",
17576
- "enum_for",
17577
- "epic_fail",
17578
- "eql?",
17579
- "equal?",
17580
- "events",
17581
- "extend",
17582
- "ffi_yajl",
17583
- "filename_to_qualified_string",
17584
- "forced_32bit_override_required?",
17585
- "freeze",
17586
- "frozen?",
17587
- "gem",
17588
- "guard_interpreter",
17589
- "hash",
17590
- "identity",
17591
- "ignore_failure",
17592
- "ignore_failure=",
17593
- "immediate_notifications",
17594
- "inherits",
17595
- "inspect",
17596
- "instance_eval",
17597
- "instance_exec",
17598
- "instance_of?",
17599
- "instance_variable_defined?",
17600
- "instance_variable_get",
17601
- "instance_variable_set",
17602
- "instance_variables",
17603
- "is_a?",
17604
- "is_i386_process_on_x86_64_windows?",
17605
- "itself",
17606
- "kind_of?",
17607
- "lazy",
17608
- "load_from",
17609
- "lookup_provider_constant",
17610
- "method",
17611
- "method_missing",
17612
- "methods",
17613
- "name",
17614
- "name=",
17615
- "nil?",
17616
- "node",
17617
- "node_supports_windows_architecture?",
17618
- "node_windows_architecture",
17619
- "normalize_snake_case_name",
17620
- "not_if",
17621
- "notifies",
17622
- "notifies_before",
17623
- "notifies_delayed",
17624
- "notifies_immediately",
17625
- "object_id",
17626
- "only_if",
17627
- "params",
17628
- "params=",
17629
- "platform?",
17630
- "platform_family?",
17631
- "powershell_out",
17632
- "powershell_out!",
17633
- "pretty_inspect",
17634
- "pretty_print",
17635
- "pretty_print_cycle",
17636
- "pretty_print_inspect",
17637
- "pretty_print_instance_variables",
17638
- "private_methods",
17639
- "property_is_set?",
17640
- "protected_methods",
17641
- "provider",
17642
- "provider=",
17643
- "provider_for_action",
17644
- "psych_to_yaml",
17645
- "public_method",
17646
- "public_methods",
17647
- "public_send",
17648
- "reboot_pending?",
17649
- "recipe_name",
17650
- "recipe_name=",
17651
- "registry_data_exists?",
17652
- "registry_get_subkeys",
17653
- "registry_get_values",
17654
- "registry_has_subkeys?",
17655
- "registry_key_exists?",
17656
- "registry_value_exists?",
17657
- "remove_instance_variable",
17658
- "reset_property",
17659
- "resolve_notification_references",
17660
- "resource_initializing",
17661
- "resource_initializing=",
17662
- "resource_name",
17663
- "resources",
17664
- "respond_to?",
17665
- "restore_wow64_file_redirection",
17666
- "retries",
17667
- "retries=",
17668
- "retry_delay",
17669
- "retry_delay=",
17670
- "rights",
17671
- "run_action",
17672
- "run_context",
17673
- "run_context=",
17674
- "sanitized_path",
17675
- "search",
17676
- "send",
17677
- "sensitive",
17678
- "sensitive=",
17679
- "set_or_return",
17680
- "shell_out",
17681
- "shell_out!",
17682
- "shell_out_compact",
17683
- "shell_out_compact!",
17684
- "shell_out_compact_timeout",
17685
- "shell_out_compact_timeout!",
17686
- "shell_out_with_systems_locale",
17687
- "shell_out_with_systems_locale!",
17688
- "should_skip?",
17689
- "singleton_class",
17690
- "singleton_method",
17691
- "singleton_methods",
17692
- "snake_case_basename",
17693
- "source_line",
17694
- "source_line=",
17695
- "source_line_file",
17696
- "source_line_number",
17697
- "state_for_resource_reporter",
17698
- "subscribes",
17699
- "taint",
17700
- "tainted?",
17701
- "tap",
17702
- "to_enum",
17703
- "to_hash",
17704
- "to_json",
17705
- "to_s",
17706
- "to_text",
17707
- "to_yaml",
17708
- "to_yaml_properties",
17709
- "trust",
17710
- "untaint",
17711
- "untrust",
17712
- "untrusted?",
17713
- "updated",
17714
- "updated?",
17715
- "updated_by_last_action",
17716
- "updated_by_last_action?",
17717
- "valid_windows_architecture?",
17718
- "validate",
17719
- "validate_action",
17720
- "validate_resource_spec!",
17721
- "value_for_platform",
17722
- "value_for_platform_family",
17723
- "value_to_text",
17724
- "with_os_architecture",
17725
- "wow64_architecture_override_required?",
17726
- "wow64_directory"
17727
- ],
17728
17516
  "user": [
17729
17517
  "!",
17730
17518
  "!=",