File tree Expand file tree Collapse file tree 6 files changed +60
-0
lines changed
src/main/java/doma/example/dao/formatter Expand file tree Collapse file tree 6 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 22This document describes the format and rules for creating a Pull Request (PR) on GitHub.
33
44# Execution Details
5+ ## Commit Guidelines
6+ - Use imperative mood for commit messages (e.g., "Fix bug" instead of "Fixed
7+ - Write Commit messages in English
8+
9+ ## PR Guidelines
10+ - If there are unstaged changes when creating a pull request, please split them appropriately and commit them separately.
11+ - When using the gh command, first authenticate with ``` gh auth login ``` .
12+ - Use the [ PR Template] ( ../templates/PR_TEMPLATE.md ) for PR descriptions
13+ - PR titles should be concise and descriptive
14+ - Ensure all tests pass before submitting a PR
15+ - Write PR title and descriptions in English
516
617## Command to Execute
718
Original file line number Diff line number Diff line change 1+ {
2+ "permissions" : {
3+ "allow" : [
4+ " Bash(./gradlew test:*)"
5+ ],
6+ "deny" : []
7+ }
8+ }
Original file line number Diff line number Diff line change 1+ # Generate Commit Messages in English
2+
3+ ## Purpose
4+ Generate an English commit message based on the provided description of code changes.
5+
6+ ## Instruction
7+ Please create a concise and clear ** commit message in English** for the described modifications.
8+
9+ ## Input
10+ - A description of what was changed or implemented in the code (in any language)
11+
12+ ## Output
13+ - A corresponding commit message in English that reflects the intent and content of the changes
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
3030# Verify plugin compatibility
3131./gradlew verifyPlugin
3232```
33+
3334---
3435## Architecture Overview
3536
Original file line number Diff line number Diff line change 1+ /* *content
2+ * Content Main
3+ * This is a demonstration of how to format SQL code using block comments.
4+ */
Original file line number Diff line number Diff line change 1+ package doma .example .dao .formatter ;
2+
3+ import doma .example .entity .Employee ;
4+ import org .seasar .doma .Dao ;
5+ import org .seasar .doma .Select ;
6+ import org .seasar .doma .Sql ;
7+
8+ @ Dao
9+ public interface SqlInjectionDao {
10+ @ Select
11+ @ Sql ("""
12+ SELECT *
13+ FROM tableName
14+ WHERE id = 0""" )
15+ Employee selectInjection ();
16+
17+ @ Select
18+ @ Sql ("""
19+ SELECT *
20+ FROM tableName
21+ WHERE id = /* id */1""" )
22+ Employee selectInjection2 (Integer id );
23+ }
You can’t perform that action at this time.
0 commit comments