Coder Social home page Coder Social logo

bonus's People

Watchers

Кристина Мищук avatar

bonus's Issues

Падение сборки из-за несоответствия именования переменной правилу

Описание

Падение сборки при запуске mvn clean test из-за несоответствия именования переменной Percent правилу LocalVariableName

Локация дефекта

https://github.com/TinitaQA/bonus/blob/49e410376fa69fa8446836c2542153a33e469d29/src/main/java/BonusService.java#L3C1-L4

Шаги воспроизведения

  1. Открыть код программы в IDEA
  2. Запустить mvn clean test
  3. Посмотреть на вывод в консоли

Ожидаемый результат Успешное прохождение сборки
Фактический результат Падение сборки из-за неправильного именования переменной 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.