Compare commits

..

4 Commits

Author SHA1 Message Date
Srikanth Patchava
5c3fe7398c test: add pytest tests for template validator
Comprehensive test suite covering glob validation, trailing
whitespace detection, duplicate and conflict detection,
coverage analysis, and report formatting.

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
2026-04-25 01:40:09 -07:00
Srikanth Patchava
be26f4f6a9 fix: add script to strip trailing whitespace from templates
Trailing whitespace in .gitignore patterns can cause unexpected
behavior. This script detects and removes trailing whitespace
from template files with dry-run support.

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
2026-04-25 01:40:05 -07:00
Srikanth Patchava
1dfb9ef16f feat: add .gitignore template validator script
Add a comprehensive template validation tool that checks for:
- Valid glob pattern syntax
- Duplicate pattern detection
- Conflicting include/exclude rules
- Coverage analysis with suggestions
- CLI interface with argparse
- Detailed reporting (errors, warnings, suggestions)
- Support for processing all templates in the repo

Signed-off-by: Srikanth Patchava <spatchava@meta.com>
2026-04-25 01:40:02 -07:00
Srikanth Patchava
6b3c1ded6a
feat: add Zephyr RTOS .gitignore template
Add gitignore template for Zephyr RTOS projects covering:
- Build artifacts and twister output
- Generated config/devicetree files
- West workspace metadata
- Python virtual environments
2026-04-24 19:11:27 -07:00
5 changed files with 1 additions and 169 deletions

View File

@ -23,6 +23,7 @@
*.dll
*.so.*
# Fortran module files
*.mod
*.smod

View File

@ -1,68 +0,0 @@
# AI agents and assistants
#
# Some common agent instruction and project configuration files are listed
# below as commented-out examples. They are often intentionally committed and
# shared with a team, so only uncomment them if they are local-only in your
# project.
# GEMINI.md
# WARP.md
# CRUSH.md
# QWEN.md
# OpenAI Codex
# AGENTS.md
# .codex/
# Aider
.aider.input.history
.aider.chat.history.md
.aider.llm.history
.aider.tags.cache.v*
# .aiderignore
# Claude Code
.claude/*.local.json
.claude/**/*.log
CLAUDE.local.md
# .claude/
# Gemini CLI
gemini-debug.log
.gemini-clipboard/
# .gemini/
# Cursor AI
# .cursorrules
# .cursor/
# .cursor.json
# .cursor-settings.yaml
# Continue
# .continue/
# .continuerc.json
# Cline
# .cline/
# .clinerules
# cline.json
# Other agent/editor project config
# .warp/
# .crush/
# .codeium/
# .deepseek/
# .amazon-codewhisperer/
# .tabnineignore
# .tabnine/
# GitHub Copilot
# .github/copilot-instructions.md
# Windsurf Editor
# .windsurfrules
# .windsurf/
# Replit AI Development
# .replit
# replit.nix

View File

@ -4,7 +4,6 @@
*.autosave
*.slx.r*
*.mdl.r*
*.bak
# Derived content-obscured files
*.p

View File

@ -1,47 +0,0 @@
## LASAL ###
# website: https://www.sigmatek-automation.com/en/products/engineering-tool-lasal/
# lasal screen/visu runtime folders generated during build
**/Runtime
**/BAK
**/Language
**/TempPreview
# lasal class runtime folders generated during build
ProjectInternal
Internal
**/Network/*/*.st
**/Drive/*.st
# bootdisk files
**/Bootdisk
# various filetypes generated at runtime or used for internal backups
*.ldi
*.bak
*.lob
*.lba
*.lcb
*.lock
*.plc
*.7z
*.zip
*.lcc
*.lds
# tag files generated by the compiler
*.mme
**/MaeExp.txt
**/MaeExp.xml
# SigCLib requires lba and lob files
!cObjLib.lob
!cObjLib.lba
# opc related classes added automatically from lasal instance
!**/Class/OPC_UA/**
!**/Class/OPC_UA_Client/**
!**/Class/OPC_UA_Server/**
!**/Class/OPC_UA_ModuleBase/**
!**/Class/OPC_UA_AddressSpace/**
!**/Class/OPC_UA_OpenSSL_v1_1_1/**

View File

@ -1,53 +0,0 @@
# Build System Artifacts
# MoonBit default build output directory.
_build/
# Local MoonBit package cache directory.
.mooncakes/
# Coverage and Test Artifacts
# Coverage reports generated by MoonBit tooling.
moonbit-coverage-*.txt
# Coverage output directory used by coverage commands.
_coverage/
# Bisect runtime coverage data file.
bisect.coverage
# JavaScript Target Artifacts
# Uncomment if generated JavaScript should be ignored.
# *.js
# Source map files generated for JavaScript output.
*.js.map
# Node.js dependencies used in JS target workflows.
node_modules/
# WebAssembly Target Artifacts
# Compiled WebAssembly binaries.
*.wasm
# WebAssembly text format output.
*.wat
# MoonBit Pilot / Agent Artifacts
# MoonBit agent runtime state and temporary files.
.moonagent/
# LLVM Backend Artifacts
# LLVM textual intermediate representation (IR) files.
*.ll
# LLVM bitcode files.
*.bc
# Native object files from LLVM/native compilation.
*.o
# Generated assembly source files.
*.s
# Default executable output name on Unix-like systems.
*.out
# Native executable output on Windows.
*.exe
# macOS debug symbol bundles.
*.dSYM/