Commit Graph

  • d39541321e Add support for recognizing C++ files, with same checks as C files master Joel Brobecker 2023-01-06 08:17:14 +04:00
  • d8e3cc3646 run-validation-tests: disable PIP version check when calling pip3 Joel Brobecker 2023-01-06 07:35:23 +04:00
  • 6893f51cf4 explicitly recognize .txt files as text files requiring no style checking Joel Brobecker 2022-06-14 09:56:33 -07:00
  • 81317a4d04 Update black to version 21.5b1, and flake8 to version 3.9.1 Joel Brobecker 2022-06-14 06:35:50 -07:00
  • 53321a47e5 replace use of distutils.version by packaging.version Joel Brobecker 2022-06-14 06:31:35 -07:00
  • 423d4fdb26 Run the testsuite with -vv to get more detailed info in case of error Joel Brobecker 2022-06-14 06:17:26 -07:00
  • e77cfbf3fc Add test for UB09-015 (force -gnatX for all GNAT runtime files) Joel Brobecker 2022-06-14 06:16:52 -07:00
  • a82082fcdf Update various tests' expected output after V103-009 Joel Brobecker 2022-06-14 06:14:48 -07:00
  • f8804ab767 Add 'Capgemini Engineering' as valid copyright holder Joel Brobecker 2022-01-04 07:42:33 +04:00
  • e498794183 Force -gnatX for all GNAT runtime files Joel Brobecker 2021-11-12 14:48:27 +04:00
  • 93091469a1 Add new "BIDI" rule to reject potentially dangerous unicode characters Joel Brobecker 2021-11-12 07:52:22 +04:00
  • a4ea3e1777 Adjust expected output from newer version of checkstyle (java checker) Joel Brobecker 2021-11-12 07:52:13 +04:00
  • 17108ebfc4 Allow Ada 2022 features by default Joel Brobecker 2021-06-28 10:01:37 -07:00
  • 2ecbe84a40 testsuite/conftest.py::env_setup: run testcase inside <tmp>/src Joel Brobecker 2021-04-25 14:48:32 +04:00
  • 7ada3b92c0 Rename all testcase scripts to all use the same name "run_test.py" Joel Brobecker 2021-04-20 06:55:31 +04:00
  • d1eb130958 run-validation-tests: use pytest with --import-mode=importlib Joel Brobecker 2021-04-20 06:55:23 +04:00
  • 71a81796a9 run-validation-tests: Run the style validation testing first... Joel Brobecker 2021-04-20 06:55:17 +04:00
  • 283daae611 Use pre-commit instead of just flake8 to perform style conformance testing Joel Brobecker 2021-04-20 06:55:09 +04:00
  • 3c4fb1eed0 .pre-commit-config.yaml: Add flake8 and black checks Joel Brobecker 2021-04-20 06:55:02 +04:00
  • 033a11a00f pre-commit config: exclude testsuite/tests/ rather than all of testsuite/ Joel Brobecker 2021-04-20 06:54:55 +04:00
  • a42c2a57cf Reformat code with black Joel Brobecker 2021-04-20 06:54:47 +04:00
  • 1eb13e8c8b setup.cfg [flake8]: Add max-line-length = 88 (prep for black formatting) Joel Brobecker 2021-04-20 06:54:37 +04:00
  • aedd9636da setup.cfg [flake8]: Use "extend-ignore" instead of "ignore" Joel Brobecker 2021-04-20 06:54:30 +04:00
  • 90f02fe4a3 run-validation-tests: Improve our check for the pytest-cov plugin install Joel Brobecker 2021-04-20 06:54:25 +04:00
  • 5b5aee4af9 run-validation-tests: Sort items in list in alpha order (cosmetic) Joel Brobecker 2021-04-20 06:54:18 +04:00
  • 2d86c699aa run-validation-tests: Add support for parallelized run (pytest-xdist) Joel Brobecker 2021-04-20 06:54:13 +04:00
  • 9d44d005d2 run-validation-tests: Use pip3 to check for installed packages Joel Brobecker 2021-04-20 06:54:07 +04:00
  • 261e9af2dc Update various tests' expected output following compiler enhancements Joel Brobecker 2021-04-20 06:53:58 +04:00
  • ae0f620fb7 Exclude E203 errors when checking Python files. Joel Brobecker 2021-03-10 10:46:24 +04:00
  • ffc7738a4a make_minimal_copy_of_python_install: Avoid crash in case of symlinks Joel Brobecker 2021-01-15 15:33:06 +04:00
  • b85b23e296 update some tests' expected output to match output from recent Ada compiler Joel Brobecker 2021-01-15 14:43:18 +04:00
  • e9aae58379 Configure pre-commit for repository Elie Richa 2020-12-02 08:33:42 +04:00
  • 9ee80a9f1d Create pre-commit configuration Elie Richa 2020-12-02 08:33:29 +04:00
  • 28956debcd Create setup.py for style_checker Elie Richa 2020-12-02 08:23:38 +04:00
  • 2a177e54eb Remove support for javascript files Joel Brobecker 2020-11-26 12:04:05 +04:00
  • fa0a3a01b2 transition the python checker from pycodestyle+pyflakes to flake8 Joel Brobecker 2020-10-23 17:43:43 +04:00
  • 25661b1d0b Minor adjustments in a couple of python fragment test files Joel Brobecker 2020-10-23 17:06:35 +04:00
  • 5f8c9be0be asclib/checkers/typific/__init__.py: Minor code improvement Joel Brobecker 2020-10-23 15:57:51 +04:00
  • 0d7a2ec467 test_shell_scripts.py: Adapt to newer versions of csh Joel Brobecker 2020-10-23 15:50:44 +04:00
  • c43cb89f51 test_test1_star_import: Adapt for newer versions of java's checker Joel Brobecker 2020-10-23 15:49:21 +04:00
  • e7ad16fc15 multiple_files/gprep_check-ko.adb: Minor code reformatting... Joel Brobecker 2020-10-23 15:47:59 +04:00
  • e72b898170 test_gprep_check_ko_adb: Adapt for newer versions of GNAT Pro Joel Brobecker 2020-10-23 15:46:59 +04:00
  • 293fb55478 run-validation-tests: Add "/bin/csh" to list of requirements Joel Brobecker 2020-10-23 15:35:45 +04:00
  • 8b117c3aaa run-validation-tests: Add "checkstyle" to list of requirements Joel Brobecker 2020-10-23 15:01:13 +04:00
  • 5e8e8bc269 Python: Explicitly exclude W504 errors from pycodestyle checks Joel Brobecker 2020-10-05 13:01:56 -07:00
  • 5c977cef13 reformat style_checker code using black Joel Brobecker 2020-10-05 09:20:11 -07:00
  • f33c97a9dc Run 2to3 on all python fragment files used during testing Joel Brobecker 2020-09-10 10:53:02 -07:00
  • be1a46af3c Python: Change max line length to 88 (same as black's default) Joel Brobecker 2020-08-26 15:09:58 -07:00
  • 550aacbfab Call pycodestyle and pyflakes through sys.executable -m Joel Brobecker 2020-08-19 10:10:27 -07:00
  • 72ad446348 run-validation-tests: Stop calling coverage report with -i Joel Brobecker 2020-08-19 10:02:22 -07:00
  • 3b953c7463 run-validation: Force use of python3 to run pytest/coverage/flake8 Joel Brobecker 2020-08-19 09:59:59 -07:00
  • 5ced30ab70 style_checker: Force the use of Python 3.x. Joel Brobecker 2020-08-19 09:43:10 -07:00
  • 72705f46cf run-validation-tests: Add pycodestyle and pyflakes to list of requirements Joel Brobecker 2020-08-19 09:41:05 -07:00
  • 319a4b85a7 assertOutputEqual, assertRunOutputEqual: swap rhs and lhs in equality checks Joel Brobecker 2020-08-19 09:40:50 -07:00
  • 4fdb0ab230 Transition the testsuite to pytest and declare this tool as Python 3 Joel Brobecker 2020-08-12 12:08:25 -07:00
  • f3cb597262 .gitreview: Change defaultbranch to legacy-python2 legacy-python2 Joel Brobecker 2020-08-12 10:49:51 -07:00
  • 268ed9d3a2 java.py: Avoid use of os.write (Python 3.x compatibility) Joel Brobecker 2020-07-28 18:02:53 -07:00
  • 570cbd7049 invalid DOS EOL not detected by style_checker when using Python 3 Joel Brobecker 2020-07-28 11:41:56 -07:00
  • b131e02344 asclib/ex.py: Fix Python3 str/byte incompatilibity Joel Brobecker 2020-07-17 18:31:08 -07:00
  • a6173abd22 config.py: fix Python3 compability issue iterating over dict keys Joel Brobecker 2020-07-17 18:26:15 -07:00
  • a9f2a7d728 fix python3 incompatibility in main.py Joel Brobecker 2020-07-08 17:10:38 -07:00
  • 5142153194 TestCase.run_style_checker: Enhance to allow calling via Python interpreter Joel Brobecker 2020-06-23 11:53:55 -07:00
  • ba84e08166 TestCase.run_style_checker: be more specific about what **kwargs can be Joel Brobecker 2020-06-23 11:40:16 -07:00
  • 9362e77827 Replace call to Run by call to self.run_style_checker in one test Joel Brobecker 2020-06-23 11:40:04 -07:00
  • ebb584a5dd testsuite/lib/support.py: Remove unnecessary wildcard import Joel Brobecker 2020-06-23 11:37:54 -07:00
  • adbbfe339e ada.py: add comment about language version in runtime files Joel Brobecker 2020-06-21 11:02:06 -07:00
  • 95ab8dc1f2 fix flake8 RST215 violations (Inline interpreted text...) Joel Brobecker 2020-06-19 16:44:06 -07:00
  • 5ec490e3ba fix flake8 E741 violation (ambiguous variable name 'l') Joel Brobecker 2020-06-19 16:41:11 -07:00
  • d631a8fc2f Fix flake8 W605 violation (invalid escape sequence '\s') Joel Brobecker 2020-06-19 16:39:03 -07:00
  • aa9cc529c3 fix flake8 B007 violations (Loop control variable 'xxx' not used) Joel Brobecker 2020-06-19 16:33:05 -07:00
  • e582323a22 fix W504 flake8 violations (line break after binary operator) Joel Brobecker 2020-06-19 16:30:04 -07:00
  • ffb635342c fix flake8 E123 violations (closing bracket does not match indentation...) Joel Brobecker 2020-06-19 16:24:45 -07:00
  • 1677c55f68 fix D200 flake8 violations (One-line docstring should fit on one line) Joel Brobecker 2020-06-19 16:18:36 -07:00
  • 8a80b49318 Fix all D401 flake8 violations (First line should be in imperative mood) Joel Brobecker 2020-06-19 16:16:13 -07:00
  • 4c2f6287fc Fix all D204 flake8 violations (1 blank line required after class docstring) Joel Brobecker 2020-06-19 16:13:01 -07:00
  • a4326c978b Fix all flake8 D400 violations (first line should end with a period) Joel Brobecker 2020-06-19 16:09:37 -07:00
  • 69077c1667 Anod test: replace gnatpython references by references to e3 Joel Brobecker 2020-06-19 15:22:42 -07:00
  • bae4e421d2 Ada: Add support for gnat12 and gnat2020 options Joel Brobecker 2020-06-19 14:36:51 -07:00
  • 8db1779ea1 Ada: Allow Ada 2012 constructs in "gnat" compiler core units Joel Brobecker 2020-06-15 09:35:32 -07:00
  • e46f10b6d1 simplify the implementation of the the Ada file checker Joel Brobecker 2020-02-19 14:49:07 +04:00
  • 0150d5cec0 Make the "python_fragment" test work with newer versions of pycodestyle Joel Brobecker 2020-02-19 14:44:14 +04:00
  • 4058b27f91 use yaml.safe_load instead of yaml.load Joel Brobecker 2020-02-19 14:31:53 +04:00
  • f03ce881a0 Allow Ada 2005 constructs in gnat core compiler sources Joel Brobecker 2020-02-13 11:58:33 +04:00
  • 102ebeaf64 Explicit handling of .md files as markdown files (no checking for those) Joel Brobecker 2019-03-16 05:24:18 -04:00
  • dc84cc0f1d update python test expected output (additional warning) Joel Brobecker 2019-03-16 05:17:46 -04:00
  • f92b607665 update expected output (additional warning printed by checkstyle v8.8) Joel Brobecker 2019-03-16 05:17:19 -04:00
  • 1bb6ee2061 README.md: Document language-specific features Joel Brobecker 2018-05-22 08:06:57 -04:00
  • e98dfd0e81 Add a .gitreview file Joel Brobecker 2018-05-22 08:11:30 -04:00
  • 26ad11e462 Perform case-insensitive matching of the output of the "file" command. Nicolas Roche 2018-01-16 15:38:51 +01:00
  • 2cf08c4667 README.md: Document the format of the configuration files Joel Brobecker 2018-01-10 20:25:29 +04:00
  • 5040ecccf0 move the "copyright" config inside the "copyright_header_info" section Joel Brobecker 2018-01-10 19:26:40 +04:00
  • 4353b27656 Some renamings in class Config for additional clarity Joel Brobecker 2018-01-10 19:16:48 +04:00
  • 5b5ed84abb minor code adjustment in class Config for better clarity Joel Brobecker 2018-01-10 19:08:26 +04:00
  • eacd8c9ec1 Replace leftover "pep8" reference in error message by "pycodestyle" Joel Brobecker 2018-01-08 14:09:58 +04:00
  • ffc2637aba python style_checker: use pycodestyle instead of pep8 Joel Brobecker 2018-01-08 07:00:17 +04:00
  • 75973c3bb8 Remove erb-specific configuration Joel Brobecker 2017-12-19 08:53:08 +04:00
  • 15fa7dd7e0 asc_config.yaml: Remove 'marte'-specific configuration Joel Brobecker 2017-12-19 08:13:43 +04:00
  • 7d4e6a3b4e etc/asc_config.yaml: Remove the binutils-specific configuration Joel Brobecker 2017-12-19 08:00:28 +04:00
  • 5af6361e10 etc/asc_config.yaml: Remove the 'qgen' configuration Joel Brobecker 2017-12-19 04:05:21 +01:00
  • 2d540d2575 Add support for --config/-c option (module-specific configuration file) Joel Brobecker 2017-12-01 15:05:53 -05:00