generated from trailofbits/dylint-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 879adb9
Showing
63 changed files
with
4,216 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="List of all items in this crate"><title>List of all items in this crate</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_lint" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod sys"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bevy_lint/index.html">bevy_lint</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section><ul class="block"><li><a href="#statics">Statics</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bevy_lint/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><h1>List of all items</h1><h3 id="statics">Statics</h3><ul class="all-items"><li><a href="static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html">BUNDLE_WITH_INCOMPLETE_TRANSFORMS</a></li><li><a href="static.EMPTY_QUERY.html">EMPTY_QUERY</a></li><li><a href="static.INSERT_RESOURCE_WITH_DEFAULT.html">INSERT_RESOURCE_WITH_DEFAULT</a></li><li><a href="static.UNNECESSARY_ADDED.html">UNNECESSARY_ADDED</a></li><li><a href="static.UNNECESSARY_CHANGED.html">UNNECESSARY_CHANGED</a></li><li><a href="static.UNNECESSARY_OPTION.html">UNNECESSARY_OPTION</a></li><li><a href="static.UNNECESSARY_OR.html">UNNECESSARY_OR</a></li><li><a href="static.UNNECESSARY_WITH.html">UNNECESSARY_WITH</a></li></ul></section></div></main></body></html> |
11 changes: 11 additions & 0 deletions
11
bevy_lint/app_lints/static.INSERT_RESOURCE_WITH_DEFAULT.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="refresh" content="0;URL=../../bevy_lint/static.INSERT_RESOURCE_WITH_DEFAULT.html"> | ||
<title>Redirection</title> | ||
</head> | ||
<body> | ||
<p>Redirecting to <a href="../../bevy_lint/static.INSERT_RESOURCE_WITH_DEFAULT.html">../../bevy_lint/static.INSERT_RESOURCE_WITH_DEFAULT.html</a>...</p> | ||
<script>location.replace("../../bevy_lint/static.INSERT_RESOURCE_WITH_DEFAULT.html" + location.search + location.hash);</script> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
bevy_lint/bundle_lints/static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta http-equiv="refresh" content="0;URL=../../bevy_lint/static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html"> | ||
<title>Redirection</title> | ||
</head> | ||
<body> | ||
<p>Redirecting to <a href="../../bevy_lint/static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html">../../bevy_lint/static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html</a>...</p> | ||
<script>location.replace("../../bevy_lint/static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html" + location.search + location.hash);</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `bevy_lint` crate."><title>bevy_lint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_lint" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bevy_lint/index.html">bevy_lint</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section><ul class="block"><li><a href="#statics">Statics</a></li></ul></section></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bevy_lint/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Crate <a class="mod" href="#">bevy_lint</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bevy_lint/lib.rs.html#1-62">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><h2 id="statics" class="section-header">Statics<a href="#statics" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="static" href="static.BUNDLE_WITH_INCOMPLETE_TRANSFORMS.html" title="static bevy_lint::BUNDLE_WITH_INCOMPLETE_TRANSFORMS">BUNDLE_WITH_INCOMPLETE_TRANSFORMS</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Checks for Bundles that contain a <code>Transform</code> or <code>GlobalTransform</code>, but not the other.</div></li><li><div class="item-name"><a class="static" href="static.EMPTY_QUERY.html" title="static bevy_lint::EMPTY_QUERY">EMPTY_QUERY</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects empty Queries that will never return any Data. | ||
Also triggered when a <code>Option</code> is used, that will always return <code>None</code>.</div></li><li><div class="item-name"><a class="static" href="static.INSERT_RESOURCE_WITH_DEFAULT.html" title="static bevy_lint::INSERT_RESOURCE_WITH_DEFAULT">INSERT_RESOURCE_WITH_DEFAULT</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Checks for calls of <code>bevy::app::App::insert_resource</code> or <code>bevy::app::App::insert_non_send_resource</code> | ||
with <code>T::default()</code>.</div></li><li><div class="item-name"><a class="static" href="static.UNNECESSARY_ADDED.html" title="static bevy_lint::UNNECESSARY_ADDED">UNNECESSARY_ADDED</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects unnecessary <code>Added</code> filters in Bevy query parameters.“</div></li><li><div class="item-name"><a class="static" href="static.UNNECESSARY_CHANGED.html" title="static bevy_lint::UNNECESSARY_CHANGED">UNNECESSARY_CHANGED</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects unnecessary <code>Changed</code> filters in Bevy query parameters.“</div></li><li><div class="item-name"><a class="static" href="static.UNNECESSARY_OPTION.html" title="static bevy_lint::UNNECESSARY_OPTION">UNNECESSARY_OPTION</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects unnecessary <code>Option</code> queries in Bevy query parameters.</div></li><li><div class="item-name"><a class="static" href="static.UNNECESSARY_OR.html" title="static bevy_lint::UNNECESSARY_OR">UNNECESSARY_OR</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects unnecessary <code>Or</code> query filters in Bevy query parameters.</div></li><li><div class="item-name"><a class="static" href="static.UNNECESSARY_WITH.html" title="static bevy_lint::UNNECESSARY_WITH">UNNECESSARY_WITH</a></div><div class="desc docblock-short"><strong>What it does:</strong> | ||
Detects unnecessary <code>With</code> query filters in Bevy query parameters.</div></li></ul></section></div></main></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="What it does: Checks for Bundles that contain a `Transform` or `GlobalTransform`, but not the other."><title>BUNDLE_WITH_INCOMPLETE_TRANSFORMS in bevy_lint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_lint" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc static"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bevy_lint/index.html">bevy_lint</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bevy_lint/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Static <a href="index.html">bevy_lint</a>::<wbr><a class="static" href="#">BUNDLE_WITH_INCOMPLETE_TRANSFORMS</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bevy_lint/bundle_lints.rs.html#15-51">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub static BUNDLE_WITH_INCOMPLETE_TRANSFORMS: &Lint</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><strong>What it does:</strong> | ||
Checks for Bundles that contain a <code>Transform</code> or <code>GlobalTransform</code>, but not the other.</p> | ||
<p><strong>Why is this bad?</strong> | ||
When creating a Hierachy of Entitys, Bevy excpects every Entity to have | ||
both a <code>Transform</code> and <code>GlobalTransform</code>.</p> | ||
<p>If this is not the case then the <code>GlobalTransform</code> of Children will not be updated.</p> | ||
<p><strong>Known problems:</strong> None.</p> | ||
<p><strong>Example:</strong></p> | ||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[derive(Bundle)] | ||
</span><span class="kw">struct </span>CustomBundle { | ||
transform: Transform, | ||
}</code></pre></div> | ||
<p>Is better expressed with:</p> | ||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[derive(Bundle)] | ||
</span><span class="kw">struct </span>CustomBundle { | ||
transform: Transform, | ||
global_transform: GlobalTransform, | ||
}</code></pre></div> | ||
</div></details></section></div></main></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="What it does: Detects empty Queries that will never return any Data. Also triggered when a `Option` is used, that will always return `None`."><title>EMPTY_QUERY in bevy_lint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b21aa549bf6d91ff.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="bevy_lint" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (c987ad527 2024-05-01)" data-channel="nightly" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-e32f0c247825364d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-09095024cf37855e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc static"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../bevy_lint/index.html">bevy_lint</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../bevy_lint/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Static <a href="index.html">bevy_lint</a>::<wbr><a class="static" href="#">EMPTY_QUERY</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/bevy_lint/system_lints/query_lints.rs.html#122-158">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub static EMPTY_QUERY: &Lint</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><strong>What it does:</strong> | ||
Detects empty Queries that will never return any Data. | ||
Also triggered when a <code>Option</code> is used, that will always return <code>None</code>.</p> | ||
<p><strong>Why is this bad?</strong> | ||
These Queries will never return any Data, because no Entity will fullfill the Requirements.</p> | ||
<p><strong>Known problems:</strong> None.</p> | ||
<p><strong>Example:</strong></p> | ||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">fn </span>system(query: Query<<span class="kw-2">&</span>A, Without<A>>) {} | ||
</code></pre></div> | ||
<p>Instead do:</p> | ||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">fn </span>system(query: Query<<span class="kw-2">&</span>A>) {} | ||
</code></pre></div> | ||
</div></details></section></div></main></body></html> |
Oops, something went wrong.