add martin to database for test and lint txt report
This commit is contained in:
parent
1974607fc7
commit
ee96386a2f
2 changed files with 82 additions and 32 deletions
|
@ -1,35 +1,39 @@
|
|||
INSERT OR IGNORE INTO users(username, password)
|
||||
INSERT
|
||||
OR IGNORE INTO users(username, password)
|
||||
VALUES ("admin", "123");
|
||||
|
||||
INSERT OR IGNORE INTO users(username, password)
|
||||
INSERT
|
||||
OR IGNORE INTO users(username, password)
|
||||
VALUES ("user", "123");
|
||||
|
||||
INSERT OR IGNORE INTO users(username, password)
|
||||
INSERT
|
||||
OR IGNORE INTO users(username, password)
|
||||
VALUES ("user2", "123");
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest","test project", 1);
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest2","test project2", 1);
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest3","test project3", 1);
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (1,1,"project_manager");
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (2,1,"member");
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,1,"member");
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,2,"member");
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,3,"member");
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (2,1,"project_manager");
|
||||
INSERT
|
||||
OR IGNORE INTO users(username, password)
|
||||
VALUES ("martin", "genPass123");
|
||||
INSERT
|
||||
OR IGNORE INTO projects(name, description, owner_user_id)
|
||||
VALUES ("projecttest", "test project", 1);
|
||||
INSERT
|
||||
OR IGNORE INTO projects(name, description, owner_user_id)
|
||||
VALUES ("projecttest2", "test project2", 1);
|
||||
INSERT
|
||||
OR IGNORE INTO projects(name, description, owner_user_id)
|
||||
VALUES ("projecttest3", "test project3", 1);
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (1, 1, "project_manager");
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (2, 1, "member");
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (3, 1, "member");
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (3, 2, "member");
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (3, 3, "member");
|
||||
INSERT
|
||||
OR IGNORE INTO user_roles(user_id, project_id, p_role)
|
||||
VALUES (2, 1, "project_manager");
|
46
golint_report.txt
Normal file
46
golint_report.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
backend/internal/database/db.go:10:2: a blank import should be only in a main or test package, or have a comment justifying it
|
||||
backend/internal/database/db.go:13:1: comment on exported type Database should be of the form "Database ..." (with optional leading article)
|
||||
backend/internal/database/db.go:32:13: interface method parameter projectId should be projectID
|
||||
backend/internal/database/db.go:35:19: interface method parameter reportId should be reportID
|
||||
backend/internal/database/db.go:35:33: interface method parameter projectManagerId should be projectManagerID
|
||||
backend/internal/database/db.go:39:1: comment on exported type Db should be of the form "Db ..." (with optional leading article)
|
||||
backend/internal/database/db.go:45:6: exported type UserProjectMember should have comment or be unexported
|
||||
backend/internal/database/db.go:89:1: exported method Db.CheckUser should have comment or be unexported
|
||||
backend/internal/database/db.go:113:25: method parameter projectId should be projectID
|
||||
backend/internal/database/db.go:122:1: exported method Db.AddWeeklyReport should have comment or be unexported
|
||||
backend/internal/database/db.go:179:1: comment on exported method Db.RemoveUser should be of the form "RemoveUser ..."
|
||||
backend/internal/database/db.go:185:1: exported method Db.PromoteToAdmin should have comment or be unexported
|
||||
backend/internal/database/db.go:190:1: exported method Db.GetUserId should have comment or be unexported
|
||||
backend/internal/database/db.go:190:14: method GetUserId should be GetUserID
|
||||
backend/internal/database/db.go:196:1: exported method Db.GetProjectId should have comment or be unexported
|
||||
backend/internal/database/db.go:196:14: method GetProjectId should be GetProjectID
|
||||
backend/internal/database/db.go:202:1: comment on exported method Db.AddProject should be of the form "AddProject ..."
|
||||
backend/internal/database/db.go:226:1: exported method Db.GetAllUsersProject should have comment or be unexported
|
||||
backend/internal/database/db.go:289:1: exported method Db.GetWeeklyReport should have comment or be unexported
|
||||
backend/internal/database/db.go:318:31: method parameter reportId should be reportID
|
||||
backend/internal/database/db.go:318:45: method parameter projectManagerId should be projectManagerID
|
||||
backend/internal/database/db.go:363:1: comment on exported method Db.Migrate should be of the form "Migrate ..."
|
||||
backend/internal/handlers/global_state.go:9:1: comment on exported type GlobalState should be of the form "GlobalState ..." (with optional leading article)
|
||||
backend/internal/handlers/global_state.go:42:1: comment on exported function NewGlobalState should be of the form "NewGlobalState ..."
|
||||
backend/internal/handlers/global_state.go:47:1: comment on exported type GState should be of the form "GState ..." (with optional leading article)
|
||||
backend/internal/handlers/handlers_project_related.go:95:1: exported method GState.ListAllUsersProject should have comment or be unexported
|
||||
backend/internal/handlers/handlers_report_related.go:12:1: exported method GState.SubmitWeeklyReport should have comment or be unexported
|
||||
backend/internal/handlers/handlers_report_related.go:43:1: comment on exported method GState.GetWeeklyReport should be of the form "GetWeeklyReport ..."
|
||||
backend/internal/handlers/handlers_report_related.go:80:6: exported type ReportId should have comment or be unexported
|
||||
backend/internal/handlers/handlers_report_related.go:80:6: type ReportId should be ReportID
|
||||
backend/internal/handlers/handlers_report_related.go:81:2: struct field ReportId should be ReportID
|
||||
backend/internal/handlers/handlers_report_related.go:84:1: exported method GState.SignReport should have comment or be unexported
|
||||
backend/internal/handlers/handlers_user_related.go:42:1: comment on exported method GState.UserDelete should be of the form "UserDelete ..."
|
||||
backend/internal/handlers/handlers_user_related.go:60:2: don't use underscores in Go names; var auth_username should be authUsername
|
||||
backend/internal/handlers/handlers_user_related.go:185:1: comment on exported method GState.PromoteToAdmin should be of the form "PromoteToAdmin ..."
|
||||
backend/internal/types/WeeklyReport.go:3:1: comment on exported type NewWeeklyReport should be of the form "NewWeeklyReport ..." (with optional leading article)
|
||||
backend/internal/types/WeeklyReport.go:23:6: exported type WeeklyReport should have comment or be unexported
|
||||
backend/internal/types/WeeklyReport.go:25:2: struct field ReportId should be ReportID
|
||||
backend/internal/types/WeeklyReport.go:27:2: struct field UserId should be UserID
|
||||
backend/internal/types/WeeklyReport.go:29:2: struct field ProjectId should be ProjectID
|
||||
backend/internal/types/project.go:11:1: comment on exported type NewProject should be of the form "NewProject ..." (with optional leading article)
|
||||
backend/internal/types/users.go:5:2: struct field UserId should be UserID
|
||||
backend/internal/types/users.go:10:1: comment on exported method User.ToPublicUser should be of the form "ToPublicUser ..."
|
||||
backend/internal/types/users.go:19:1: comment on exported type NewUser should be of the form "NewUser ..." (with optional leading article)
|
||||
backend/internal/types/users.go:27:2: struct field UserId should be UserID
|
||||
backend/internal/types/users.go:31:1: comment on exported type Token should be of the form "Token ..." (with optional leading article)
|
Loading…
Reference in a new issue