<html devsite>
<head>
  <meta name="project_path" value="/_project.yaml">
  <meta name="book_path" value="/versions/6.5.0/_book.yaml">
</head>
<body>
<h1 class="page-title">Configuration Fragments</h1>

Configuration fragments give rules access to language-specific parts of <a href="configuration.html">configuration</a>. <p>Rule implementations can get them using <code><a href="ctx.html#fragments">ctx.fragments</a>.<i>[fragment name]</i></code>

<ul>

<li><a href="/versions/6.5.0/rules/lib/apple">apple</a></li>

<li><a href="/versions/6.5.0/rules/lib/coverage">coverage</a></li>

<li><a href="/versions/6.5.0/rules/lib/cpp">cpp</a></li>

<li><a href="/versions/6.5.0/rules/lib/go">go</a></li>

<li><a href="/versions/6.5.0/rules/lib/j2objc">j2objc</a></li>

<li><a href="/versions/6.5.0/rules/lib/java">java</a></li>

<li><a href="/versions/6.5.0/rules/lib/objc">objc</a></li>

<li><a href="/versions/6.5.0/rules/lib/platform">platform</a></li>

<li><a href="/versions/6.5.0/rules/lib/proto">proto</a></li>

<li><a href="/versions/6.5.0/rules/lib/py">py</a></li>

<li><a href="/versions/6.5.0/rules/lib/swift">swift</a></li>
</ul>
</body>
</html>
