Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
17
screwdriver-3.5.6/box/snippets/jsp/base_jsp.txt
Normal file
17
screwdriver-3.5.6/box/snippets/jsp/base_jsp.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ page language="java" pageEncoding="+charset+" contentType="text/html; charset=+charset+" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
+sec+
|
||||
+pragma+
|
||||
<html lang="+language+">
|
||||
+header+
|
||||
+navigation+
|
||||
|
||||
+belong+
|
||||
<!-- screwdriver_knife -->
|
||||
+text+
|
||||
+footer+
|
||||
</html>
|
31
screwdriver-3.5.6/box/snippets/jsp/error_jsp.txt
Normal file
31
screwdriver-3.5.6/box/snippets/jsp/error_jsp.txt
Normal file
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
|
||||
|
||||
<html lang="it">
|
||||
<script>
|
||||
function goBack() {
|
||||
window.history.back();
|
||||
}
|
||||
</script>
|
||||
<c:set var="pageTitle" value="message" scope="request" />
|
||||
<jsp:include page="../includes/header.jsp" />
|
||||
+navigation+
|
||||
|
||||
<div class="mediumheightC">Error</div>
|
||||
<p class="mediumheight">${belong.screwFreeText}</p>
|
||||
<div class="mediumheight">
|
||||
<c:out value="${belong.screwFormattedText}"/>
|
||||
</div>
|
||||
|
||||
<!-- screwdriver_knife -->
|
||||
|
||||
<p align="center">
|
||||
<button onclick="goBack()">Back</button>
|
||||
</p>
|
||||
<jsp:include page="../includes/footer.jsp" />
|
||||
</html>
|
2
screwdriver-3.5.6/box/snippets/jsp/footer_jsp.txt
Normal file
2
screwdriver-3.5.6/box/snippets/jsp/footer_jsp.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- screwdriver_knife -->
|
||||
</body>
|
13
screwdriver-3.5.6/box/snippets/jsp/header_jsp.txt
Normal file
13
screwdriver-3.5.6/box/snippets/jsp/header_jsp.txt
Normal file
|
@ -0,0 +1,13 @@
|
|||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<head>
|
||||
<title>+titolo+: ${pageTitle}</title>
|
||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||
<c:url var="cssUrl0" value="/resources/css/bootstrap.css"/>
|
||||
<c:url var="cssUrl1" value="/resources/css/screwdriver.css"/>
|
||||
<c:url var="cssUrl2" value="/resources/css/screwdriverC.css"/>
|
||||
<link href="${cssUrl0}" rel="stylesheet"/>
|
||||
<link href="${cssUrl1}" rel="stylesheet"/>
|
||||
<link href="${cssUrl2}" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<!-- screwdriver_knife -->
|
59
screwdriver-3.5.6/box/snippets/jsp/login_jsp.txt
Normal file
59
screwdriver-3.5.6/box/snippets/jsp/login_jsp.txt
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
|
||||
<c:set var="pageTitle" value="Sign in" scope="request"/>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title><c:out value="${pageTitle}"/> </title>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<c:url var="cssUrl" value="/resources/css/bootstrap.css"/>
|
||||
<link href="${cssUrl}" rel="stylesheet"/>
|
||||
<style>
|
||||
body {
|
||||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- da questo punto in poi il codice viene dal login di Winch Security, chapter 2 -->
|
||||
|
||||
<div class="container">
|
||||
<c:if test="${message != null}">
|
||||
<div class="alert alert-success" id="message"><c:out value="${message}"/></div>
|
||||
</c:if>
|
||||
<div class="alert alert-success"><c:out value="${pageTitle}"/></div>
|
||||
<c:url value="/login" var="loginUrl"/>
|
||||
<form action="${loginUrl}" method="post">
|
||||
<c:if test="${param.error != null}">
|
||||
<div class="alert alert-error">
|
||||
Failed to login.
|
||||
<c:if test="${SPRING_SECURITY_LAST_EXCEPTION != null}">
|
||||
Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${param.logout != null}">
|
||||
<div class="alert alert-success">
|
||||
You have been logged out.
|
||||
</div>
|
||||
</c:if>
|
||||
<label for="username">Userid</label>
|
||||
<input type="text" id="username" name="username"/>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" name="password"/>
|
||||
<div class="form-actions">
|
||||
<input id="submit" class="btn" name="submit" type="submit" value="Login"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
22
screwdriver-3.5.6/box/snippets/jsp/ok_jsp.txt
Normal file
22
screwdriver-3.5.6/box/snippets/jsp/ok_jsp.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
|
||||
|
||||
<html lang="it">
|
||||
<c:set var="pageTitle" value="message" scope="request" />
|
||||
<jsp:include page="../includes/header.jsp" />
|
||||
|
||||
<div class="mediumheightC">OK</div>
|
||||
<p class="mediumheight">${belong.screwFreeText}</p>
|
||||
<div class="mediumheight">
|
||||
<c:out value="${belong.screwFormattedText}"/>
|
||||
</div>
|
||||
|
||||
<!-- screwdriver_knife -->
|
||||
|
||||
<jsp:include page="../includes/footer.jsp" />
|
||||
</html>
|
22
screwdriver-3.5.6/box/snippets/jsp/warning_jsp.txt
Normal file
22
screwdriver-3.5.6/box/snippets/jsp/warning_jsp.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
|
||||
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
|
||||
|
||||
<html lang="it">
|
||||
<c:set var="pageTitle" value="message" scope="request" />
|
||||
<jsp:include page="../includes/header.jsp" />
|
||||
|
||||
<div class="mediumheightC">Warning</div>
|
||||
<p class="mediumheight">${belong.screwFreeText}</p>
|
||||
<div class="mediumheight">
|
||||
<c:out value="${belong.screwFormattedText}"/>
|
||||
</div>
|
||||
|
||||
<!-- screwdriver_knife -->
|
||||
|
||||
<jsp:include page="../includes/footer.jsp" />
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue