Skip to content

Commit cc71dea

Browse files
committed
Hitting bottom is not a weekend retreat. It's not a goddamn seminar. Stop trying to control everything, and just let go. Let go! - Tyler Durden
Co-authored-by: aria danesh <arya717375@gmail.com> Co-authored-by: arman danesh <armandaneshwork@gmail.com>
1 parent de87bb8 commit cc71dea

7 files changed

Lines changed: 159 additions & 80 deletions

File tree

docs/ci.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

docs/configuration.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

docs/contact.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

docs/contributing.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

docs/index.html

Lines changed: 159 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,175 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<title>Home — Dead Code Detector</title>
7-
<meta name="description" content="Dead Code Detector — Gradle plugin to find unused classes, resources and dependencies.">
8-
<meta name="keywords" content="Aria Danesh, aria danesh, Aria danesh, aria Danesh,arya danesh,Arya danesh,Arya Danesh,dead code, gradle plugin, kotlin, java, unused dependencies, aria danesh">
9-
<meta name="author" content="Aria Danesh">
10-
<meta name="geo.region" content="IR" />
11-
<meta name="geo.placename" content="Tehran" />
12-
<meta name="geo.position" content="35.6892;51.3890" />
13-
<meta name="ICBM" content="35.6892, 51.3890" />
14-
<meta name="google-site-verification" content="hRsJBUoU1jA6KEGFSo-OCJGlrczQlXEiOtdEFci4lj4" />
15-
<meta name="robots" content="index,follow" />
16-
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap" rel="stylesheet">
17-
<meta property="og:title" content="Dead Code Detector — Docs" />
18-
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects." />
19-
<meta property="og:type" content="website" />
20-
<meta name="twitter:card" content="summary_large_image" />
21-
<style>
22-
:root{--accent:#7c3aed;--bg:#08101a;--card:#0f1724;--muted:#9aa4b2}
23-
html,body{margin:0;padding:0;font-family:Inter,system-ui,Arial;background:var(--bg);color:#e6eef6}
24-
a{color:var(--accent)}
25-
header{backdrop-filter:blur(6px);position:sticky;top:0;z-index:40;border-bottom:1px solid rgba(255,255,255,0.03);background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(255,255,255,0.00));}
26-
.nav{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 18px}
27-
.brand{display:flex;gap:12px;align-items:center}
28-
.brand h1{font-size:18px;margin:0}
29-
nav a{margin-left:14px;font-size:14px;color:var(--muted)}
30-
.container{max-width:1100px;margin:36px auto;padding:0 18px}
31-
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.04);padding:20px;border-radius:12px}
32-
pre{background:#071226;padding:14px;border-radius:10px;overflow:auto}
33-
footer{max-width:1100px;margin:24px auto;padding:20px;color:var(--muted);text-align:center}
34-
.muted{color:var(--muted)}
35-
.kbd{background:#091827;border-radius:6px;padding:6px 8px;font-family:ui-monospace,monospace}
36-
</style>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Home — Dead Code Detector</title>
7+
<meta name="description"
8+
content="Dead Code Detector — Gradle plugin to find unused classes, resources and dependencies.">
9+
<meta name="keywords"
10+
content="Aria Danesh, aria danesh, Aria danesh, aria Danesh,arya danesh,Arya danesh,Arya Danesh,dead code, gradle plugin, kotlin, java, unused dependencies, aria danesh">
11+
<meta name="author" content="Aria Danesh">
12+
<meta name="geo.region" content="IR"/>
13+
<meta name="geo.placename" content="Tehran"/>
14+
<meta name="geo.position" content="35.6892;51.3890"/>
15+
<meta name="ICBM" content="35.6892, 51.3890"/>
16+
<meta name="google-site-verification" content="hRsJBUoU1jA6KEGFSo-OCJGlrczQlXEiOtdEFci4lj4"/>
17+
<meta name="robots" content="index,follow"/>
18+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap" rel="stylesheet">
19+
<meta property="og:title" content="Dead Code Detector — Docs"/>
20+
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
21+
<meta property="og:type" content="website"/>
22+
<style>
23+
:root {
24+
--accent: #7c3aed;
25+
--bg: #08101a;
26+
--card: #0f1724;
27+
--muted: #9aa4b2
28+
}
29+
30+
html, body {
31+
margin: 0;
32+
padding: 0;
33+
font-family: Inter, system-ui, Arial;
34+
background: var(--bg);
35+
color: #e6eef6
36+
}
37+
38+
a {
39+
color: var(--accent)
40+
}
41+
42+
header {
43+
backdrop-filter: blur(6px);
44+
position: sticky;
45+
top: 0;
46+
z-index: 40;
47+
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
48+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
49+
}
50+
51+
.nav {
52+
max-width: 1100px;
53+
margin: 0 auto;
54+
display: flex;
55+
align-items: center;
56+
justify-content: space-between;
57+
padding: 12px 18px
58+
}
59+
60+
.brand {
61+
display: flex;
62+
gap: 12px;
63+
align-items: center
64+
}
65+
66+
.brand h1 {
67+
font-size: 18px;
68+
margin: 0
69+
}
70+
71+
nav a {
72+
margin-left: 14px;
73+
font-size: 14px;
74+
color: var(--muted)
75+
}
76+
77+
.container {
78+
max-width: 1100px;
79+
margin: 36px auto;
80+
padding: 0 18px
81+
}
82+
83+
.card {
84+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
85+
border: 1px solid rgba(255, 255, 255, 0.04);
86+
padding: 20px;
87+
border-radius: 12px
88+
}
89+
90+
pre {
91+
background: #071226;
92+
padding: 14px;
93+
border-radius: 10px;
94+
overflow: auto
95+
}
96+
97+
footer {
98+
max-width: 1100px;
99+
margin: 24px auto;
100+
padding: 20px;
101+
color: var(--muted);
102+
text-align: center
103+
}
104+
105+
.muted {
106+
color: var(--muted)
107+
}
108+
109+
.kbd {
110+
background: #091827;
111+
border-radius: 6px;
112+
padding: 6px 8px;
113+
font-family: ui-monospace, monospace
114+
}
115+
</style>
37116
</head>
38117
<body>
39-
<header>
118+
<header>
40119
<div class="nav">
41-
<div class="brand">
42-
<svg width="36" height="36" viewBox="0 0 24 24" aria-hidden><rect width="24" height="24" rx="6" fill="#7c3aed"/></svg>
43-
<div>
44-
<h1>Dead Code Detector</h1>
45-
<div class="muted" style="font-size:12px">Gradle plugin • by Aria Danesh</div>
120+
<div class="brand">
121+
<svg width="36" height="36" viewBox="0 0 24 24" aria-hidden>
122+
<rect width="24" height="24" rx="6" fill="#7c3aed"/>
123+
</svg>
124+
<div>
125+
<h1>Dead Code Detector</h1>
126+
<div class="muted" style="font-size:12px">Gradle plugin • by Aria Danesh</div>
127+
</div>
46128
</div>
47-
</div>
48-
<nav>
49-
<a href="index.html">Home</a>
50-
<a href="installation.html">Installation</a>
51-
<a href="configuration.html">Configuration</a>
52-
<a href="report.html">HTML Report</a>
53-
<a href="ci.html">CI</a>
54-
<a href="contributing.html">Contribute</a>
55-
<a href="contact.html">Contact</a>
56-
</nav>
129+
<nav>
130+
<a href="index.html">Home</a>
131+
<a href="installation.html">Installation</a>
132+
<a href="configuration.html">Configuration</a>
133+
<a href="report.html">HTML Report</a>
134+
<a href="ci.html">CI</a>
135+
<a href="contributing.html">Contribute</a>
136+
<a href="contact.html">Contact</a>
137+
</nav>
57138
</div>
58-
</header>
59-
<main class="container">
60-
61-
<div class="card">
62-
<h2 style="margin-top:0">Keep your codebase tidy — but don't rush to delete</h2>
63-
<p class="muted">In my experience, removing unused code is one of those tasks that pays off slowly but significantly. This plugin helps you find candidates safely: classes, top-level Kotlin functions, resources, and even declared Gradle dependencies that appear unused.</p>
64-
<p>It's lightweight, runs on compiled classes (so results reflect the actual bytecode), and can be run locally or in CI. Use it as a guide — not an automatic refactor tool.</p>
65-
<p style="margin-top:12px"><strong>Quick start</strong></p>
66-
<pre><code>plugins {
139+
</header>
140+
<main class="container">
141+
142+
<div class="card">
143+
<h2 style="margin-top:0">Keep your codebase tidy — but don't rush to delete</h2>
144+
<p class="muted">In my experience, removing unused code is one of those tasks that pays off slowly but
145+
significantly. This plugin helps you find candidates safely: classes, top-level Kotlin functions, resources,
146+
and even declared Gradle dependencies that appear unused.</p>
147+
<p>It's lightweight, runs on compiled classes (so results reflect the actual bytecode), and can be run locally
148+
or in CI. Use it as a guide — not an automatic refactor tool.</p>
149+
<p style="margin-top:12px"><strong>Quick start</strong></p>
150+
<pre><code>plugins {
67151
id("io.github.arya458.dead-code-detector") version "0.0.3"
68152
}
69153

70154
# run
71155
./gradlew deadCodeDetector</code></pre>
72-
<p class="muted">Default report: <span class="kbd">build/reports/dead-code-detector/report.txt</span></p>
73-
</div>
74-
75-
<div class="card" style="margin-top:16px">
76-
<h3>What this plugin reports</h3>
77-
<ul>
78-
<li>Dead classes, top-level functions, and top-level fields</li>
79-
<li>Unused resource files in your resources directory (optional)</li>
80-
<li>Unused Gradle dependencies declared in your module</li>
81-
</ul>
82-
<p class="muted">Note: reflection, JNI, or frameworks using runtime binding (DI) may make code look unused. Use <em>keep</em> rules to avoid false positives.</p>
83-
</div>
84-
85-
</main>
86-
<footer>
156+
<p class="muted">Default report: <span class="kbd">build/reports/dead-code-detector/report.txt</span></p>
157+
</div>
158+
159+
<div class="card" style="margin-top:16px">
160+
<h3>What this plugin reports</h3>
161+
<ul>
162+
<li>Dead classes, top-level functions, and top-level fields</li>
163+
<li>Unused resource files in your resources directory (optional)</li>
164+
<li>Unused Gradle dependencies declared in your module</li>
165+
</ul>
166+
<p class="muted">Note: reflection, JNI, or frameworks using runtime binding (DI) may make code look unused. Use
167+
<em>keep</em> rules to avoid false positives.</p>
168+
</div>
169+
170+
</main>
171+
<footer>
87172
© 2025 Aria Danesh — Dead Code Detector · MIT License · Contact: <a href="mailto:aria.danesh.work@gmail.com">aria.danesh.work@gmail.com</a>
88-
</footer>
173+
</footer>
89174
</body>
90175
</html>

docs/installation.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

docs/report.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
<meta property="og:title" content="Dead Code Detector — Docs"/>
1818
<meta property="og:description" content="Find unused code, resources and dependencies in Kotlin/Java projects."/>
1919
<meta property="og:type" content="website"/>
20-
<meta name="twitter:card" content="summary_large_image"/>
2120
<style>
2221
:root {
2322
--accent: #7c3aed;

0 commit comments

Comments
 (0)