bonus's People
bonus's Issues
Падение сборки из-за несоответствия именования переменной правилу
Описание
Падение сборки при запуске mvn clean test из-за несоответствия именования переменной Percent правилу LocalVariableName
Локация дефекта
Шаги воспроизведения
- Открыть код программы в IDEA
- Запустить mvn clean test
- Посмотреть на вывод в консоли
Ожидаемый результат Успешное прохождение сборки
Фактический результат Падение сборки из-за неправильного именования переменной Percent
Логи сборки
mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< ru.netology.javaqa:bonus >----------------------
[INFO] Building bonus 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ bonus ---
[INFO] Deleting /Users/pk/Desktop/IdeaProjects/bonus/target
[INFO]
[INFO] --- checkstyle:3.2.1:check (validate) @ bonus ---
[INFO] There is 1 error reported by Checkstyle 9.3 with /Users/pk/Desktop/IdeaProjects/bonus/target/checkstyle-rules.xml ruleset.
[ERROR] src/main/java/BonusService.java:[3,13] (naming) LocalVariableName: Name 'Percent' must match pattern '^[a-z][a-zA-Z0-9]*$'.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.396 s
[INFO] Finished at: 2023-10-14T17:30:54+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.2.1:check (validate) on project bonus: You have 1 Checkstyle violation. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Process finished with exit code 1
Окружение
Операционная система: macOS Monterey 12.7 (21G816)
IDE: IntelliJ IDEA 2023.2.2 (Community Edition)
Java: OpenJDK 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.