Skip to content

Commit e56bb7c

Browse files
committed
chore: bump version to 0.0.2
1 parent 24a9e53 commit e56bb7c

7 files changed

Lines changed: 1077 additions & 8 deletions

File tree

.claude/settings.local.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(find:*)",
5+
"Bash(tree:*)",
6+
"Bash(cat:*)",
7+
"Bash(grep:*)",
8+
"Bash(wc:*)",
9+
"Bash(ls:*)"
10+
]
11+
}
12+
}

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resolver = "2"
33
members = ["crates/*"]
44

55
[workspace.package]
6-
version = "0.0.1"
6+
version = "0.0.2"
77
edition = "2021"
88
rust-version = "1.85"
99
license = "MIT"

crates/codelens-core/src/analyzer/file.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl FileAnalyzer {
251251
if !self.is_in_string(before, lang) {
252252
let after = &line[pos + 3..];
253253
// Check if it closes on the same line
254-
if after.find(pattern).is_none() {
254+
if !after.contains(pattern) {
255255
// Docstring: no assignment before the triple quotes
256256
let is_docstring = !before.contains('=');
257257
return Some(StringDelimiter {
@@ -341,7 +341,7 @@ impl FileAnalyzer {
341341

342342
// Check if it closes on the same line
343343
let after_quote = &line[i + 1..];
344-
if after_quote.find(&end_pattern).is_none() {
344+
if !after_quote.contains(&end_pattern) {
345345
return Some(StringDelimiter {
346346
end_pattern,
347347
is_raw: true,
@@ -534,8 +534,14 @@ mod tests {
534534
let content = "let s = r#\"hello\n// not a comment\n/* also not */\nworld\"#;\n";
535535
let stats = analyzer.count_lines(content, &lang);
536536
assert_eq!(stats.total, 4);
537-
assert_eq!(stats.code, 4, "All lines should be code (inside raw string)");
538-
assert_eq!(stats.comment, 0, "No comments - everything is inside raw string");
537+
assert_eq!(
538+
stats.code, 4,
539+
"All lines should be code (inside raw string)"
540+
);
541+
assert_eq!(
542+
stats.comment, 0,
543+
"No comments - everything is inside raw string"
544+
);
539545
assert_eq!(stats.blank, 0);
540546
}
541547
}

crates/codelens/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name = "codelens"
1818
path = "src/main.rs"
1919

2020
[dependencies]
21-
codelens-core = { version = "0.0.1", path = "../codelens-core" }
21+
codelens-core = { version = "0.0.2", path = "../codelens-core" }
2222

2323
# CLI
2424
clap.workspace = true

0 commit comments

Comments
 (0)