lib/foodcritic/rules/fc028.rb
rule "FC028", "Use platform? and platform_family? not node.platform? and node.platform_family?" do tags %w{style} recipe do |ast| ast.xpath(%q{//*[self::call | self::command_call] [(var_ref|vcall)/ident/@value='node'] [ident/@value="platform?" or ident/@value="platform_family?"]}) end end
Source Files
- lib/foodcritic.rb
- lib/foodcritic/api.rb
- lib/foodcritic/ast.rb
- lib/foodcritic/chef.rb
- lib/foodcritic/command_line.rb
- lib/foodcritic/domain.rb
- lib/foodcritic/dsl.rb
- lib/foodcritic/error_checker.rb
- lib/foodcritic/gerkin/tag.rb
- lib/foodcritic/gerkin/tag_expression.rb
- lib/foodcritic/linter.rb
- lib/foodcritic/notifications.rb
- lib/foodcritic/output.rb
- lib/foodcritic/rake_task.rb
- lib/foodcritic/rules/fc001.rb
- lib/foodcritic/rules/fc002.rb
- lib/foodcritic/rules/fc004.rb
- lib/foodcritic/rules/fc005.rb
- lib/foodcritic/rules/fc006.rb
- lib/foodcritic/rules/fc007.rb
- lib/foodcritic/rules/fc008.rb
- lib/foodcritic/rules/fc009.rb
- lib/foodcritic/rules/fc010.rb
- lib/foodcritic/rules/fc011.rb
- lib/foodcritic/rules/fc013.rb
- lib/foodcritic/rules/fc014.rb
- lib/foodcritic/rules/fc015.rb
- lib/foodcritic/rules/fc016.rb
- lib/foodcritic/rules/fc018.rb
- lib/foodcritic/rules/fc019.rb
- lib/foodcritic/rules/fc021.rb
- lib/foodcritic/rules/fc022.rb
- lib/foodcritic/rules/fc024.rb
- lib/foodcritic/rules/fc025.rb
- lib/foodcritic/rules/fc026.rb
- lib/foodcritic/rules/fc027.rb
- lib/foodcritic/rules/fc028.rb
- lib/foodcritic/rules/fc029.rb
- lib/foodcritic/rules/fc030.rb
- lib/foodcritic/rules/fc031.rb
- lib/foodcritic/rules/fc032.rb
- lib/foodcritic/rules/fc033.rb
- lib/foodcritic/rules/fc034.rb
- lib/foodcritic/rules/fc037.rb
- lib/foodcritic/rules/fc038.rb
- lib/foodcritic/rules/fc039.rb
- lib/foodcritic/rules/fc040.rb
- lib/foodcritic/rules/fc041.rb
- lib/foodcritic/rules/fc042.rb
- lib/foodcritic/rules/fc043.rb
- lib/foodcritic/rules/fc044.rb
- lib/foodcritic/rules/fc045.rb
- lib/foodcritic/rules/fc046.rb
- lib/foodcritic/rules/fc047.rb
- lib/foodcritic/rules/fc048.rb
- lib/foodcritic/rules/fc049.rb
- lib/foodcritic/rules/fc050.rb
- lib/foodcritic/rules/fc051.rb
- lib/foodcritic/rules/fc052.rb
- lib/foodcritic/rules/fc053.rb
- lib/foodcritic/rules/fc055.rb
- lib/foodcritic/rules/fc056.rb
- lib/foodcritic/rules/fc058.rb
- lib/foodcritic/rules/fc060.rb
- lib/foodcritic/rules/fc061.rb
- lib/foodcritic/rules/fc062.rb
- lib/foodcritic/rules/fc063.rb
- lib/foodcritic/rules/fc064.rb
- lib/foodcritic/rules/fc065.rb
- lib/foodcritic/rules/fc066.rb
- lib/foodcritic/rules/fc067.rb
- lib/foodcritic/rules/fc068.rb
- lib/foodcritic/rules/fc069.rb
- lib/foodcritic/rules/fc070.rb
- lib/foodcritic/rules/fc071.rb
- lib/foodcritic/rules/fc072.rb
- lib/foodcritic/rules/fc073.rb
- lib/foodcritic/rules/fc074.rb
- lib/foodcritic/rules/fc075.rb
- lib/foodcritic/rules/fc076.rb
- lib/foodcritic/rules/fc077.rb
- lib/foodcritic/rules/fc078.rb
- lib/foodcritic/rules/fc079.rb
- lib/foodcritic/rules/fc080.rb
- lib/foodcritic/rules/fc081.rb
- lib/foodcritic/rules/fc082.rb
- lib/foodcritic/rules/fc083.rb
- lib/foodcritic/rules/fc084.rb
- lib/foodcritic/rules/fc085.rb
- lib/foodcritic/rules/fc086.rb
- lib/foodcritic/rules/fc087.rb
- lib/foodcritic/rules/fc088.rb
- lib/foodcritic/rules/fc089.rb
- lib/foodcritic/rules/fc091.rb
- lib/foodcritic/rules/fc092.rb
- lib/foodcritic/rules/fc093.rb
- lib/foodcritic/rules/fc094.rb
- lib/foodcritic/rules/fc095.rb
- lib/foodcritic/rules/fc096.rb
- lib/foodcritic/rules/fc097.rb
- lib/foodcritic/rules/fc098.rb
- lib/foodcritic/rules/fc099.rb
- lib/foodcritic/rules/fc100.rb
- lib/foodcritic/rules/fc101.rb
- lib/foodcritic/rules/fc102.rb
- lib/foodcritic/rules/fc103.rb
- lib/foodcritic/rules/fc104.rb
- lib/foodcritic/rules/fc105.rb
- lib/foodcritic/rules/fc106.rb
- lib/foodcritic/rules/fc107.rb
- lib/foodcritic/rules/fc108.rb
- lib/foodcritic/rules/fc109.rb
- lib/foodcritic/rules/fc110.rb
- lib/foodcritic/rules/fc111.rb
- lib/foodcritic/rules/fc112.rb
- lib/foodcritic/rules/fc113.rb
- lib/foodcritic/rules/fc114.rb
- lib/foodcritic/rules/fc115.rb
- lib/foodcritic/rules/fc116.rb
- lib/foodcritic/rules/fc117.rb
- lib/foodcritic/rules/fc118.rb
- lib/foodcritic/rules/fc119.rb
- lib/foodcritic/rules/fc120.rb
- lib/foodcritic/rules/fc121.rb
- lib/foodcritic/rules/fc122.rb
- lib/foodcritic/rules/fc123.rb
- lib/foodcritic/template.rb
- lib/foodcritic/version.rb
- lib/foodcritic/xml.rb