Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/scripts/anti-detect-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ show_status() {
# Profiles
local profile_count=0
for dir in "$PROFILES_DIR"/{persistent,clean,warmup}/*/; do
[[ -d "$dir" ]] && [[ "$(basename "$dir")" != "default" ]] && ((profile_count++)) || true
[[ -d "$dir" ]] && [[ "$(basename "$dir")" != "default" ]] && ((profile_count++)) || true || true
done
echo -e " Profiles: ${GREEN}$profile_count${NC} configured"

Expand Down
6 changes: 3 additions & 3 deletions .agents/scripts/codacy-cli-chunked.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ run_quick_analysis() {
# Count tools
for tool in $fast_tools; do
if get_configured_tools | grep -q "^$tool$"; then
((total_tools++))
((total_tools++)) || true
fi
done

Expand All @@ -205,7 +205,7 @@ run_quick_analysis() {

for tool in $fast_tools; do
if get_configured_tools | grep -q "^$tool$"; then
((completed_tools++))
((completed_tools++)) || true
print_progress $completed_tools $total_tools "$tool"

print_info "Running: $tool"
Expand Down Expand Up @@ -350,7 +350,7 @@ run_chunked_analysis() {

# Update progress
completed_tools=$chunk_end
((chunk_num++))
((chunk_num++)) || true

# Brief pause between chunks
if [[ $chunk_end -lt ${#tool_array[@]} ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .agents/scripts/crawl4ai-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ example_batch_processing() {
print_warning "Failed to process: $url"
fi

((i++))
((i++)) || true
sleep 1 # Rate limiting
done

Expand Down Expand Up @@ -263,7 +263,7 @@ example_captcha_demo() {
print_warning "CAPTCHA demo $i failed - this may be due to site changes or API limits"
fi

((i++))
((i++)) || true

# Add delay between requests to respect rate limits
if [[ $i -le ${#demo_configs[@]} ]]; then
Expand Down
58 changes: 29 additions & 29 deletions .agents/scripts/linter-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,41 +149,41 @@ install_python_linters() {
print_info "Installing pycodestyle..."
if pip install pycodestyle &>/dev/null; then
print_success "pycodestyle installed"
((success++))
((success++)) || true
else
print_error "Failed to install pycodestyle"
fi
((total++))
((total++)) || true

# Pylint (comprehensive Python linter)
print_info "Installing Pylint..."
if pip install pylint &>/dev/null; then
print_success "Pylint installed"
((success++))
((success++)) || true
else
print_error "Failed to install Pylint"
fi
((total++))
((total++)) || true

# Bandit (security linter)
print_info "Installing Bandit..."
if pip install bandit &>/dev/null; then
print_success "Bandit installed"
((success++))
((success++)) || true
else
print_error "Failed to install Bandit"
fi
((total++))
((total++)) || true

# Ruff (fast Python linter)
print_info "Installing Ruff..."
if pip install ruff &>/dev/null; then
print_success "Ruff installed"
((success++))
((success++)) || true
else
print_error "Failed to install Ruff"
fi
((total++))
((total++)) || true

print_info "Python linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -200,21 +200,21 @@ install_javascript_linters() {
print_info "Installing ESLint..."
if install_npm_global eslint; then
print_success "ESLint installed"
((success++))
((success++)) || true
else
print_error "Failed to install ESLint"
fi
((total++))
((total++)) || true

# TypeScript ESLint parser and plugin
print_info "Installing TypeScript ESLint support..."
if install_npm_global @typescript-eslint/parser @typescript-eslint/eslint-plugin; then
print_success "TypeScript ESLint support installed"
((success++))
((success++)) || true
else
print_error "Failed to install TypeScript ESLint support"
fi
((total++))
((total++)) || true

print_info "JavaScript/TypeScript linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -231,11 +231,11 @@ install_css_linters() {
print_info "Installing Stylelint..."
if install_npm_global stylelint stylelint-config-standard; then
print_success "Stylelint installed"
((success++))
((success++)) || true
else
print_error "Failed to install Stylelint"
fi
((total++))
((total++)) || true

print_info "CSS linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -252,17 +252,17 @@ install_shell_linters() {
print_info "Installing ShellCheck..."
if command -v shellcheck &>/dev/null; then
print_success "ShellCheck already installed"
((success++))
((success++)) || true
elif brew install shellcheck &>/dev/null; then
print_success "ShellCheck installed via Homebrew"
((success++))
((success++)) || true
elif apt-get install -y shellcheck &>/dev/null; then
print_success "ShellCheck installed via apt"
((success++))
((success++)) || true
else
print_error "Failed to install ShellCheck"
fi
((total++))
((total++)) || true

print_info "Shell linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -279,14 +279,14 @@ install_docker_linters() {
print_info "Installing Hadolint..."
if command -v hadolint &>/dev/null; then
print_success "Hadolint already installed"
((success++))
((success++)) || true
elif brew install hadolint &>/dev/null; then
print_success "Hadolint installed via Homebrew"
((success++))
((success++)) || true
else
print_error "Failed to install Hadolint"
fi
((total++))
((total++)) || true

print_info "Docker linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -303,11 +303,11 @@ install_yaml_linters() {
print_info "Installing yamllint..."
if pip install yamllint &>/dev/null; then
print_success "yamllint installed"
((success++))
((success++)) || true
else
print_error "Failed to install yamllint"
fi
((total++))
((total++)) || true

print_info "YAML linters: $success/$total installed successfully"
return $((total - success))
Expand All @@ -324,27 +324,27 @@ install_security_linters() {
print_info "Installing Trivy..."
if command -v trivy &>/dev/null; then
print_success "Trivy already installed"
((success++))
((success++)) || true
elif brew install trivy &>/dev/null; then
print_success "Trivy installed via Homebrew"
((success++))
((success++)) || true
else
print_error "Failed to install Trivy"
fi
((total++))
((total++)) || true

# Secretlint (secret detection)
print_info "Installing Secretlint..."
if command -v secretlint &>/dev/null; then
print_success "Secretlint already installed"
((success++))
((success++)) || true
elif install_npm_global secretlint @secretlint/secretlint-rule-preset-recommend; then
print_success "Secretlint installed"
((success++))
((success++)) || true
else
print_error "Failed to install Secretlint"
fi
((total++))
((total++)) || true

print_info "Security linters: $success/$total installed successfully"
return $((total - success))
Expand Down
2 changes: 1 addition & 1 deletion .agents/scripts/localhost-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ find_available_port() {
echo "$port"
return 0
fi
((port++))
((port++)) || true
done

print_error "No available ports found in range $start_port-$PORT_RANGE_END"
Expand Down
4 changes: 2 additions & 2 deletions .agents/scripts/markdown-formatter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ process_directory() {

# Find all markdown files
while IFS= read -r -d '' file; do
((total_files++))
((total_files++)) || true
if fix_markdown_file "$file"; then
((changed_files++))
((changed_files++)) || true
fi
done < <(find "$dir" -name "*.md" -type f -print0)

Expand Down
Loading